curl --request POST \
--url https://api.sandbox.tesouro.com/embedded-banking/v1/bank-accounts/{id}/access \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Grants access to the specified bank account for the given users.
Token types: APP, USER | Required scopes: embedded:bankaccount:write
curl --request POST \
--url https://api.sandbox.tesouro.com/embedded-banking/v1/bank-accounts/{id}/access \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
Application (M2M) OAuth2 access token (client credentials).
The bank account ID.
Request to grant access to a bank account for specified users.
List of user IDs to grant access to.
Access granted successfully.
Was this page helpful?