---
title: "Exchange code for tokens"
method: POST
path: "/auth/web3/exchange"
tags: ["auth"]
---

# Exchange code for tokens

`POST /auth/web3/exchange`

Exchange one-time code for tokens (redirect flow)

## Request body

- object
  - `code` string, required

## Response `200`

Default Response

- object
  - `token` string, required
  - `refreshToken` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response

---

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