---
title: "Create Agent Token"
method: POST
path: "/v2/me/agent-token"
tags: ["Me V2"]
---

# Create Agent Token

`POST /v2/me/agent-token`

Exchanges the caller's WorkOS access token for a short-lived, read-only Agent Token identifying the same user. Only callable with a WorkOS access token — API keys and Agent Tokens are rejected, so neither can be laundered into a user credential or extended.

## Response `200`

Success

- object
  - `object` 'agent_token', required
  - `token` string, required
  - `expires_at` string, required

## Other responses

- `400` — The request did not match the expected schema
- `401` — No API key was provided in the request
- `403` — The API key does not have permission to perform this action
- `429` — Too many requests have been made in a short period
- `500` — An unexpected error occurred on the server

---

[API](https://skmtc.dev/superwall/apis/superwall-api-v2.md) · [All operations](https://skmtc.dev/superwall/apis/superwall-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/superwall/superwall-api-v2/revisions/44900ad77d2c/schema)
