Create a new Stream Message

POST /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages

TODO: Resource-level docs

Create a new Stream Message.

Path parameters

  • ServiceSid string Required

    The SID of the Sync Service to create the new Stream Message in.

  • StreamSid string Required

    The SID of the Sync Stream to create the new Stream Message resource for.

Body

  • Data Required

    A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length.

Responses

  • Created

    Hide response attributes Show response attributes object
    • Stream Message body

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^TZ[0-9a-fA-F]{32}$.

POST /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages
curl \
 -X POST https://sync.twilio.com/v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded"
Request example
{}
Request examples
{}
Response examples (201)
{
  "sid": "string"
}
Response examples (201)
{
  "sid": "string"
}