---
title: "Given a destination connector definition ID, return the URL to the consent screen where to redirect the user to."
method: POST
path: "/v1/destination_oauths/get_consent_url"
tags: ["destination_oauth"]
---

# Given a destination connector definition ID, return the URL to the consent screen where to redirect the user to.

`POST /v1/destination_oauths/get_consent_url`

## Request body

- DestinationOauthConsentRequest
  - `destinationDefinitionId` string, uuid, required
  - `destinationId` string, uuid
  - `oAuthInputConfiguration` unknown
  - `redirectUrl` string, required — The url to redirect to after getting the user consent
  - `workspaceId` string, uuid, required

## Response `200`

Successful operation

- OAuthConsentRead
  - `consentUrl` string, required

## Other responses

- `404` — Object with given id was not found.
- `422` — Input failed validation

---

[API](https://skmtc.net/airbyte/apis/config.md) · [All operations](https://skmtc.net/airbyte/apis/config/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/airbyte/config/versions/ce48e08e02ec/schema)
