- Connectors
- All Webhooks
- Operations
- Twilio API 2010-04-01 | Accounts {accountsid} Messages{mediatypeextension} [Shared] | POST [Shared]
- Show
- REST API
Retrieve all existing Operations:
Retrieve all existing Operations you have previously created.
get https://cenit.io/api/v2/setup/operation.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"page":1,"limit":25,"order":"id"}' \ "https://cenit.io/api/v2/setup/operation.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/operation.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', 'content' => '{"page":1,"limit":25,"order":"id"}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation.json", :method => 'GET', :payload => '{"page":1,"limit":25,"order":"id"}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/operation.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"page":1,"limit":25,"order":"id"}) }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/operation.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, qs: {"page":1,"limit":25,"order":"id"} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: {"page":1,"limit":25,"order":"id"}, success: function(data, textStatus, jqXHR) { console.log(data); } });
Create an Operation:
Creates the specified Operation. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/operation.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}' \ "https://cenit.io/api/v2/setup/operation.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/operation.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/operation.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/operation.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve an existing Operation:
Retrieves the details of an existing Operation. You need only supply the unique Operation identifier that was returned upon Operation creation.
get https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Update an Operation:
Updates the specified Operation. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}' \ "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"resource_id":{},"description":"","method":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Delete an existing Operation:
Permanently deletes an existing Operation. It cannot be undone.
delete https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json
tenant_access_key='...' tenant_access_token='...' curl -X DELETE \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'DELETE', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json", :method => 'DELETE', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('DELETE', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'DELETE', url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0.json', method: 'DELETE', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve one attribute of an existing Operation:
Retrieves one attribute of an existing Operation.
get https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/{view}.json
tenant_access_key='...' tenant_access_token='...' view='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/${view}.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $view = '...'; $uri = "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/${view}.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' view = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/#{view}.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' view = '...' uri = 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/%s.json' % (tenant_access_key, tenant_access_token, view) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', view = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/${view}.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...', view = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/operation/5ee15992f8cd1825f708ecc0/${view}.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Basic info
- Resource
-
Namespace Name Path Description Operations Updated at Twilio API 2010-04-01 Accounts {accountsid} Messages{mediatypeextension} /Accounts/{{AccountSid}}/Messages{{mediaTypeExtension}} - Twilio API 2010-04-01 | Accounts {accountsid} Messages{mediatypeextension} [Shared] | GET [Shared] and Twilio API 2010-04-01 | Accounts {accountsid} Messages{mediatypeextension} [Shared] | POST [Shared] June 15, 2018 19:47 - Method
- post
- Description
- To send a new outgoing message, make an HTTP POST to your Messages list resource URI