Authenticate requests on-behalf of accounts
You can make an API call on-behalf of an account by passing their Account ID into requests in theYorlet-Account header.
In the following example, we create a new customer on behalf of an account:
Learn how to make requests on behalf of accounts using the Yorlet API.
Yorlet-Account header.
In the following example, we create a new customer on behalf of an account:
curl https://api.yorlet.com/v1/customers \
-H "Authorization: Bearer {{API_KEY}}" \
-H "Content-Type: application/json" \
-H "Yorlet-Account: {{ACCOUNT_ID}}" \
-d '{
"email": "[email protected]"
}'
Was this page helpful?