Skip to main content
DELETE
/
embedded-banking
/
v1
/
bank-accounts
/
{id}
/
access
/
{userId}
Revoke access from a bank account.
curl --request DELETE \
  --url https://api.sandbox.tesouro.com/embedded-banking/v1/bank-accounts/{id}/access/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "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 bank account ID.

userId
string<uuid>
required

The user ID to revoke access from.

Response

Access revoked successfully.