---
title: "Connector OAuth callback"
method: GET
path: "/auth/connectors/callback"
tags: ["AuthConnector"]
---

# Connector OAuth callback

`GET /auth/connectors/callback`

Handle the provider redirect after user consent and persist the granted connector tokens.

## Query parameters

- `state` string, required — Opaque state token issued when consent was initiated.
- `code` string, nullable
- `error` string, nullable
- `error_description` string, nullable
- `error_subcode` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `403` — The provider granted insufficient scopes for the requested capabilities.
- `404` — No connector or OAuth client exists for the consent state.
- `422` — Validation Error
- `503` — Token exchange with the OAuth provider failed.

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/versions/b53e89b98c2b/schema)
