---
title: "Get Bearer Token"
method: POST
path: "/auth/token"
tags: ["Authentication"]
---

# Get Bearer Token

`POST /auth/token`

## Request

- Base URL: `https://sandbox-api.greencheckverified.com`
- URL: `https://sandbox-api.greencheckverified.com/auth/token`
- Auth: none required
- TypeScript: <https://skmtc.dev/greencheckverified/apis/green-check-access/docs/auth/token/post.ts> (a function with typed inputs; its response is checked against the schema)

Exchange credentials for an bearer token.

## Request body

- TokenRequestBody
  - `client_id` string, required
  - `client_secret` string, required
  - `grant_type` 'client_credentials', required
  - `scope` AccessScopes[]

## Response `200`

Ok

- AuthResponse
  - `access_token` string, required: Bearer token passed with request
  - `token_type` 'Bearer', required: Access returns a Bearer token
  - `scope` AccessScopes[], required: List of scopes this token has access to
  - `expires_at` number, double, required: Seconds until this token expires
  - `client_id` string, required: Your client Id
  - `issued_at` number, double, required: When the token was issued, expressed as the number of seconds since the Unix epoch

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Validation Failed

---

[API](https://skmtc.dev/greencheckverified/apis/green-check-access.md) - [All operations](https://skmtc.dev/greencheckverified/apis/green-check-access/llms.txt) - [OpenAPI document](https://skmtc.dev/greencheckverified/apis/green-check-access/revisions/fb63a7a6151b?raw)
