---
title: "Get a Connect token"
method: POST
path: "/v1/connect/token/{connector}"
tags: ["connect"]
---

# Get a Connect token

`POST /v1/connect/token/{connector}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/connect/token/{connector}`
- Auth: HTTP bearer

Get an access token for a connector identified by the path parameter and scoped to the requester.

## Path parameters

- `connector` string, required

## Request body

- object
  - `subject` union
    - object
      - `type` 'app', required
    - object
      - `type` 'user', required
      - `id` string
      - `issuer` string
    - object
      - `type` 'jwt-bearer', required
      - `sub` string
      - `iss` string
      - `aud` string
      - `additionalClaims` object
    - object
      - `type` 'token', required
      - `token` string, required
  - `installationId` string
  - `audience` string[]
  - `scopes` string[]
  - `resources` string[]
  - `authorizationDetails` object[]
    - `type` string
  - `validityBufferMs` number

## Response `200`

- object
  - `authorizationId` string: Stable id correlating all tokens (including refreshes) back to the original authorization.
  - `claims` object: Claims extracted from the provider's tokens per the connector's `ForwardedClaims` allow-list. Currently sourced from the OIDC id_token only.
  - `connector` object, required
    - `id` string, required
    - `service` string
    - `type` string, required
    - `uid` string, required
  - `expiresAt` number, required
  - `externalSubject` string
  - `installationId` string
  - `metadata` object: Driver-specific metadata (e.g., botUserId for Slack).
  - `name` string
  - `tenantId` string
  - `token` string, required
  - `tokenGroupId` string: Stable id that groups all tokens with the same parameters across refreshes.
  - `tokenId` string, required

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `409`
- `410`
- `422`
- `429`
- `500`

## Changes

- **2026-10-23** `831b9cdd2d65`: 1 info
  - added the non-success response with the status `500`
- **2026-10-21** `7bef95b771cd`: 1 info
  - added the optional property `connector/service` to the response with the `200` status
- **2026-10-03** `2c463a1d98b1`: 1 info
  - added the non-success response with the status `409`
- **2026-10-01** `9958fd10bb05`: 1 info
  - removed the non-success response with the status `504`
- **2026-09-29** `8ef4901ffe83`: 1 info
  - removed the non-success response with the status `501`

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/connect/token/:connector/post.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
