---
title: "GET /oauth/callback"
method: GET
path: "/oauth/callback"
tags: ["OAuth"]
---

# GET /oauth/callback

`GET /oauth/callback`

Receives an authorization code from the OAuth provider to create an
access token for the user. Redirects to a URL provided by the client
when the OAuth authentication process was initiated.

## Headers

- `SplinterProtocolVersion` integer

## Other responses

- `302` — Splinter has successfully exchanged the authorization code provided by the OAuth provider has been successfully exchanged for an access token. The application may then be redirected to the `redirect_url` provided when the OAuth authentication process was initiated. The `redirect_url` has the access token and other user data required to log in the user to the application appended to it as query parameters.
- `400` — Request was malformed or no authorization request was found correlating to the authorization code and the server was unable to retrieve the request's `referer` header value.
- `500` — Internal server error occurred

---

[API](https://skmtc.dev/cargill/apis/splinterd-api.md) · [All operations](https://skmtc.dev/cargill/apis/splinterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cargill/splinterd-api/revisions/38a272c24bd9/schema)
