Skip to main content
POST
/
embedded-banking
/
v1
/
external-bank-accounts
/
{id}
/
access
Grant access to an external bank account.
curl --request POST \
  --url https://api.sandbox.tesouro.com/embedded-banking/v1/external-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>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

The external bank account ID.

Body

Request to grant access to a bank account for specified users.

userIds
string<uuid>[]
required

List of user IDs to grant access to.

Response

Access granted successfully.