---
title: "POST /salesforce/callback"
method: POST
path: "/salesforce/callback"
---

# POST /salesforce/callback

`POST /salesforce/callback`

## Request body

- SalesforceAuthorization
  - `code` string, required — authorization code provided by salesforce, to fetch access token
  - `isSandbox` boolean — defines if the salesforce domain belongs to a sandbox, if not present, it is considered a production domain
  - `organizationUUID` string — if the action is performed by an user of a privileged org, this is the target organization to add the account
  - `state` string — signed OAuth state echoed back from the Salesforce redirect; when present, the backend derives the environment from its claims instead of the isSandbox flag

## Response `default`

unexpected error

- Error
  - `code` integer
  - `error_code` string — Stable machine-readable error code (e.g., EMAIL_NOT_VERIFIED). Optional; populated by endpoints that distinguish multiple error states behind one HTTP status.
  - `message` string

---

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