Skip to main content
GET
/
locations
/
{location}
cURL
curl --request GET \
  --url https://api.caspen.com/v1/locations/{location}
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "timezone": "<string>",
  "country_code": "<string>",
  "online_booking": true,
  "abn": "<string>",
  "ndis_number": "<string>",
  "logo_id": "<string>",
  "image_id": "<string>",
  "service_ids": [
    "<string>"
  ],
  "practitioner_ids": [
    "<string>"
  ],
  "opening_hours": {
    "mon_active": true,
    "mon_opens_at": "<string>",
    "mon_closes_at": "<string>",
    "tue_active": true,
    "tue_opens_at": "<string>",
    "tue_closes_at": "<string>",
    "wed_active": true,
    "wed_opens_at": "<string>",
    "wed_closes_at": "<string>",
    "thu_active": true,
    "thu_opens_at": "<string>",
    "thu_closes_at": "<string>",
    "fri_active": true,
    "fri_opens_at": "<string>",
    "fri_closes_at": "<string>",
    "sat_active": true,
    "sat_opens_at": "<string>",
    "sat_closes_at": "<string>",
    "sun_active": true,
    "sun_opens_at": "<string>",
    "sun_closes_at": "<string>"
  },
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country_code": "<string>"
  },
  "created_at": "<string>"
}

Path Parameters

location
string
required

The location ID

Response

LocationResource

id
string

The location's unique identifier.

name
string

The location's name.

description
string | null

The location's description.

email
string | null

The location's email address.

phone
string | null

The location's phone number.

timezone
string

The location's timezone.

country_code
string

The location's country code.

online_booking
boolean | null

Whether online booking is enabled for this location.

abn
string | null

The location's Australian Business Number.

ndis_number
string | null

The location's NDIS number.

logo_id
string | null

The location's logo media ID.

image_id
string | null

The location's image media ID.

service_ids
string[]

The IDs of services available at this location.

practitioner_ids
string[]

The IDs of practitioners working at this location.

opening_hours
object

The location's opening hours for each day of the week.

address
object

The location's address details.

created_at
string

The timestamp when the location was created (ISO 8601).