---
title: "Obtain an OAuth2 access token. Tokens last 365 days you must refresh the token before that time for you application to continue to function. Rate limit to 10 calls per minute."
method: POST
path: "/v1/auth/token"
tags: ["Auth"]
---

# Obtain an OAuth2 access token. Tokens last 365 days you must refresh the token before that time for you application to continue to function. Rate limit to 10 calls per minute.

`POST /v1/auth/token`

Login using the client ID and client secret to receive an access token for API requests.

## Request body

- object
  - `client_id` string, required — Unique identifier for the client.
  - `client_secret` string, required — Confidential key for the client.

## Response `200`

Access token generated successfully.

- object
  - `access_token` string — The JWT token to be used for subsequent API requests.
  - `token_type` string — The type of the token issued.
  - `expires_in` integer — Time in seconds until the token expires.

## Other responses

- `400` — Missing or invalid parameters.
- `401` — Invalid client credentials.
- `500` — Internal server error.

---

[API](https://skmtc.net/ellipsend/apis/ellipsend-api.md) · [All operations](https://skmtc.net/ellipsend/apis/ellipsend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ellipsend/ellipsend-api/versions/1031d523652c/schema)
