---
title: "Request an access token"
method: POST
path: "/connect/token"
tags: ["Access"]
---

# Request an access token

`POST /connect/token`

## Request

- Base URL: `https://{prefix}.access.checkout.com`
- URL: `https://{prefix}.access.checkout.com/connect/token`
- Auth: none declared
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/connect/token/post.ts> (a function with typed inputs; its response is checked against the schema)

OAuth endpoint to exchange your access key ID and access key secret for an access token.

## Request body `application/x-www-form-urlencoded`

- object
  - `grant_type` 'client_credentials'
  - `client_id` string: Access key ID
  - `client_secret` string: Access key secret
  - `scope` string: The access key scope

## Response `200`

OK - A successful access token response as per [RFC6749](https://tools.ietf.org/html/rfc6749#section-4.4.3)

- object
  - `access_token` string
  - `token_type` string
  - `expires_in` number

## Other responses

- `400`: Bad request - An unsuccessful access token response as per [RFC6749](https://tools.ietf.org/html/rfc6749#section-4.4.3)

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
