Campaigns

Create campaign with media

Creates a campaign with media attached: the campaign part is a Create Campaign Input as JSON and media is one to three files (600 KB in total; supported types include JPEG, GIF, PNG, audio, video and PDF). Everything else works as in Create Campaign, and POST /campaigns/preview with has_media previews the send instead. The media count, size and type limits (MediaLimitExceeded, MediaTooLarge, MediaTypeNotSupported) are enforced with the other API-side validation.

post/campaigns/create-with-media

Request

  • Base URL
    https://api.textla.com/v1
  • Auth
    HTTP bearer

Request body multipart/form-data

campaignstring required
mediastring[] required

Response

Created

$schemastring uri

A URL to the JSON Schema for this object.

batch_countinteger required
created_atinteger required
failure_codestring nullable required
idstring required
messagestring required
message_countinteger required
namestring required
phone_numberstring required
rejection_reasonstring nullable required
send_atinteger nullable required
statusstring required
updated_atinteger required

Example response

{
  "$schema": "/v1/schemas/Campaign.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.