Keystone Developers
Open Keystone
API reference

Console API

Website

9 endpoints.

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

Get website for business

Always 200. Returns optional website payload (null if not created).

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteGetResponse_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteGetResponse
WebsiteGetResponse fields
FieldTypeDescription
websiteWebsiteResponse | null
WebsiteResponse fields
FieldTypeDescription
idrequiredstring (uuid)
business_idrequiredstring (uuid)
namerequiredstring
slugrequiredstring
domainrequiredstring
preview_urlstring | null
worker_urlstring | null
custom_domainstring | null
source_domainstring | null
statusrequiredstring
provisioning_errorstring | null
build_requeststring | null
github_repo_idinteger | null
website_photosWebsitePhotos | null
WebsitePhotos fields

WebsitePhotos (not expanded)

unpublished_atinteger | null
gtm_container_public_idstring | null
customer_gtm_public_idstring | null
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}/website-check/artifacts/{artifact_id}

A screenshot the website's browser check took

The image bytes; 404 for a screenshot of another business, or none.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
artifact_idrequiredpathstring

Responses

200Successful Response
  • 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}/website/collaborators

List who has access to the business's site repo

Direct collaborators (``status="active"``) merged with pending invitations (``status="invited"``). Direct affiliation only: org-inherited members (org members, the App) are asked out of the list at GitHub.

404 while the flag is off, for an unknown business, and for a business with no site repo yet.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteCollaboratorsData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteCollaboratorsData
WebsiteCollaboratorsData fields
FieldTypeDescription
repo_full_namerequiredstring
collaboratorsrequiredWebsiteCollaboratorRow[]
WebsiteCollaboratorRow[] fields

WebsiteCollaboratorRow (not expanded)

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/admin/businesses/{business_id}/website/screenshots/{shot_id}

A screenshot a site look or check the chat made took

The JPEG the chat's questions show by ``ks://screenshot/<id>``; 404 once it expired, or for another business's.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
shot_idrequiredpathstring

Responses

200Successful Response
  • 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}/website/sitemap

Get the pages on the published site's sitemap

Always 200: the latest generated sitemap's pages (address, title, last modified) and when it was generated; no pages and a null ``generated_at`` before the first one.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteSitemapData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteSitemapData
WebsiteSitemapData fields
FieldTypeDescription
generated_atinteger | null

When this sitemap was generated (epoch seconds); null before the first one.

domainstring | null
page_countintegerdefault 0
pagesWebsiteSitemapPage[]
WebsiteSitemapPage[] fields

WebsiteSitemapPage (not expanded)

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/admin/businesses/{business_id}/website/sitemap/search-console

What Google Search Console made of the site's sitemap

Always 200: Keystone's last submission of the sitemap and, once the property is verified, Google's answer read just now (when it last received and read the sitemap, pending, and the errors and warnings it reports). ``state`` says which parts there are.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteSitemapSearchConsoleData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteSitemapSearchConsoleData
WebsiteSitemapSearchConsoleData fields
FieldTypeDescription
staterequiredenum

off: Search Console is not set up on Keystone; no_custom_domain: the site has no custom domain, which Search Console needs; not_verified: Keystone has not yet verified the domain with Google (no submission has succeeded); checked: Google answered at checked_at (kept up to ten minutes, and asked again after a successful submission); unreadable: Google did not answer (the google_* fields are null).

one of "off", "no_custom_domain", "not_verified", "checked", "unreadable"
site_urlstring | null

The Search Console property.

sitemap_urlstring | null
verified_atinteger | null

When Keystone verified the property.

submission_statusstring | null

Keystone's last submission: submitted | failed; null before the first.

submission_atinteger | null
submission_errorstring | null

Why the last submission failed.

google_submitted_atinteger | null

When Google last received the sitemap.

google_read_atinteger | null

When Google last read (downloaded) the sitemap.

pendingboolean | null

Google has not processed the sitemap yet.

errorsinteger | null

Errors Google reports in the sitemap.

warningsinteger | null

Warnings Google reports in the sitemap.

checked_atinteger | null

When Google was asked (state checked or unreadable); with checked, up to ten minutes ago.

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/admin/websites/{website_id}/custom-domain

Get custom domain state

Return current custom_domain, worker_name (repo_name), and preview_url when set; otherwise success with custom_domain: null.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
website_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_CustomDomainGetResponse_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredCustomDomainGetResponse
CustomDomainGetResponse fields
FieldTypeDescription
successbooleandefault true
custom_domainstring | null
source_domainstring | null
worker_namestring | null
preview_urlstring | null
entri_enabledbooleandefault false
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/admin/websites/{website_id}/custom-domain-status

Get custom domain status

Return Cloudflare status, ssl_status, validation_records, and dns_instructions when custom_domain is set; else { status: 'none' }.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
website_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_CustomDomainStatusResponse_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredCustomDomainStatusResponse
CustomDomainStatusResponse fields
FieldTypeDescription
successbooleandefault true
statusrequiredstring
domainstring | null
ssl_statusstring | null
validation_errorsany[] | null
any[] | null fields
validation_recordsobject[] | null
object[] | null fields

Nested object (not expanded)

dns_instructionsDnsInstructions | null
DnsInstructions fields
FieldTypeDescription
domainrequiredstring
recordsrequiredDnsInstructionsRecord[]
DnsInstructionsRecord[] fields

Nested object (not expanded)

redirectDnsInstructionsRedirect | null
DnsInstructionsRedirect fields

DnsInstructionsRedirect (not expanded)

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/admin/websites/{website_id}/entri-setup

Get Entri setup (token + dnsRecords) for automated DNS

Mint a fresh Entri token and build the dnsRecords for entri.showEntri().

Dedicated endpoint (not folded into create/status) so a fresh short-lived token is minted each time the user opens the modal. 409 if no custom domain is configured yet.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
website_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_EntriSetupResponse_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredEntriSetupResponse
EntriSetupResponse fields
FieldTypeDescription
successbooleandefault true
application_idrequiredstring
tokenrequiredstring
prefilled_domainrequiredstring
dns_recordsrequiredEntriDnsRecord[]
EntriDnsRecord[] fields

EntriDnsRecord (not expanded)

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.