---
title: "Initiate admin connector consent"
method: GET
path: "/auth/connectors/{connector_id}/consent/admin"
tags: ["AuthConnector"]
---

# Initiate admin connector consent

`GET /auth/connectors/{connector_id}/consent/admin`

Start the admin consent flow for connectors that require organization-wide admin consent.

## Path parameters

- `connector_id` integer, required — ID of the connector to consent to.

## Query parameters

- `tenant_id` integer
- `cookie_name` string, nullable

## Response `200`

Successful Response

- ConnectorConsentOut
  - `consent_url` string, required — URL to redirect the user to for granting consent.
  - `connector` ConnectorOut, required
    - `id` integer, required — Unique identifier of the connector.
    - `name` string, required — Human-readable connector name.
    - `provider` string, required — OAuth provider key backing the connector.
    - `caps` string[], required — Capabilities the connector requests.
    - `scopes` string[], required — OAuth scopes requested from the provider.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Administrator privileges required.
- `404` — No connector or OAuth client exists for the given id.
- `422` — Validation Error
- `503` — The OAuth provider has no admin consent URL or is misconfigured.

---

[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/revisions/b53e89b98c2b/schema)
