Repository Public
1# Authenticate with Workspace Agent access tokens23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45Workspace Agents API calls authenticate with Workspace Agent access tokens.6These tokens are provisioned from the ChatGPT admin access-token flow and are7scoped for workspace use.89## Provision a token1011Before a user can create a Workspace Agent access token, a workspace admin must12enable Workspace agents and turn on **Allow users to create personal access13tokens** in Admin > Permissions & roles.14151. In ChatGPT, open Admin > Access tokens.162. Create an access token and select the **Workspace Agents** scope.173. Copy the token and store it in your secrets manager.1819Use the token as a bearer credential on api.chatgpt.com:2021```bash22curl https://api.chatgpt.com/v1/workspace_agents/agtch_complaints_123/trigger \23 -H "Authorization: Bearer $AGENT_ACCESS_TOKEN" \24 -H "Content-Type: application/json" \25 -d '{"input":"Summarize the newest escalation."}'26```2728## What this token can access2930Workspace Agent access tokens are scoped to Workspace Agents API operations31only.