---
title: "Oauth Callback"
method: POST
path: "/v2/credentials/{platform}/callback"
tags: ["Credentials v2"]
---

# Oauth Callback

`POST /v2/credentials/{platform}/callback`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/credentials/{platform}/callback`
- Auth: HTTP bearer

Handle OAuth callback and store credentials.

This endpoint is called by the frontend after the user authorizes.

## Path parameters

- `platform` string, required

## Request body

- OAuthCallbackRequest: Request body for OAuth callback.
  - `code` string, required
  - `state` string, required

## Response `200`

Successful Response

- OAuthCallbackResponse: Response after successful OAuth callback.
  - `credential_id` string, required
  - `platform` string, required
  - `account_name` string, required
  - `account_username` string, nullable, required
  - `display_name` string, required
  - `return_context` object, nullable
  - `message` string
  - `account_label` string, nullable
  - `already_connected` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
