Difference between revisions of "Latest App Version Details"
Ashley DeBon (talk | contribs) (→Get App Version) |
Ashley DeBon (talk | contribs) (→Successful Response (200)) |
||
| Line 33: | Line 33: | ||
==== Request Body ==== | ==== Request Body ==== | ||
None. | None. | ||
| + | |||
| + | === cURL Example for Android === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/app-version' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' </pre> | ||
| + | |||
| + | === cURL Example for iOS === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/app-version' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' </pre> | ||
=== Successful Response (200) === | === Successful Response (200) === | ||
Latest revision as of 15:46, 20 July 2026
Contents
Mobile_API »Get App Version
Base URL
https://apimobile.callproof.com
Endpoint
/api/app-version
Purpose
Retrieves the latest published app version details for Android (Play Store), Android Call Log, and iOS, including major/minor/patch/build numbers and whether a force update is required.
HTTP Method
GET
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
Security
- Yes – Requires Bearer Token authentication.
Parameters
Path Parameters
None.
Query Parameters
None.
Request Body
None.
cURL Example for Android
curl --location 'https://apimobile.callproof.com/api/app-version' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
cURL Example for iOS
curl --location 'https://apimobile.callproof.com/api/app-version' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Successful Response (200)
Returns the latest version info for each supported platform.
| 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 |
| data | object | Latest app version payload |
| uri | string | Requested resource URI |
data.android_play_store / data.android_call_log / data.ios
| Field | Type | Description |
|---|---|---|
| major_version | integer/string | Latest major version number |
| minor_version | integer/string | Latest minor version number |
| patch_version | integer/string | Latest patch version number |
| build_version | integer/string | Latest build version number |
| is_force_update | boolean | Whether clients on older versions must force-update |
Error Responses
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – latest app version details could not be retrieved |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- 400 – An error occurred while retrieving version details (for example, "Error while retriving the Lastest App Versions").
- 401 – Authentication failed or the access token is missing/expired.