---
title: "Create a new Access Token"
method: POST
path: "/token"
tags: ["Access Token"]
---

# Create a new Access Token

`POST /token`

Create a new Access Token. Use the code examples to create an Access token on your local machine. Then copy the `access_token` into the Authorization header of any endpoint in the documentation to start making calls. The audience should be set to `https://api.pax8.com` for the partner endpoints.

## Request body

- TokenRequest
  - `client_id` string, required — The client id
  - `client_secret` string, required — The client secret
  - `audience` 'https://api.pax8.com' | 'api://p8p.client' | 'api://provisioning' | 'api://usage', required
  - `grant_type` 'client_credentials', required

## Response `200`

successful operation

- TokenResponse
  - `access_token` string — The Access Token
  - `expires_in` 86400 — The time to live of the Access Token in seconds
  - `token_type` 'Bearer'

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/pax8/apis/authentication.md) · [All operations](https://skmtc.dev/pax8/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pax8/authentication/revisions/4026bf405528/schema)
