curl --request POST \
--url https://api.partoo.co/v2/connection/revoke_token \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"user_id": "5309c3a237bbc544d8e26737",
"token": "\\xaf3e8951c1f4c42f9cc53116b3fc855bd44bce01cf27604b"
}
'{}This endpoint lets you revoke a connection token. To be able to revoke a connection token for a user, you need to have WRITE access on that user and the connection token must be valid (not expired, not revoked and not consumed).
curl --request POST \
--url https://api.partoo.co/v2/connection/revoke_token \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"user_id": "5309c3a237bbc544d8e26737",
"token": "\\xaf3e8951c1f4c42f9cc53116b3fc855bd44bce01cf27604b"
}
'{}The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
OK
The response is of type object.
Was this page helpful?