---
title: "Generate OAuth access token"
method: POST
path: "/oauth/token"
tags: ["oauth"]
---

# Generate OAuth access token

`POST /oauth/token`

Generate an OAuth access token by using an authorization code or a refresh token.

See <a href='/docs/api/v5/#tag/Authentication'>Authentication</a> for more.

## Response `200`

response

- OauthAccessTokenResponse — A successful OAuth access token response.
  - `response_type` 'authorization_code' | 'refresh_token'
  - `access_token` string, required
  - `token_type` string, required
  - `expires_in` integer, required
  - `scope` string, required

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.dev/pinterest/apis/pinterest-rest-api.md) · [All operations](https://skmtc.dev/pinterest/apis/pinterest-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pinterest/pinterest-rest-api/revisions/0d5998752011/schema)
