---
title: "Create access token"
method: POST
path: "/v1/oauth2/token"
tags: ["Authentication"]
---

# Create access token

`POST /v1/oauth2/token`

Use this endpoint to create an access token valid for <strong>1 hour</strong> to authenticate requests to our API.

## Headers

- `Cache-Control` string
- `Content-Type` 'application/x-www-form-urlencoded' | 'application/json', required

## Request body

- object
  - `grant_type` string, required — Set to `client_credentials`.
  - `client_id` string, required — Your unique identifier from your Fourthline [API credentials](https://docs.fourthline.com/docs/api-credentials).
  - `client_secret` string, required — Your unique password from your Fourthline API credentials.

## Response `200`

OK

- object
  - `token_type` string — The type of access token. The value is always `bearer`.
  - `access_token` string — Your access token to authenticate requests in our API. <br /><br />Format: 32-character string <br /><br />Example: `790f325a-48c9-4b82-bb53-c0ea128236f0`
  - `expires_in` integer — The number of seconds before the `access_token` expires.

## Other responses

- `400` — Bad Request

---

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