Skip to Content

Public M2M API — widget

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/widget

Exported methods: GET, POST

GET

  • Resource scopes: conversations:read
  • Response keys observed across outcomes: activeConversations, orgId, widget

POST

  • Resource scopes: conversations:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: conversation, initialMessage

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
initialMessagestringNoNo—min(1), max(4000)
visitorEmailstringYesNo—email()
visitorNamestringYesNo—max(120)