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

---

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