Requests on Behalf Of

Add X-On-Behalf to run a call as an approved connected account.

A call with your token runs as your own account. To run it as a connected account, add that account's ID in X-On-Behalf.

Leave the header off when the call is for you.

Before the header works

  1. Create the connected account. See Setup Account and KYC.
  2. Finish KYC or KYB for that account.
  3. Wait until the account is approved. The account ID from that step is the header value.

The header

Send your Bearer token as usual, plus:

Authorization: Bearer YOUR_ACCESS_TOKEN
X-On-Behalf: CONNECTED_ACCOUNT_ID

CONNECTED_ACCOUNT_ID is the connected account's ID.

The Authenticate call ignores this header. Request the token as yourself, then add the header on the later calls.

If the header is rejected

StatusWhat it means
400The value is not a valid account ID.
403That ID is not an approved connected account of yours.

Did this page help you?