Skip to main content
POST
/
embedded-banking
/
v1
/
bank-accounts
/
access
Manage access to bank accounts for users (grant or revoke).
curl --request POST \
  --url https://api.sandbox.tesouro.com/embedded-banking/v1/bank-accounts/access \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bankAccounts": [
    {
      "bankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "source": "INTERNAL"
    }
  ],
  "type": "GRANT",
  "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.

Authorizations

Authorization
string
header
required

Application (M2M) OAuth2 access token (client credentials).

Body

Request to manage access to bank accounts for users (grant or revoke).

bankAccounts
object[]
required

List of bank accounts to manage access for.

type
enum<string>
required

The type of access operation to perform.

Available options:
GRANT,
REVOKE
userIds
string<uuid>[]
required

List of user IDs to grant or revoke access for.

Response

Access updated successfully.