Skip to main content
DELETE
/
api
/
connectors
cURL
curl --request DELETE \
  --url https://recoup-api.vercel.app/api/connectors \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "connected_account_id": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Connection to disconnect

connected_account_id
string
required

The connected account ID to disconnect (from ConnectorInfo.connectedAccountId)

account_id
string<uuid>

Optional account ID when disconnecting a connection that belongs to a different account (e.g., an artist). Required when the connection was created for another account rather than your own. The authenticated account must have access.

Response

Connector disconnected successfully

success
boolean
required
message
string

Status message