Skip to main content

Send a group MMS message

POST 
/messages/group_mms

Send a group MMS message

Request

Body

Message payload

    from addressrequired

    Phone number, in +E.164 format, used to send the message.

    to address[]required

    A list of destinations. No more than 8 destinations are allowed.

    text string

    Message body (i.e., content) as a non-empty string.

    subject string

    Subject of multimedia message

    media_urls url[]

    A list of media URLs. The total media size must be less than 1 MB.

    webhook_url url

    The URL where webhooks related to this message will be sent.

    webhook_failover_url url

    The failover URL where webhooks related to this message will be sent if sending to the primary URL fails.

    use_profile_webhooks boolean

    Default value: true

    If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile.

Responses

200: Successful response with details about a message.

default: Unexpected error

Callbacks

Request samples


curl -L 'https://api.telnyx.com/v2/messages/group_mms' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"from": "+13125551234",
"to": [
"+18655551234",
"+14155551234"
],
"text": "Hello, World!",
"subject": "From Telnyx!",
"media_urls": [
"http://example.com"
],
"webhook_url": "http://example.com/webhooks",
"webhook_failover_url": "https://backup.example.com/hooks",
"use_profile_webhooks": true
}'

Response samples


{
"data": {
"record_type": "message",
"direction": "outbound",
"id": "40385f64-5717-4562-b3fc-2c963f66afa6",
"type": "MMS",
"messaging_profile_id": "4000eba1-a0c0-4563-9925-b25e842a7cb6",
"organization_id": "b448f9cc-a842-4784-98e9-03c1a5872950",
"from": {
"phone_number": "+18445550001",
"carrier": "TELNYX LLC",
"line_type": "VoIP"
},
"to": [
{
"phone_number": "+18665550001",
"status": "queued",
"carrier": "T-MOBILE USA, INC.",
"line_type": "Wireless"
}
],
"text": "Hello, World!",
"subject": "From Telnyx!",
"media": [
{
"url": "https://pbs.twimg.com/profile_images/1142168442042118144/AW3F4fFD_400x400.png",
"content_type": null,
"sha256": null,
"size": null
}
],
"webhook_url": "https://www.example.com/hooks",
"webhook_failover_url": "https://backup.example.com/hooks",
"encoding": "GSM-7",
"parts": 1,
"tags": [
"Greetings"
],
"cost": null,
"received_at": "2019-01-23T18:10:02.574Z",
"sent_at": null,
"completed_at": null,
"valid_until": null,
"errors": []
}
}