---
title: "Generate Credentials v3"
method: GET
path: "/v2/auth/token"
---

# Generate Credentials v3

`GET /v2/auth/token`

Clients can use this API to generate a JSON Web Token for secure access to all v3 APIs as an alternative to client_id & client_secret.

## Request body

- object
  - `grant_type` string, required — Possible value: client_credentials, refresh_token
  - `client_id` string — Decentro assigned client_id during on boarding.
  - `client_secret` string — Decentro assigned client_secret during on boarding.
  - `refresh_token` string — The refresh token generated from the previous response of this API.

## Response `200`

200

- union
  - object
    - `access_token` string
    - `refresh_token` string
    - `request_urn` string
  - object
    - `access_token` string
    - `refresh_token` string
    - `request_urn` string

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/decentro/apis/decentro-staging.md) · [All operations](https://skmtc.dev/decentro/apis/decentro-staging/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decentro/decentro-staging/revisions/f1a86ce4638c/schema)
