---
title: "Read Token"
method: GET
path: "/o/read_token/"
tags: ["OAuth"]
---

# Read Token

`GET /o/read_token/`

## Request

- Base URL: `http://api.cannoli.app/api/v1`
- URL: `http://api.cannoli.app/api/v1/o/read_token/`
- Auth: none declared

You must send the `read_token` obtained from the Create Key Pair endpoint to obtain the user's OAuth tokens.

The endpoint will return a 404 error until authentication is completed. Once the user completes their
authentication flow the endpoint will return the access and refresh tokens. Afterwards the key pair will
become locked and any further requests using a spent `read_key` will return a 404 error.`

## Query parameters

- `read_key` string

## Response `200`

Get OAuth token

- TokenResponse
  - `access_token` string, required
  - `expires_in` integer, required
  - `token_type` 'Bearer', required
  - `scope` string, required
  - `refresh_token` string, required

---

[API](https://skmtc.dev/cannoli/apis/cannoli-backend-api.md) - [All operations](https://skmtc.dev/cannoli/apis/cannoli-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cannoli/apis/cannoli-backend-api/revisions/d27aef14fd7a?raw)
