Skip to main content
POST
/
v1
/
agent-auth
/
token
/
{token}
/
approve
Approve Agent Authorization
curl --request POST \
  --url https://api.casparser.in/v1/agent-auth/token/{token}/approve \
  --header 'Content-Type: application/json' \
  --data '
{
  "id_token": "<string>",
  "client_name": "Claude Code"
}
'
{
  "status": "approved",
  "email": "user@example.com"
}

Path Parameters

token
string
required

The token the agent generated and included in the approval URL. Must be 16-128 characters.

Required string length: 16 - 128
Example:

"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1f2"

Body

application/json
id_token
string
required

Identity token obtained after the user signs in on the approval page

client_name
string

Name of the agent/application (stored in customer metadata for audit)

Example:

"Claude Code"

Response

Authorization approved. The API key is now available for the agent to poll.

status
string
Example:

"approved"

email
string
Example:

"user@example.com"