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

# Token Endpoint

`POST /oauth/token`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/oauth/token`
- Auth: none declared

Token endpoint — exchange code or refresh.

## Headers

- `API-Version` '1'

## Response `200`

Successful Response

- TokenResponse: RFC 6749 token endpoint response.
  - `access_token` string, required
  - `token_type` string
  - `expires_in` integer, required: Access token lifetime in seconds
  - `refresh_token` string, nullable
  - `scope` string, required: Space-delimited granted scopes

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/totalparks/apis/total-parks-public-api.md) · [All operations](https://skmtc.dev/totalparks/apis/total-parks-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/totalparks/apis/total-parks-public-api/revisions/dcb4c822e2c6?raw)
