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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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.