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
- Create the connected account. See Setup Account and KYC.
- Finish KYC or KYB for that account.
- 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
| Status | What it means |
|---|---|
| 400 | The value is not a valid account ID. |
| 403 | That ID is not an approved connected account of yours. |
Updated 10 days ago
Did this page help you?