---
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}`

## Request

- Base URL: `https://api.casparser.in`
- URL: `https://api.casparser.in/v1/agent-auth/token/{token}`
- Auth: none declared

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

## Changes

- **2026-05-09** `b0025717a87d`: 1 info
  - endpoint added
- **2026-05-09** `fd2fae0bce61`: 1 breaking
  - api path removed without deprecation
- **2026-05-02** `4ae1dc00d54c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/changes/v1/agent-auth/token/:token/get.md)

---

[API](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2.md) - [All operations](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/llms.txt) - [OpenAPI document](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/revisions/9d8f1445bad3?raw)
