---
title: "Token"
method: POST
path: "/oauth/token"
tags: ["oauth"]
---

# Token

`POST /oauth/token`

OAuth 2.0 Token endpoint.

Supports two grant types:
- authorization_code: exchange an auth code for access + refresh tokens
- refresh_token: exchange a refresh token for a new access token

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `410` — Gone
- `422` — Validation Error
- `500` — Internal Server Error
- `503` — Service Unavailable

---

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