---
title: "Obtain an access token"
method: POST
path: "/oauth/token/"
tags: ["Authentication"]
---

# Obtain an access token

`POST /oauth/token/`

Exchange client credentials for a token to access protected resources.

## Response `200`

Successfully retrieved access token

- object
  - `access_token` string
  - `expires_in` integer
  - `scope` string
  - `token_type` string

## Other responses

- `400` — Invalid request
- `401` — Authentication failure

---

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