cURL
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>" }
Revokes access to the specified bank account from the given user. Cannot revoke your own access.
Token types: APP, USER | Required scopes: embedded:bankaccount:write
embedded:bankaccount:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The bank account ID.
The user ID to revoke access from.
Access revoked successfully.
Was this page helpful?