---
title: "Create a Connection Token"
method: POST
path: "/v1/terminal/connection_tokens"
---

# Create a Connection Token

`POST /v1/terminal/connection_tokens`

To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.

## Response `200`

Successful response.

- TerminalConnectionToken — A Connection Token is used by the Stripe Terminal SDK to connect to a reader. Related guide: [Fleet management](https://docs.stripe.com/terminal/fleet/locations)
  - `location` string — The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
  - `object` 'terminal.connection_token', required — String representing the object's type. Objects of the same type share the same value.
  - `secret` string, required — Your application should pass this token to the Stripe Terminal SDK.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/stripe/apis/spec3.md) · [All operations](https://skmtc.net/stripe/apis/spec3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stripe/spec3/revisions/3653ad45bbec/schema)
