---
title: "Exchange PKCE code for access token"
method: POST
path: "/v1/oauth/token"
---

# Exchange PKCE code for access token

`POST /v1/oauth/token`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/oauth/token`
- Auth: none required

## Request body

- OauthTokenRequest
  - `grant_type` 'authorization_code', required
  - `code` string, required
  - `code_verifier` string, required
  - `client_id` string, required
  - `redirect_uri` string, required

## Response `200`

Token

- object
  - `data` OauthTokenData, required
    - `access_token` string, required
    - `token_type` 'Bearer'
    - `expires_in` integer, required

## Other responses

- `default`: Error envelope

---

[API](https://skmtc.dev/specstream/apis/specstream-api.md) · [All operations](https://skmtc.dev/specstream/apis/specstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specstream/apis/specstream-api/revisions/5a9f51143a13?raw)
