APIEvent sources
Create an inbound event source
POST
Hidden until inbound event webhooks are enabled. The source signs events it posts to /webhooks/clients/{sourceId}. The secret is returned once. Scope: webhooks:manage.
bearerheader
AuthorizationBearer <mosc_...>A client key (mosc_).
application/json- body
name*stringLength
1 <= lengthallowedTypes*array<>Items
1 <= itemsThe source id and its secret.
application/json- response
id*stringsecret*stringReturned only once.
Example request
curl -X POST 'https://api.messageos.ai/v1/event-sources' \ -H 'Authorization: Bearer mosc_...' \ -H 'Content-Type: application/json' \ -d '{ "name": "Orders", "allowedTypes": [ "lead.created" ]}'Example response
{ "id": "src_4f9a1c2b3d4e5f6a7b8c9d0e", "secret": "kT3v9QxZ2bYp7rW1sN5mL8aD0cF4gH6jE2uR7yI9oP1"}List messages in a conversation GET
Messages are in the order they were written. An inbound message shows the words the person typed or the label they tapped, and its id is the inboundMessageId of its reply.received event, so it can be sent as inReplyTo. Chip labels are included. Provider identifiers are not. Scope: conversations:read.
Submit an event POST
Submits one event from your own system. Hidden until events are enabled.
