Create New Messaging Report

Ashley Parks -

Creating a new momt report

POST /api/v2/momt_reports

Parameters

NameDescription
date_from {:scope=>:momt_reports}
date_to {:scope=>:momt_reports}
webhook_callback_url {:scope=>:momt_reports}

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: Basic dGF0YW5nbzp0YXRhbmdvX2tleV8yemNCTUpvMVlGYTlpVWxweWdIamRR

Host: example.org
Cookie: 

Route

POST /api/v2/momt_reports

Body

{"date_from":"2016-07-06T00:44:00+01:00","date_to":"2016-08-05T00:44:00+01:00","webhook_callback_url":"http://requestb.in/1d60vok1"}

cURL

curl "https://app.tatango.com/api/v2/momt_reports" -d '{"date_from":"2016-07-06T00:44:00+01:00","date_to":"2016-08-05T00:44:00+01:00","webhook_callback_url":"http://requestb.in/1d60vok1"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_2zcBMJo1YFa9iUlpygHjdQ \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8
X-Meta-Request-Version: 0.2.6
Content-Security-Policy: default-src https: 'self'; connect-src http: https: 'self' wss://*.intercom.io; img-src https: 'self'; script-src 'self' *.intercom.io *.intercomcdn.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; report-uri /uri-directive
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=Edge,chrome=1
ETag: "dea3824dc7116bdd13772111dd324bb8"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bd903c6e42815302b3c31160d662b4ad
X-Runtime: 0.025514
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 569

Status

201 Created

Body

{"status":"OK","momt_report":{"account_id":1,"campaign":null,"carrier":null,"counts_calculated":false,"created_at":"2016-08-04T16:44:00-07:00","date_from":"2016-07-06T00:44:00+01:00","date_range":"json","date_to":"2016-08-05T00:44:00+01:00","direction":null,"id":1,"import_completed_at":null,"import_started_at":null,"is_csv":false,"mo_count":0,"mt_count":0,"percent_complete":0,"phone_number":null,"processed_rows":0,"s3_url":null,"shortcode":null,"status_array":null,"total_rows":null,"type":null,"updated_at":"2016-08-04T16:44:00-07:00","webhook_callback_url":null}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.