Account: Session
DELETE Session
This endpoint deletes an user session
Endpoint
DELETE /account/api/v1/session
Description
This API endpoint deletes a session associated with a specified account.
Request Parameters
Query Parameters
-
ownerId (string, required): The unique identifier of the account owner, usually the
app_user_id
. -
domain (string, required): The
app
associated with the account, usually a string like"instagram"
,"amazon"
.
Request Headers
-
Content-Type: application/json
-
Authorization: Bearer <API_KEY>
Response
Success (200 OK)
Returns a message indicating that the session was removed successfully.
Example response:
{
"message": "Session removed successfully",
"ownerId": "exampleOwnerId",
"domain": "exampleDomain"
}
Error (404 Not Found)
Returned if the session does not exist.
Example response:
{
"error": "Session not found"
}
Error (403 Forbidden)
Returned if the client does not have the necessary permissions to delete the session.
Example response:
{
"error": "Forbidden: Access to the requested resource is denied."
}
Was this page helpful?