Glass America Locations

From docs
Revision as of 14:09, 21 July 2026 by Ashley DeBon (talk | contribs) (Get Glass America Locations)
Jump to: navigation, search

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.

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.