API reference · Account and tokens

List tokens

GET/v1/tokens

Your API tokens, without their secrets.

On this page

Auth. An API token: Authorization: Bearer lb_… (create one). Signed-in web sessions work too.

Limits. Counts against your plan's API requests (60, 600 or 3,000 a minute on Free, Builder and Standard).

Request

Terminal
curl "https://api.langbot.ai/v1/tokens" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{ "tokens": [ { "id": "tok_01J9…", "name": "laptop", "scopes": ["read", "stream", "subscribe"], "agent": null, "created_at": 1760050000000, "last_used_at": 1760137000000 } ] }

Errors

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
429rate_limitedOver your request budget; wait Retry-After seconds.

Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.