---
title: "Finish a Marketplace-initiated Pipedrive install"
method: POST
path: "/api/me/destinations/pipedrive/oauth/complete"
tags: ["me"]
---

# Finish a Marketplace-initiated Pipedrive install

`POST /api/me/destinations/pipedrive/oauth/complete`

## Request

- Base URL: `https://api.signalraven.ai`
- URL: `https://api.signalraven.ai/api/me/destinations/pipedrive/oauth/complete`
- Auth: none declared

Pipedrive's "Install now" opens the consent screen with no state from us, so the callback bounces the code to the portal. The signed-in customer posts it here within the code's 5-minute life and the destination is created.

## Request body

- object
  - `code` string, required

## Response `201`

Destination created or reconnected

- object
  - `destinationId` string, required
  - `name` string, required

## Other responses

- `400`: Pipedrive rejected the code
- `503`: Pipedrive OAuth not configured on this environment

---

[API](https://skmtc.dev/signalraven/apis/zygnal-api.md) · [All operations](https://skmtc.dev/signalraven/apis/zygnal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/signalraven/apis/zygnal-api/revisions/36e1d9b9d604?raw)
