Keystone Developers
Open Keystone
API reference

Public API

Locations

4 endpoints.

GET/api/v1/public/locations

List locations

All active locations for the business, ordered by display_order. Paginated.

Parameters

NameInTypeDescription
pagequeryintegerdefault 1
per_pagequeryintegerdefault 10
X-API-Keyheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_list_PublicLocation__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredPublicLocation[]
PublicLocation[] fields
FieldTypeDescription
idrequiredstring
namestring | null
slugstring | null
address_line_1string | null
address_line_2string | null
citystring | null
statestring | null
zip_codestring | null
countrystring | null
is_primarybooleandefault false
activebooleandefault true
phonestring | null
emailstring | null
descriptionstring | null
description_markdownstring | null
timezonestring | null
business_hoursPublicBusinessHours | object | null
PublicBusinessHours | object | null fields

Nested object (not expanded)

photo_attachmentsPublicPhotoAttachment[]
PublicPhotoAttachment[] fields

Nested object (not expanded)

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields
FieldTypeDescription
totalinteger | null
total_countinteger | null
pageinteger | null
per_pageinteger | null
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/public/locations/{location_id}

Get location by ID

Get a single location by id. 404 if not found.

Parameters

NameInTypeDescription
location_idrequiredpathstring (uuid)
X-API-Keyheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_PublicLocation_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredPublicLocation
PublicLocation fields

PublicLocation, expanded above.

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/public/locations/by_slug/{slug}

Get location by slug

Get a single location by slug. 404 if not found.

Parameters

NameInTypeDescription
slugrequiredpathstring
X-API-Keyheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_PublicLocation_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredPublicLocation
PublicLocation fields

PublicLocation, expanded above.

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/public/locations/primary

Get primary location (real or placeholder)

Parameters

NameInTypeDescription
X-API-Keyheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_dict_str__Any__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredobject
metadataResponseMetadata | null
ResponseMetadata fields
FieldTypeDescription
paginationPaginationMetadata | null
PaginationMetadata fields
FieldTypeDescription
limitrequiredinteger
next_cursorstring | null
prev_cursorstring | null
has_morerequiredboolean
has_prevbooleandefault false
total_countinteger | null
status_countsobject | null
object | null fields

Map of string to integer

lifecycle_countsLifecycleCounts | null
LifecycleCounts fields
FieldTypeDescription
leadintegerdefault 0
prospectintegerdefault 0
customerintegerdefault 0
former_customerintegerdefault 0
classification_countsClassificationCounts | null
ClassificationCounts fields
FieldTypeDescription
signalobject
object fields

Nested object (not expanded)

touchobject
object fields

Nested object (not expanded)

stageobject
object fields

Nested object (not expanded)

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.