---
title: "Poll for Agent Authorization Result"
method: GET
path: "/v1/agent-auth/token/{token}"
tags: ["Agent Auth"]
---

# Poll for Agent Authorization Result

`GET /v1/agent-auth/token/{token}`

Agent polls this endpoint to check if the user has approved the authorization.

Returns `{"status": "pending"}` while waiting for user approval.
Returns `{"status": "approved", "api_key": "sk_...", "email": "..."}` once approved.

**One-shot delivery:** the API key is returned exactly once. After delivery, the token is deleted
and subsequent polls return `{"status": "pending"}`.

**Recommended polling interval:** 5 seconds. Token expires after 10 minutes.

## Path parameters

- `token` string, required

## Response `200`

Current authorization status

- union
  - object
    - `status` 'pending'
  - object
    - `status` 'approved'
    - `api_key` string — The issued API key (sk_ prefix)
    - `email` string — Email of the user who approved

## Other responses

- `400` — Invalid token length

---

[API](https://skmtc.net/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2.md) · [All operations](https://skmtc.net/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casparser/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/revisions/c9918aebb2de/schema)
