---
title: "Complete OAuth callback"
method: POST
path: "/v1/connect/{platform}"
tags: ["Connect"]
---

# Complete OAuth callback

`POST /v1/connect/{platform}`

Exchange the OAuth authorization code for tokens and connect the account to the specified profile.

## Path parameters

- `platform` string, required

## Request body

- object
  - `code` string, required
  - `state` string, required
  - `profileId` string, required

## Response `200`

Account connected

## Other responses

- `400` — Invalid params
- `401` — Unauthorized
- `403` — BYOK required for AppSumo Twitter
- `500` — Internal error while connecting the account
- `502` — The platform rejected the token exchange (type: platform_error; an upstream 4xx status is forwarded instead of 502)

---

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