---
title: "Get access token"
method: POST
path: "/api/oauth/token"
tags: ["Auth"]
---

# Get access token

`POST /api/oauth/token`

Given a `client_id` and `client_secret`, this will return an `access_token` which can be used in the Authorization header of subsequent requests to the Merchant API.

The token provided will last for 3600 seconds (1 hour) and will need to be refreshed after this time.

## Request body

- AuthInput
  - `client_id` string, required
  - `client_secret` string, required
  - `grant_type` 'client_credentials', required

## Response `200`

A response containing the `access_token` for you to use.

- AuthOutput
  - `access_token` string
  - `expires_in` string
  - `token_type` 'bearer'

## Other responses

- `4XX` — An error has occurred retrieving an access token.

---

[API](https://skmtc.dev/mention-me/apis/auth-api.md) · [All operations](https://skmtc.dev/mention-me/apis/auth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mention-me/auth-api/revisions/cdad84f071bd/schema)
