Keystone Developers
Open Keystone
API reference

Console API

Business

4 endpoints.

GET/api/v1/admin/businesses/{business_id}

Get business details

Get business by id. 404 if not found.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_BusinessProfileData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredBusinessProfileData
BusinessProfileData fields
FieldTypeDescription
idrequiredstring
company_namestring | null
year_foundedinteger | null
website_urlstring | null
taglinestring | null
addressAddress | null
Address fields
FieldTypeDescription
line1string | null
line2string | null
citystring | null
statestring | null
zip_codestring | null
countrystring | null
descriptionsDescriptions | null
Descriptions fields
FieldTypeDescription
company_descriptionstring | null
aboutstring | null
mission_statementstring | null
valuesstring[]
string[] fields

Nested object (not expanded)

contact_infoContactInfo | null
ContactInfo fields
FieldTypeDescription
primary_phonestring | null
primary_emailstring | null
support_emailstring | null
sales_emailstring | null
external_management_urlstring | null
social_profilesSocialProfiles | null
SocialProfiles fields
FieldTypeDescription
facebookstring | null
instagramstring | null
twitterstring | null
linkedinstring | null
youtubestring | null
tiktokstring | null
google_my_businessstring | null
pintereststring | null
yelpstring | null
tripadvisorstring | null
google_reviewstring | null
terms_of_service_markdownstring | null
privacy_policy_markdownstring | null
accessibility_statement_markdownstring | null
terms_of_service_updated_atinteger | null

When the terms of service's text last changed (epoch seconds), whoever changed it; null while unchanged since the business was created.

privacy_policy_updated_atinteger | null

When the privacy policy's text last changed (epoch seconds), whoever changed it; null while unchanged since the business was created.

accessibility_statement_updated_atinteger | null

When the accessibility statement's text last changed (epoch seconds), whoever changed it; null while unchanged since the business was created.

is_activebooleandefault true
timezonestringdefault "America/New_York"
timezone_sourcestringdefault "default"
created_atinteger | null
guestboolean

Held by a guest still: someone trying Keystone who has not signed up from it yet.

default false
can_textboolean

The business can text its customers now: from a number of its own, else the shared Keystone number.

default true
texting_blocked_reasonenum | null

Why it can't text (null when it can): no number to text from; its numbers' rent is off; its texting registration is still being approved.

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
allintegerdefault 0
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
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/admin/businesses/{business_id}/dashboard

Get dashboard info for a specific business

Counts (services, locations, team, faq, jobs, photos) for a specific business.

Access control is handled by ``member_route()``: the caller must have a ``business_users`` row for ``business_id``, OR be Keystone's admin. Otherwise 403. Returns 404 NOT_FOUND when the business id doesn't exist.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_BusinessDashboardData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredBusinessDashboardData
BusinessDashboardData fields
FieldTypeDescription
business_idrequiredstring
business_namerequiredstring
services_countrequiredinteger
packages_countrequiredinteger
service_items_countrequiredinteger
locations_countrequiredinteger
team_countrequiredinteger
faq_countrequiredinteger
jobs_countrequiredinteger
photos_countrequiredinteger
business_role_idinteger | null

The caller's role in this business: 300 its admin, 400 a member; null when they are not a member (a Keystone admin reaching it).

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.