---
title: "Refresh an OAuth token"
method: POST
path: "/o/refresh/"
tags: ["OAuth"]
---

# Refresh an OAuth token

`POST /o/refresh/`

## Request

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

OAuth tokens expire after x days so you'll need to renew your your tokens by using the `refresh_token`.

## Request body `application/x-www-form-urlencoded`

- object
  - `grant_type` 'refresh_token', required
  - `refresh_token` string, required
  - `client_id` string, required
  - `client_secret` string, required

## Response `200`

User login response

- 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)
