Difference between revisions of "Mobile Logout"

From docs
Jump to: navigation, search
(Created page with "== Logout == === Base URL === https://apimobile.callproof.com === Endpoint === /api/logout === Purpose === Logs out the authenticated user by revoking their access tokens a...")
 
(Logout)
Line 1: Line 1:
== Logout ==
+
== [[Mobile_API]] »Logout ==
  
 
=== Base URL ===
 
=== Base URL ===

Revision as of 12:06, 21 July 2026

Mobile_API »Logout

Base URL

https://apimobile.callproof.com

Endpoint

/api/logout

Purpose

Logs out the authenticated user by revoking their access tokens and optionally removing the device push-notification (FCM) token associated with the session.

HTTP Method

GET

Headers

Header Required Description
Authorization Yes Bearer access token

Security

  • Yes – Requires Bearer Token authentication.

Parameters

Path Parameters

None.

Query Parameters

Parameter Type Required Description
fcm_token string No Device FCM token to remove from the user’s device log on logout

Request Body

None.

Successful Response (200)

Indicates that the user was logged out successfully.

Field Type Description
clientStatusCode integer Status indicator for the client (for example, 200)
user_id integer Identifier of the authenticated user
company_id integer Identifier of the authenticated user’s company
message string Confirmation message (for example, "Logout Successful")
uri string Requested resource URI

Error Responses

Status Code Meaning
400 Bad Request – logout could not be completed
401 Unauthorized – missing, invalid, or expired Bearer token
  • 400 – An error occurred while logging out.
  • 401 – Authentication failed or the access token is missing/expired.