Get Location settings
GET
/api/v1/location
const url = 'https://example.com/api/v1/location';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/location \ --header 'Authorization: Bearer <token>'Return the caller’s Location settings. The response includes whether Location is enabled, whether Log entries record matching Saved places, the current position, and the confirmed time zone. Route: /api/v1/location. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
enabled
required
boolean
position
record_places_on_logs
required
boolean
timezone
The confirmed User zone used when a request has no zone header.
string | null
Examplegenerated
{ "enabled": true, "position": { "approximate": true, "latitude": 1, "longitude": 1 }, "record_places_on_logs": true, "timezone": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}