Difference between revisions of "Glass America Locations"
Ashley DeBon (talk | contribs) (→Get Glass America Locations) |
Ashley DeBon (talk | contribs) (→Successful Response (200)) |
||
| Line 38: | Line 38: | ||
==== Request Body ==== | ==== Request Body ==== | ||
None. | None. | ||
| + | |||
| + | === cURL Example for Android === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/glass-america/locations' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Phpsessid: YOUR_OMEGA_SESSION_ID' \ --header 'Cookie1: YOUR_OMEGA_COOKIE_VALUE' </pre> | ||
| + | |||
| + | === cURL Example for iOS === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/glass-america/locations' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Phpsessid: YOUR_OMEGA_SESSION_ID' \ --header 'Cookie1: YOUR_OMEGA_COOKIE_VALUE' </pre> | ||
=== Successful Response (200) === | === Successful Response (200) === | ||
Latest revision as of 14:12, 21 July 2026
Mobile_API » Get Glass America Locations
Base URL
https://apimobile.callproof.com
Endpoint
/api/glass-america/locations
Purpose
Retrieves the list of Glass America / Omega dashboard locations available to the authenticated company session. Location data is fetched from the external Omega locations service and returned as a simplified id/name list.
HTTP Method
GET
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
| Phpsessid | Yes | Omega session ID forwarded to the external locations service |
| Cookie1 | Yes | Omega session cookie forwarded to the external locations service |
Security
- Yes – Requires Bearer Token authentication.
- Also requires a valid Omega dashboard session (
Phpsessid/Cookie1), typically obtained via the Glass America dashboard login endpoint.
Parameters
Path Parameters
None.
Query Parameters
None.
Request Body
None.
cURL Example for Android
curl --location 'https://apimobile.callproof.com/api/glass-america/locations' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Phpsessid: YOUR_OMEGA_SESSION_ID' \ --header 'Cookie1: YOUR_OMEGA_COOKIE_VALUE'
cURL Example for iOS
curl --location 'https://apimobile.callproof.com/api/glass-america/locations' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Phpsessid: YOUR_OMEGA_SESSION_ID' \ --header 'Cookie1: YOUR_OMEGA_COOKIE_VALUE'
Successful Response (200)
Returns the available locations.
| 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 | Locations payload |
| uri | string | Requested resource URI |
data.location_details[]
| Field | Type | Description |
|---|---|---|
| id | integer/string | Unique identifier of the location |
| name | string | Location display name |
Error Responses
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – locations could not be retrieved |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- 400 – Upstream Omega session/data error (message from the external service), or another retrieval failure.
- 401 – Authentication failed or the access token is missing/expired.