Keystone Developers
Open Keystone
API reference

Console API

Website agent

3 endpoints.

GET/api/v1/businesses/{business_id}/website-agent/config

Get effective website-agent settings for a business

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
authorizationheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteAgentConfigData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteAgentConfigData
WebsiteAgentConfigData fields
FieldTypeDescription
business_idrequiredstring
enabledrequiredboolean
instructionsstringdefault ""
webchat_enabledbooleandefault true
editor_model_idstring | null
versioninteger | null
updated_atstring (date-time) | 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
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.

PATCH/api/v1/businesses/{business_id}/website-agent/config

Update website-agent settings for a business

Partial diff. ``enabled`` / ``instructions`` persist as a new agent-settings version; ``webchat_enabled`` upserts webchat_configs in the same transaction (gates the live widget).

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
authorizationheaderstring | null

Request bodyrequired

application/jsonWebsiteAgentConfigPatchBody
FieldTypeDescription
enabledboolean | null
instructionsstring | null
webchat_enabledboolean | null
editor_model_idstring | null

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteAgentConfigData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteAgentConfigData
WebsiteAgentConfigData fields

WebsiteAgentConfigData, 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/businesses/{business_id}/website-agent/models

The models the website editor offers, and its defaults

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
authorizationheaderstring | null

Responses

200Successful Response
application/jsonSuccessResponse_WebsiteAgentModelsData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredWebsiteAgentModelsData
WebsiteAgentModelsData fields
FieldTypeDescription
modelsrequiredWebsiteAgentModelOption[]
WebsiteAgentModelOption[] fields

WebsiteAgentModelOption (not expanded)

default_model_idrequiredstring
business_default_model_idstring | null
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.