Skip to main content
POST
Respond to action request

Authorizations

Authorization
string
header
required

API key authentication. Use format: Authorization: Bearer tavrn_sk_live_... Live keys (tavrn_sk_live_...) work only against https://enterprise.tavrn.ai; sandbox test keys (tavrn_sk_test_..., from https://sandbox.tavrn.ai) work only against https://sandbox.tavrn.ai.

Headers

Tavrn-Version
string

Dated API version (YYYY-MM-DD) to apply to this request. Defaults to the version pinned to the API key, then to the baseline 2026-10-16. Unknown values return 400 invalid_api_version. See Guides > Versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-16"

Idempotency-Key
string

Optional opaque key (1-255 characters, a UUID v4 is recommended) that makes a POST safe to retry. Scoped to your organization and kept for 24 hours. A retry with the same key and the same body replays the original status and body with Idempotent-Replayed: true; the same key with a different body returns 422 idempotency_key_reused_with_different_payload; a retry while the first attempt is still running returns 409 idempotency_key_in_use. Only 2xx and 4xx outcomes are stored - a 5xx releases the key so the retry executes again. See the Idempotent requests guide.

Required string length: 1 - 255

Path Parameters

retrieval_request_id
string
required

Retrieval request ID

Body

application/json

Send at least one of message, response_option, or attachment.

message
string

Your answer to the action request. Leading and trailing whitespace is trimmed. Required when the chosen response_option has requires_message: true, or when you send no response_option and no attachment.

Maximum string length: 10000
Example:

"Approved. Please pay the $85.00 invoice."

response_option
string

key of one of the open action request's response_options. Optional: you can always answer with message and attachment alone. An option that is not offered, or a missing required message or attachment, is rejected with 400.

Maximum string length: 100
Example:

"approve"

requester_email
string<email>

Email of the person at your firm who answered. Recorded as the responder; defaults to the API key.

Example:

"paralegal@yourfirm.com"

attachment
object

A file to send with the response, uploaded under the retrieval request's case.

Response

Response recorded

id
string
required

ID of the action request that was answered (matches pending_action_request.id)

Example:

"car_abc123"

retrieval_request_id
string
required
Example:

"rr_abc123"

status
enum<string>
required
Available options:
responded
Example:

"responded"

responded_at
string<date-time>
required
Example:

"2025-02-03T16:05:00Z"

response_option
string | null
required

The response_option you sent; null for a free-form answer

Example:

"approve"