---
title: "Given a destination def ID generate an access/refresh token etc."
method: POST
path: "/v1/destination_oauths/complete_oauth"
tags: ["destination_oauth"]
---

# Given a destination def ID generate an access/refresh token etc.

`POST /v1/destination_oauths/complete_oauth`

## Request body

- CompleteDestinationOAuthRequest
  - `destinationDefinitionId` string, uuid, required
  - `destinationId` string, uuid
  - `oAuthInputConfiguration` unknown
  - `queryParams` object — The query parameters present in the redirect URL after a user granted consent e.g auth code
  - `redirectUrl` string — When completing OAuth flow to gain an access token, some API sometimes requires to verify that the app re-send the redirectUrl that was used when consent was given.
  - `workspaceId` string, uuid, required

## Response `200`

Successful operation

- CompleteOAuthResponse

## 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)
