---
title: "Generate an OAuth 2.0 token"
method: POST
path: "/oauth/token"
tags: ["Token generation"]
---

# Generate an OAuth 2.0 token

`POST /oauth/token`

This request allows you to generate an OAuth 2.0 token using client_id and client_secret, for more information on the operation, please visit our <a href="https://developer.officernd.com/docs/authentication">guide</a>.

## Response `200`

Token was generated successfully.

- object
  - `token` string — The token which can be used for authentication.
  - `token_type` string — The token type.
  - `expires_in` string — The remaining time until the token expires in seconds. The token always expires after an hour.
  - `scope` string — The token scope.

## Other responses

- `400` — Invalid client_id, client_secret, credentials or scope.

---

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