v3

latestOpenAPI 3.1.02026-08-0755220214.3 KB
auth

Create Conversation Token

Creates a short-lived conversation token scoped to a specific agent. Conversation tokens are useful for client-side applications that start a conversation with a single agent without exposing your API key.

post/auth/conversation_token

Headers

Authorizationstring required

Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.

Request body

agent_idstring required

ID of the agent the conversation token is scoped to.

ttl_secondsinteger

Time-to-live for the conversation token in seconds.

Response

Success response

conversation_tokenstring required

The conversation token to use for authentication.

expires_atstring date-time required

When the conversation token expires.