Skip to navigation

Request a handoff to a person

Hands the conversation from your application to a person, releasing your lease and holding automation off until a person hands it back.

What happens

  • Applications hand to a person only: to is HUMAN, the default. to: APPLICATION is refused with 403 HANDOFF_NOT_PERMITTED.
  • Your application’s lease is released. A fencingToken is optional; if you send one, it must be current.
  • Automation stays off in the conversation, for applications and the creator’s own automations, until a person hands the conversation back.
  • EVVA records handoff.requested. The first person to act in the conversation completes the handoff (handoff.completed).
  • Asking again while the conversation already waits for a person changes nothing and records no second event.
  • reason is a machine code; no free text is accepted.

See conversation leases.

When a person hands the conversation to your application

A person on the agency’s team can hand the conversation to your application. That ends the hold and any reply pause. The conversation is then reserved for your application until it acquires the lease or sends a message (handoff.completed).

Errors

  • 403 HANDOFF_NOT_PERMITTED — to is APPLICATION.
  • 409 LEASE_HELD — someone else holds a live lease, or a person reserved the conversation for another application. Retry-After is set when known.
  • 409 STALE_FENCING_TOKEN — the fencingToken you sent is not the current one.

Required scopes: write:messages.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

conversationIdstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Request

This endpoint expects an object.
toenumOptional

Who the conversation is handed to. Your application hands it to HUMAN, the default. APPLICATION is refused with 403 HANDOFF_NOT_PERMITTED.

Allowed values:
fencingTokenstring or integerOptional

When to is HUMAN: the application’s current lease token, if it holds one.

reasonstringOptionalformat: "^[a-z0-9_.:-]{1,64}$"

A machine code such as buyer_requested_human, never prose.

Response

Handed off.
conversationIdstring
statusenum
Allowed values:
toenum
Allowed values:
applicationIdstring or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error