---
title: "OAuth callback"
method: GET
path: "/oauth/{provider}/token"
tags: ["auth"]
---

# OAuth callback

`GET /oauth/{provider}/token`

Handles the OAuth token refresh workflow for the specified provider.

## Path parameters

- `provider` string, required

## Query parameters

- `token` string, required
- `refreshtoken` string, required

## Response `200`

OK

- OauthTokenResponse
  - `token` string — The access token used for API requests. Typically expires after a short duration.
  - `expiresin` integer — The duration in seconds that the access token is valid for.

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2025-03-03** `3b481073ba24` — 1 info
  - endpoint added
- **2023-06-29** `0e6bd4e2dcc9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/changes/oauth/:provider/token/get.md)

---

[API](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api.md) · [All operations](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/loxilb-io/loxilb-rest-api/revisions/cb6820b4f999/schema)
