---
title: "Request access token"
method: POST
path: "/v1/auth/token"
tags: ["Auth"]
---

# Request access token

`POST /v1/auth/token`

Request an access token using one of the supported OAuth2 grant types:
## Client Credentials 

  - HTTP Basic Auth, passing the Client ID and Client Secret as the username and password

  - `application/x-www-form-urlencoded` data, containing:

    - `{ grant_type: "client_credentials" }`


## Authorization Code

  - HTTP Basic Auth, passing the Client ID and Client Secret as the username and password

  - `application/x-www-form-urlencoded` data, containing:

    - ```
      { 
        grant_type: "authorization_code", 
        code: "eyJ0eXAi...." 
      }
      ```


## Refresh Token

  - HTTP Basic Auth, passing the Client ID and Client Secret as the username and password

  - `application/x-www-form-urlencoded` data, containing:

    - ```
      { 
        grant_type: "refresh_token", 
        refresh_token: "eyJ0eXAi...." 
      }
      ```

## Response `200`

200

- Token
  - `access_token` string
  - `refresh_token` string
  - `expires_in` integer
  - `token_type` 'Bearer'
  - `scope` string

## Other responses

- `400` — 400

---

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