---
title: "Get connector's authorization URI"
method: POST
path: "/api/connectors/{connectorId}/authorization-uri"
tags: ["Connectors"]
---

# Get connector's authorization URI

`POST /api/connectors/{connectorId}/authorization-uri`

Get authorization URI for specified connector by providing redirect URI and randomly generated state.

## Path parameters

- `connectorId` string, required

## Request body

- object
  - `state` string, required — A random string generated on the client side to prevent CSRF (Cross-Site Request Forgery) attacks.
  - `redirectUri` string, required — The URI to navigate back to after the user is authenticated by the connected social identity provider and has granted access to the connector.

## Response `200`

Successfully built authorization URI.

- object
  - `redirectTo` string, url, required
  - `redirectUri` unknown

## Other responses

- `400` — Unable to build authorization URI.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The connector with the specified ID does not exist.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/0287c6a59eba/schema)
