Skip to main content
GET
/
locations
Retrieve Locations
curl --request GET \
  --url http://anchored.host/api/locations \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Locations retrieved successfully!",
  "locations": [
    {
      "id": "dallas",
      "name": "United States"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successful response with locations data

success
boolean
Example:

true

message
string
Example:

"Locations retrieved successfully!"

locations
object[]