---
title: "Create a team access token"
method: POST
path: "/teams/{team_id}/create_access_token"
tags: ["Access Tokens"]
---

# Create a team access token

`POST /teams/{team_id}/create_access_token`

## Path parameters

- `team_id` integer, required

## Request body

- CreateTeamAccessTokenArgs
  - `name` string, nullable — Name for the access token.
  - `expiresAt` integer, nullable — Timestamp in milliseconds when this token will expire. Must be at least 30 minutes in the future. Defaults to no expiry if omitted.

## Response `201`

Team access token created successfully

- CreateTeamAccessTokenResponse
  - `accessToken` string, required
  - `tokenType` string, required

## Other responses

- `403` — Caller is not authorized to create team access tokens

---

[API](https://skmtc.net/convex/apis/convex-management-api.md) · [All operations](https://skmtc.net/convex/apis/convex-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/convex/convex-management-api/versions/cfe35d359fba/schema)
