Skip to main content
POST
/
api
/
widget
/
auth
Authenticate Widget
curl --request POST \
  --url https://api.example.com/api/widget/auth \
  --header 'Content-Type: application/json' \
  --data '
{
  "guest_id": "<string>",
  "agent_id": 123
}
'
{
  "access_token": "<string>",
  "token_type": "bearer",
  "agent_id": 123,
  "agent_name": "<string>",
  "agent_logo": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.xagent.run/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
guest_id
string
required
agent_id
integer | null

Response

Successful Response

access_token
string
required
token_type
string
default:bearer
agent_id
integer | null
agent_name
string | null
agent_logo
string | null