---
title: "Exchange an identity token for an access token"
method: POST
path: "/config/token"
tags: ["Auth"]
---

# Exchange an identity token for an access token

`POST /config/token`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/config/token`
- Auth: none required
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/config/token/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `token` string, required
  - `token_type` 'AccessToken' | 'IdToken', required

## Response `200`

Success

- TokenExchangeResponseBody
  - `access_token` string, required
  - `expires_in` integer, required
  - `issued_token_type` string, required
  - `token_type` string, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
