Create Message
POST {{baseUrl}}/sms/messages?raw=false
Create Message
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes |
Request Body
{"from"=>"+15017122661", "to"=>"+15017122662", "body"=>"Hi! How are you doing?", "subject"=>"Picture", "type"=>"sms", "scheduled_at"=>"2020-09-30T07:43:32.000Z", "webhook_url"=>"https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference"=>"CUST001", "messaging_service_id"=>"123456"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-apideck-consumer-id | string | (Required) ID of the consumer which you want to get or push data from | |
x-apideck-app-id | string | (Required) The ID of your Unify application | |
x-apideck-service-id | string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status_code":200,"status":"OK","service":"twilio","resource":"Messages","operation":"add","data":{"id":"12345"}}