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

# POST /v1/oauth/token

`POST /v1/oauth/token`

OAuth 2.0 Token Endpoint

## Request body

- object
  - `grant_type` 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:jwt-bearer' | 'urn:workos:agent-auth:grant-type:claim', required
  - `code` string
  - `redirect_uri` string
  - `client_id` string
  - `client_secret` string
  - `code_verifier` string
  - `resource` string
  - `refresh_token` string
  - `claim_token` string
  - `assertion` string

## Response `200`

Default Response

- object
  - `access_token` string
  - `refresh_token` string
  - `token_type` string
  - `expires_in` number
  - `scope` string
  - `identity_assertion` string
  - `assertion_expires` string

---

[API](https://skmtc.net/printhiv3d/apis/hive-api-documentation.md) · [All operations](https://skmtc.net/printhiv3d/apis/hive-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printhiv3d/hive-api-documentation/revisions/3b06bcb5f808/schema)
