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>"
}Authenticate widget and issue a guest token
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.