POST
/
v1
/
agents
/
{agent_id}
/
authorize
curl --request POST \
  --url https://app.luly.ai/api/v1/agents/{agent_id}/authorize \
  --header 'authorization: <authorization>'
{
  "token": "22480c52-0ff1-4214-bcb7-50649b508432"
}

Headers

authorization
string
required

Your API key for authentication.

Path Parameters

agent_id
string
required

The web agent to authorize a call for.

Special note: While in Beta, this request must be made to the web.Luly.ai domain.

Response

token
string

The single-use session token that can be sent to the client.

status
string

Can be success or error.

message
string

A message saying whether the token creation succeeded, or a helpful message describing why it failed.

{
  "token": "22480c52-0ff1-4214-bcb7-50649b508432"
}