Keystone Developers
Open Keystone
API reference

Console API

Chat attachments

1 endpoint.

POST/api/v1/admin/businesses/{business_id}/chat-attachments

Attach a picture or document to an Ask Keystone message

A picture (any ``image/*``) or a document Files takes; neither shows in the Library or Files until it is kept.

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)

Request bodyrequired

multipart/form-dataBody_upload_chat_attachment_api_v1_admin_businesses__business_id__chat_attachments_post
FieldTypeDescription
filerequiredstring

Responses

201Successful Response
application/jsonSuccessResponse_ChatAttachmentData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredChatAttachmentData
ChatAttachmentData fields
FieldTypeDescription
kindrequiredenum

image: a picture; file: a document; video: a video (MP4, QuickTime or WebM)

one of "image", "file", "video"
idrequiredstring
namerequiredstring
warningsstring[]

What the document's conversion could not read

string[] fields
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.