Tripmata Messaging

The missing messaging module for TripMata



Getting Started

To begin sending requests to the server address https://messaging.tripmata.com/api you must first obtain an authorization token from the developer/author Tripmata. This is default to FatApi, except the authorization rule was removed for this app.

All your requests should carry this basic request headers;

Header Value Consiquence
authorization Bearer (api token) If missing, FatApi would result to a 401 status code, with the message Your HTTP request header is missing authorization code. Please add (Authorization : Bearer < token here >)
x-meta-service resource eg. authentication If missing, FatApi would stop with the message Missing MetaData Service in request body\/header., but would still result to a 200 status code
x-meta-method method eg. login, forgot password If missing FatApi would load the default method Init.

  • This would help you fetch all contact lists for a single creator.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Get contact lists This is the service method for this request header
x-meta-id < identityid > This is the identityID for the creator of the contact list.
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all contact lists",
    "Data": [
        {
            "ID": "1",
            "Category": {
                "ID": "2",
                "Category": "email"
            },
            "Name": "Users"
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Get contact lists");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Get contact lists");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Get contact lists' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact lists"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Get contact lists")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Get contact lists


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Get contact lists")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Get contact lists");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact lists"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Get contact lists");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact lists"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Get contact lists",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact lists"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Get contact lists"




response = http.request(request)
puts response.read_body

  • This would help you fetch all contact for a single creator.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Get contacts This is the service method for this request header
x-meta-id < identityid > This is the identityID for the creator of the contact.
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all contact",
    "Data": [
        {
            "ID": "4",
            "Name": "Samuel Eto",
            "Value": "hellosamueleto@aol.com",
            "ContactList": {
                "ID": "1",
                "Category": {
                    "ID": "2",
                    "Name": "email"
                },
                "Name": "Users"
            },
            "Date": "2022-02-16 10:03 am",
            "TimeStamp": 1645002214
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Get contacts");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Get contacts");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Get contacts' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contacts"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Get contacts")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Get contacts


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Get contacts")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Get contacts");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contacts"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Get contacts");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contacts"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Get contacts",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contacts"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Get contacts"




response = http.request(request)
puts response.read_body

  • This helps to generate all the contacts from a contact list by a contactList ID. use api/{contactlistid}
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Get contact by listid This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all contact",
    "Data": [
        {
            "ID": 4,
            "Name": "Samuel Eto",
            "Value": "hellosamueleto@aol.com",
            "ContactList": {
                "ID": 1,
                "Category": {
                    "ID": 2,
                    "Name": "email"
                },
                "Name": "Users"
            },
            "Date": "2022-02-16 10:03 am",
            "TimeStamp": 1645002214
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Get contact by listid");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Get contact by listid");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Get contact by listid' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact by listid"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Get contact by listid")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Get contact by listid


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Get contact by listid")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Get contact by listid");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact by listid"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Get contact by listid");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact by listid"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Get contact by listid",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Get contact by listid"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Get contact by listid"




response = http.request(request)
puts response.read_body

  • This would help you create a contact list for any of the messaging categories
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Create contact list This is the service method for this request header
Request Body
Column Rule
name required|string|notag|min:2
categoryid required|number|method:['Resources\Contact\v1\Data\GeneralQuery', 'isCategoryValid']
identity required|string|min:1
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Contact list \"Customers\" added successfully!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Create contact list");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "categoryid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Create contact list");

request.AlwaysMultipartFormData = true;
request.AddParameter("name", "");
request.AddParameter("categoryid", "");
request.AddParameter("identity", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Create contact list' \

--form 'name=""' \
--form 'categoryid=""' \
--form 'identity=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact list"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "name": "",
    "categoryid": "",
    "identity": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("categoryid", "")
  _ = writer.WriteField("identity", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Create contact list")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Create contact list

Content-Length: 393
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="categoryid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("name", "")
    .addFormDataPart("categoryid", "")
    .addFormDataPart("identity", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Create contact list")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Create contact list");

var formdata = new FormData();
formdata.append("name", "");
formdata.append("categoryid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("name", "");
formdata.append("categoryid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact list"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("name", "");
formdata.append("categoryid", "");
formdata.append("identity", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Create contact list");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("name", "");
data.append("categoryid", "");
data.append("identity", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact list"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Create contact list",
  ),
  CURLOPT_POSTFIELDS => array(
    "name" => "",
    "categoryid" => "",
    "identity" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact list"
}

payload = {
    "name": "",
    "categoryid": "",
    "identity": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Create contact list"


form_data = [['name', ''],['categoryid', ''],['identity', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help you add a contact to a contact list that has been created.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Create contact This is the service method for this request header
Request Body
Column Rule
contactlistid required|number|method:['Resources\Contact\v1\Data\GeneralQuery', 'isContactListValid']
identity required|string|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'isIdentityValid']
contact_name required|string|notag|min:2
contact_value required|string|notag|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Contact \"sammy\" added successfully to \"Customers\"!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Create contact");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contactlistid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contact_name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contact_value");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Create contact");

request.AlwaysMultipartFormData = true;
request.AddParameter("contactlistid", "");
request.AddParameter("identity", "");
request.AddParameter("contact_name", "");
request.AddParameter("contact_value", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Create contact' \

--form 'contactlistid=""' \
--form 'identity=""' \
--form 'contact_name=""' \
--form 'contact_value=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "contactlistid": "",
    "identity": "",
    "contact_name": "",
    "contact_value": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("contactlistid", "")
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("contact_name", "")
  _ = writer.WriteField("contact_value", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Create contact")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Create contact

Content-Length: 501
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contactlistid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contact_name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contact_value"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("contactlistid", "")
    .addFormDataPart("identity", "")
    .addFormDataPart("contact_name", "")
    .addFormDataPart("contact_value", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Create contact")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Create contact");

var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Create contact");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("contactlistid", "");
data.append("identity", "");
data.append("contact_name", "");
data.append("contact_value", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Create contact",
  ),
  CURLOPT_POSTFIELDS => array(
    "contactlistid" => "",
    "identity" => "",
    "contact_name" => "",
    "contact_value" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Create contact"
}

payload = {
    "contactlistid": "",
    "identity": "",
    "contact_name": "",
    "contact_value": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Create contact"


form_data = [['contactlistid', ''],['identity', ''],['contact_name', ''],['contact_value', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help you delete a contact information.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Delete contact This is the service method for this request header
Request Body
Column Rule
contactid required|number|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IsContactValid']
identity required|string|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IdentityMatchesOwner']
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "\"joesph\" deleted from contact successfully!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Delete contact");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contactid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Delete contact");

request.AlwaysMultipartFormData = true;
request.AddParameter("contactid", "");
request.AddParameter("identity", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Delete contact' \

--form 'contactid=""' \
--form 'identity=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "contactid": "",
    "identity": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("contactid", "")
  _ = writer.WriteField("identity", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Delete contact")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Delete contact

Content-Length: 304
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contactid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("contactid", "")
    .addFormDataPart("identity", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Delete contact")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Delete contact");

var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Delete contact");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("contactid", "");
data.append("identity", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Delete contact",
  ),
  CURLOPT_POSTFIELDS => array(
    "contactid" => "",
    "identity" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact"
}

payload = {
    "contactid": "",
    "identity": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Delete contact"


form_data = [['contactid', ''],['identity', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help you delete a contact list information.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Delete contact list This is the service method for this request header
Request Body
Column Rule
contactlistid required|number|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'isContactListValid']
identity required|string|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IdentityMatchesOwner']
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "\"SMS\" deleted from contact list successfully!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Delete contact list");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contactlistid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Delete contact list");

request.AlwaysMultipartFormData = true;
request.AddParameter("contactlistid", "");
request.AddParameter("identity", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Delete contact list' \

--form 'contactlistid=""' \
--form 'identity=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact list"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "contactlistid": "",
    "identity": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("contactlistid", "")
  _ = writer.WriteField("identity", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Delete contact list")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Delete contact list

Content-Length: 308
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contactlistid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("contactlistid", "")
    .addFormDataPart("identity", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Delete contact list")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Delete contact list");

var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact list"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Delete contact list");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("contactlistid", "");
data.append("identity", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact list"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Delete contact list",
  ),
  CURLOPT_POSTFIELDS => array(
    "contactlistid" => "",
    "identity" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Delete contact list"
}

payload = {
    "contactlistid": "",
    "identity": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Delete contact list"


form_data = [['contactlistid', ''],['identity', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help update a contact information, either contact_name or contact_value can be sent. The both are not entriely required.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Update contact This is the service method for this request header
Request Body
Column Rule
contactid required|number|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IsContactValid']
identity required|string|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IdentityMatchesOwner']
contact_name string
contact_value string
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Contact information updated successfully!",
    "Data": {
        "ContactName": "frank",
        "ContactValue": "09011221122"
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Update contact");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contactid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contact_name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contact_value");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Update contact");

request.AlwaysMultipartFormData = true;
request.AddParameter("contactid", "");
request.AddParameter("identity", "");
request.AddParameter("contact_name", "");
request.AddParameter("contact_value", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Update contact' \

--form 'contactid=""' \
--form 'identity=""' \
--form 'contact_name=""' \
--form 'contact_value=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "contactid": "",
    "identity": "",
    "contact_name": "",
    "contact_value": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("contactid", "")
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("contact_name", "")
  _ = writer.WriteField("contact_value", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Update contact")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Update contact

Content-Length: 497
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contactid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contact_name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contact_value"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("contactid", "")
    .addFormDataPart("identity", "")
    .addFormDataPart("contact_name", "")
    .addFormDataPart("contact_value", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Update contact")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Update contact");

var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("contactid", "");
formdata.append("identity", "");
formdata.append("contact_name", "");
formdata.append("contact_value", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Update contact");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("contactid", "");
data.append("identity", "");
data.append("contact_name", "");
data.append("contact_value", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Update contact",
  ),
  CURLOPT_POSTFIELDS => array(
    "contactid" => "",
    "identity" => "",
    "contact_name" => "",
    "contact_value" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact"
}

payload = {
    "contactid": "",
    "identity": "",
    "contact_name": "",
    "contact_value": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Update contact"


form_data = [['contactid', ''],['identity', ''],['contact_name', ''],['contact_value', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • .. Your documentation content goes in here.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Contact This is the service name for this request header
x-meta-method Update contact list This is the service method for this request header
Request Body
Column Rule
contactlistid required|number|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'isContactListValid']
identity required|string|min:1|method:['Resources\Contact\v1\Data\GeneralQuery', 'IdentityMatchesOwner']
name string
categoryid string
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Contact list updated successfully!",
    "Data": {
        "ContactListName": "Users",
        "Category": {
            "ID": "2",
            "Category": "email"
        }
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Contact");
    headers = curl_slist_append(headers, "x-meta-method: Update contact list");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "contactlistid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "categoryid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Contact");
request.AddHeader("x-meta-method", "Update contact list");

request.AlwaysMultipartFormData = true;
request.AddParameter("contactlistid", "");
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("categoryid", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Contact' \
--header 'x-meta-method: Update contact list' \

--form 'contactlistid=""' \
--form 'identity=""' \
--form 'name=""' \
--form 'categoryid=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact list"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "contactlistid": "",
    "identity": "",
    "name": "",
    "categoryid": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("contactlistid", "")
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("categoryid", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Contact")
  req.Header.Add("x-meta-method", "Update contact list")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Contact
x-meta-method: Update contact list

Content-Length: 490
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="contactlistid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="categoryid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("contactlistid", "")
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("categoryid", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Contact")
.addHeader("x-meta-method", "Update contact list")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Contact");
myHeaders.append("x-meta-method", "Update contact list");

var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("categoryid", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("categoryid", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact list"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("contactlistid", "");
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("categoryid", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Contact");
xhr.setRequestHeader("x-meta-method", "Update contact list");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("contactlistid", "");
data.append("identity", "");
data.append("name", "");
data.append("categoryid", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact list"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Contact",
    "x-meta-method" => "Update contact list",
  ),
  CURLOPT_POSTFIELDS => array(
    "contactlistid" => "",
    "identity" => "",
    "name" => "",
    "categoryid" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Contact",
    "x-meta-method": "Update contact list"
}

payload = {
    "contactlistid": "",
    "identity": "",
    "name": "",
    "categoryid": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Contact"
request["x-meta-method"] = "Update contact list"


form_data = [['contactlistid', ''],['identity', ''],['name', ''],['categoryid', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • To fetch the sms messages for an account, you need to add to your url path the identity ID. Example api/{identity}. You can also add to your request a status type. See a list below
    • Status Codes

      1 => Pending 2 => Sent 4 => Failed

    • So therefore, in your request just add a query param as such ?status=1,2,4 to filter by any of the status codes.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get sms messages This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing SMS message[s] for \"hsysyiwa\"",
    "Data": [
        {
            "ID": "7",
            "Subject": "Tripmata",
            "Reciever": "070xxxxxxxx",
            "Message": "This is a test message",
            "Status": {
                "ID": 2,
                "Name": "sent"
            },
            "Transport": "KudiSMS",
            "Charges": "4.00",
            "Date": {
                "Created": "1645995899",
                "Updated": null
            }
        }
    ]
}
                                
                                    {
    "Status": false,
    "Code": 404,
    "Flag": "RES_FAILED",
    "Message": "No SMS record to show for this identity ID \"hsysyiwas\""
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get sms messages");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get sms messages");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get sms messages' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms messages"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get sms messages")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get sms messages


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get sms messages")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get sms messages");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms messages"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get sms messages");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms messages"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get sms messages",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms messages"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get sms messages"




response = http.request(request)
puts response.read_body

  • To fetch the email messages for an account, you need to add to your url path the identity ID. Example api/{identity}. You can also add to your request a status type. See a list below
    • Status Codes

      1 => Pending 2 => Sent 4 => Failed

    • So therefore, in your request just add a query param as such ?status=1,2,4 to filter by any of the status codes.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get email messages This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing Email message[s] for \"hsysyiwa\"",
    "Data": [
        {
            "ID": "29",
            "Subject": "Tripmata [Messaging Module]",
            "Reciever": "support@tripmata.com",
            "Message": "Hello <h1>Tripmata<\/h1> This is a test message from the messaging module.",
            "Status": {
                "ID": 3,
                "Name": "completed"
            },
            "Transport": "SymfonyMailer",
            "Charges": "0.00",
            "Date": {
                "Created": "1646042402",
                "Updated": "1646042406"
            }
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get email messages");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get email messages");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get email messages' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email messages"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get email messages")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get email messages


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get email messages")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get email messages");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email messages"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get email messages");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email messages"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get email messages",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email messages"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get email messages"




response = http.request(request)
puts response.read_body

  • To fetch a single template by the template UID, you need to add to your url path the template UID. Example api/{template_uid}.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get single template This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing template information",
    "Data": {
        "ID": 2,
        "Name": "Welcome",
        "Subject": "Welcome to Tripmata",
        "Category": {
            "ID": 1,
            "Name": "sms"
        },
        "Template": "Hello {name}, we are happy to have you on board. Please feel free to contact us for any questions.",
        "UID": "jc926e21fda1b7i5ed",
        "Date": 1646096524
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get single template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get single template");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get single template' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get single template"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get single template")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get single template


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get single template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get single template");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get single template"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get single template");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get single template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get single template",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get single template"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get single template"




response = http.request(request)
puts response.read_body

  • To fetch all sms templates for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get sms templates This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing SMS Templates for \"hsysyiwa\"",
    "Data": [
        {
            "ID": 2,
            "Name": "Welcome",
            "Subject": "Welcome to Tripmata",
            "Category": {
                "ID": 1,
                "Name": "sms"
            },
            "Template": "Hello {name}, we are happy to have you on board. Please feel free to contact us for any questions.",
            "UID": "jc926e21fda1b7i5ed",
            "Date": 1646096524
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get sms templates");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get sms templates");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get sms templates' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms templates"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get sms templates")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get sms templates


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get sms templates")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get sms templates");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms templates"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get sms templates");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms templates"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get sms templates",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get sms templates"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get sms templates"




response = http.request(request)
puts response.read_body

  • To fetch all email templates for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get email templates This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing Email Templates for \"hsysyiwa\"",
    "Data": [
        {
            "ID": 3,
            "Name": "Welcome",
            "Subject": "Welcome to Tripmata",
            "Category": {
                "ID": 2,
                "Name": "email"
            },
            "Template": "Hello {name}, we are happy to have you on board. Please feel free to contact us for any questions.",
            "UID": "ced208f3de60ija96b",
            "Date": 1646096766
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get email templates");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get email templates");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get email templates' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email templates"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get email templates")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get email templates


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get email templates")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get email templates");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email templates"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get email templates");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email templates"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get email templates",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get email templates"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get email templates"




response = http.request(request)
puts response.read_body

  • To fetch all message templates for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get message templates This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing Message Templates for \"hsysyiwa\"",
    "Data": [
        {
            "ID": 4,
            "Name": "reservation",
            "Subject": "Reservation Made",
            "Category": {
                "ID": 4,
                "Name": "internal"
            },
            "Template": "Hello {name}, your reservation has been made successfully. Please contact our customer care @ +23400000000 for futher enquires.",
            "UID": "c4f4jde558b43a4die",
            "Date": 1646141010
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get message templates");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get message templates");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get message templates' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message templates"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get message templates")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get message templates


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get message templates")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get message templates");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message templates"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get message templates");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message templates"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get message templates",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message templates"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get message templates"




response = http.request(request)
puts response.read_body

  • To fetch all internal message replies, you need to add to your url path the message UID. Example api/{messageuid}.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get message replies This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all message replies for \"e62d7373324e81a5i1f36j06bc4d\"",
    "Data": [
        {
            "ID": "cd0462a405462ebi333fj1d7e551",
            "Sender": "tripmata",
            "Receiver": "sjsujeoss",
            "Message": "Thanks for the message. I really do appreciate",
            "Date": 1646231035
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get message replies");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get message replies");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get message replies' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message replies"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get message replies")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get message replies


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get message replies")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get message replies");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message replies"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get message replies");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message replies"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get message replies",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get message replies"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get message replies"




response = http.request(request)
puts response.read_body

  • To fetch all internal messages sent for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get internal messages sent This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get internal messages sent");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get internal messages sent");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get internal messages sent' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages sent"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get internal messages sent")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get internal messages sent


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get internal messages sent")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get internal messages sent");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages sent"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get internal messages sent");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages sent"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get internal messages sent",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages sent"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get internal messages sent"




response = http.request(request)
puts response.read_body

  • To fetch all internal messages received for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get internal messages received This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get internal messages received");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get internal messages received");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get internal messages received' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages received"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get internal messages received")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get internal messages received


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get internal messages received")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get internal messages received");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages received"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get internal messages received");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages received"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get internal messages received",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get internal messages received"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get internal messages received"




response = http.request(request)
puts response.read_body

  • To fetch all messages statistics for a user or corportate entity, you need to add to your url path the identity ID. Example api/{identityid}.
    • In your request, you can also add additional query param such ?name=checkin to filter by the template name.
    • More query parameters
      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data *
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Get messages stats This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing statistics",
    "MessageReceived": 0,
    "MessageSent": 0,
    "MisconductReceived": 3,
    "MisconductSent": 0
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Get messages stats");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Get messages stats");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Get messages stats' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get messages stats"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Get messages stats")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Get messages stats


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Get messages stats")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Get messages stats");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get messages stats"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Get messages stats");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get messages stats"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Get messages stats",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Get messages stats"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Get messages stats"




response = http.request(request)
puts response.read_body

  • This would return the current sms sender id for an identifier.
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Check sms sender id This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Check sms sender id");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Check sms sender id");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Check sms sender id' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms sender id"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Check sms sender id")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Check sms sender id


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Check sms sender id")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Check sms sender id");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms sender id"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Check sms sender id");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms sender id"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Check sms sender id",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms sender id"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Check sms sender id"




response = http.request(request)
puts response.read_body

  • You can send a message to phone with any of the preinstalled transports. To change the default transport, set 'x-sms-transport' to your preffered option in your request header. Avaliable transport options are:
    1. BulkSmsNigeria
    2. KudiSMS
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send sms This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
sender required|string|min:2
phone required|string|notag|min:2
message required|string|notag|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Your message has been sent successfully!",
    "Balance": 82,
    "Channel": "KudiSMS",
    "Cost": 4
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send sms");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "sender");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "phone");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send sms");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("sender", "");
request.AddParameter("phone", "");
request.AddParameter("message", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send sms' \

--form 'identity=""' \
--form 'sender=""' \
--form 'phone=""' \
--form 'message=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "sender": "",
    "phone": "",
    "message": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("sender", "")
  _ = writer.WriteField("phone", "")
  _ = writer.WriteField("message", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send sms")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send sms

Content-Length: 481
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sender"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="phone"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("sender", "")
    .addFormDataPart("phone", "")
    .addFormDataPart("message", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send sms")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send sms");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sender", "");
formdata.append("phone", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sender", "");
formdata.append("phone", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sender", "");
formdata.append("phone", "");
formdata.append("message", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send sms");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("sender", "");
data.append("phone", "");
data.append("message", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send sms",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "sender" => "",
    "phone" => "",
    "message" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms"
}

payload = {
    "identity": "",
    "sender": "",
    "phone": "",
    "message": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send sms"


form_data = [['identity', ''],['sender', ''],['phone', ''],['message', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to send an email to a guest, property admin or super admin.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send email This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
subject required|string|min:1
to required|email|min:7
message required|string|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Your message has been sent successfully!",
    "To": "helloamadiify@gmail.com",
    "Channel": "SymfonyMailer",
    "Cost": 0
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send email");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "to");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send email");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("subject", "");
request.AddParameter("to", "");
request.AddParameter("message", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send email' \

--form 'identity=""' \
--form 'subject=""' \
--form 'to=""' \
--form 'message=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "subject": "",
    "to": "",
    "message": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("to", "")
  _ = writer.WriteField("message", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send email")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send email

Content-Length: 479
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="to"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("subject", "")
    .addFormDataPart("to", "")
    .addFormDataPart("message", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send email")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send email");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("subject", "");
formdata.append("to", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("subject", "");
formdata.append("to", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("subject", "");
formdata.append("to", "");
formdata.append("message", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send email");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("subject", "");
data.append("to", "");
data.append("message", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send email",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "subject" => "",
    "to" => "",
    "message" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email"
}

payload = {
    "identity": "",
    "subject": "",
    "to": "",
    "message": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send email"


form_data = [['identity', ''],['subject', ''],['to', ''],['message', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to allocate sms unit to a company or individual.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Allocate sms unit This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
sms_unit required|float|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "SMS Unit allocated successfully",
    "Info": {
        "OldBalance": 82,
        "NewBalance": 102
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Allocate sms unit");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "sms_unit");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Allocate sms unit");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("sms_unit", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Allocate sms unit' \

--form 'identity=""' \
--form 'sms_unit=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Allocate sms unit"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "sms_unit": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("sms_unit", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Allocate sms unit")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Allocate sms unit

Content-Length: 303
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sms_unit"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("sms_unit", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Allocate sms unit")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Allocate sms unit");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sms_unit", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sms_unit", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Allocate sms unit"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("sms_unit", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Allocate sms unit");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("sms_unit", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Allocate sms unit"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Allocate sms unit",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "sms_unit" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Allocate sms unit"
}

payload = {
    "identity": "",
    "sms_unit": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Allocate sms unit"


form_data = [['identity', ''],['sms_unit', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to assign a sender ID to a company or individual.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Assign sender id This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
senderid required|string|notag|min:2
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Assign sender id");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "senderid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Assign sender id");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("senderid", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Assign sender id' \

--form 'identity=""' \
--form 'senderid=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Assign sender id"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "senderid": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("senderid", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Assign sender id")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Assign sender id

Content-Length: 303
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="senderid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("senderid", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Assign sender id")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Assign sender id");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("senderid", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("senderid", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Assign sender id"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("senderid", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Assign sender id");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("senderid", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Assign sender id"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Assign sender id",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "senderid" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Assign sender id"
}

payload = {
    "identity": "",
    "senderid": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Assign sender id"


form_data = [['identity', ''],['senderid', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would return the current sms unit balance for an identifier.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Check sms unit balance This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing your SMS balance",
    "Info": {
        "Balance": 0,
        "Customer": "Tempta Limited"
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Check sms unit balance");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Check sms unit balance");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Check sms unit balance' \

--form 'identity=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms unit balance"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Check sms unit balance")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Check sms unit balance

Content-Length: 211
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Check sms unit balance")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Check sms unit balance");

var formdata = new FormData();
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms unit balance"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Check sms unit balance");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms unit balance"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Check sms unit balance",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Check sms unit balance"
}

payload = {
    "identity": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Check sms unit balance"


form_data = [['identity', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to send an email template to a guest, property admin or super admin. "placeholders" in your request body should follow this format {"{placeholder}" : "Name here"} and must be a valid JSON string.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send email template This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
to required|email|min:7
placeholders required|json|min:5
templateUID required|string|min:5
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Your message has been sent successfully!",
    "To": "hellosupport@test.com",
    "Channel": "SymfonyMailer",
    "Cost": 0
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send email template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "to");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "placeholders");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "templateUID");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send email template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("to", "");
request.AddParameter("placeholders", "");
request.AddParameter("templateUID", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send email template' \

--form 'identity=""' \
--form 'to=""' \
--form 'placeholders=""' \
--form 'templateUID=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "to": "",
    "placeholders": "",
    "templateUID": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("to", "")
  _ = writer.WriteField("placeholders", "")
  _ = writer.WriteField("templateUID", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send email template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send email template

Content-Length: 488
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="to"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="placeholders"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="templateUID"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("to", "")
    .addFormDataPart("placeholders", "")
    .addFormDataPart("templateUID", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send email template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send email template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("to", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("to", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("to", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send email template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("to", "");
data.append("placeholders", "");
data.append("templateUID", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send email template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "to" => "",
    "placeholders" => "",
    "templateUID" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send email template"
}

payload = {
    "identity": "",
    "to": "",
    "placeholders": "",
    "templateUID": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send email template"


form_data = [['identity', ''],['to', ''],['placeholders', ''],['templateUID', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to send an sms template to a guest, property admin or super admin. "placeholders" in your request body should follow this format {"{placeholder}" : "Name here"} and must be a valid JSON string. *
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send sms template This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
phone requiredAQ|string|notag|min:7
placeholders required|json|min:5
templateUID required|string|min:5
Request Response
                                    {
    "Status": false,
    "Code": 404,
    "Flag": "RES_FAILED",
    "Message": "Could not send SMS. Please check back or try again!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send sms template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "phone");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "placeholders");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "templateUID");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send sms template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("phone", "");
request.AddParameter("placeholders", "");
request.AddParameter("templateUID", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send sms template' \

--form 'identity=""' \
--form 'phone=""' \
--form 'placeholders=""' \
--form 'templateUID=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "phone": "",
    "placeholders": "",
    "templateUID": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("phone", "")
  _ = writer.WriteField("placeholders", "")
  _ = writer.WriteField("templateUID", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send sms template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send sms template

Content-Length: 491
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="phone"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="placeholders"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="templateUID"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("phone", "")
    .addFormDataPart("placeholders", "")
    .addFormDataPart("templateUID", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send sms template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send sms template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("phone", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("phone", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("phone", "");
formdata.append("placeholders", "");
formdata.append("templateUID", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send sms template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("phone", "");
data.append("placeholders", "");
data.append("templateUID", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send sms template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "phone" => "",
    "placeholders" => "",
    "templateUID" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send sms template"
}

payload = {
    "identity": "",
    "phone": "",
    "placeholders": "",
    "templateUID": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send sms template"


form_data = [['identity', ''],['phone', ''],['placeholders', ''],['templateUID', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method helps with sending internal messages. These messages can be retrived using the 'get sent messages' or 'get received messages' method
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send internal message This is the service method for this request header
Request Body
Column Rule
subject required|string|min:2
sender required|string|min:1
receiver required|string|min:2
message required|min:2
attachments [file:optional,]
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Internal message submitted successfully!",
    "Data": {
        "ID": "e62d7373324e81a5i1f36j06bc4d",
        "Sender": "sjsujeoss",
        "Receiver": "tripmata",
        "Message": "This is an internal message sample, and it works",
        "Date": 1646230516
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send internal message");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "sender");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "receiver");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "attachments");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send internal message");

request.AlwaysMultipartFormData = true;
request.AddParameter("subject", "");
request.AddParameter("sender", "");
request.AddParameter("receiver", "");
request.AddParameter("message", "");
request.AddParameter("attachments", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send internal message' \

--form 'subject=""' \
--form 'sender=""' \
--form 'receiver=""' \
--form 'message=""' \
--form 'attachments=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send internal message"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "subject": "",
    "sender": "",
    "receiver": "",
    "message": "",
    "attachments": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("sender", "")
  _ = writer.WriteField("receiver", "")
  _ = writer.WriteField("message", "")
  _ = writer.WriteField("attachments", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send internal message")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send internal message

Content-Length: 578
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sender"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="receiver"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachments"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("subject", "")
    .addFormDataPart("sender", "")
    .addFormDataPart("receiver", "")
    .addFormDataPart("message", "")
    .addFormDataPart("attachments", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send internal message")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send internal message");

var formdata = new FormData();
formdata.append("subject", "");
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("subject", "");
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send internal message"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("subject", "");
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("attachments", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send internal message");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("subject", "");
data.append("sender", "");
data.append("receiver", "");
data.append("message", "");
data.append("attachments", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send internal message"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send internal message",
  ),
  CURLOPT_POSTFIELDS => array(
    "subject" => "",
    "sender" => "",
    "receiver" => "",
    "message" => "",
    "attachments" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send internal message"
}

payload = {
    "subject": "",
    "sender": "",
    "receiver": "",
    "message": "",
    "attachments": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send internal message"


form_data = [['subject', ''],['sender', ''],['receiver', ''],['message', ''],['attachments', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method helps with sending a reply to an internal message. These replies can be retrived using the 'get message replies' method
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Reply to internal message This is the service method for this request header
Request Body
Column Rule
sender required|string|min:1
receiver required|string|min:2
message required|min:2
messageuid required|string|min:7
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Internal message reply submitted successfully!",
    "Data": {
        "ID": "cd0462a405462ebi333fj1d7e551",
        "Sender": "tripmata",
        "Receiver": "sjsujeoss",
        "Message": "Thanks for the message. I really do appreciate",
        "Date": 1646231035
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Reply to internal message");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "sender");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "receiver");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "messageuid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Reply to internal message");

request.AlwaysMultipartFormData = true;
request.AddParameter("sender", "");
request.AddParameter("receiver", "");
request.AddParameter("message", "");
request.AddParameter("messageuid", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Reply to internal message' \

--form 'sender=""' \
--form 'receiver=""' \
--form 'message=""' \
--form 'messageuid=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Reply to internal message"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "sender": "",
    "receiver": "",
    "message": "",
    "messageuid": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("sender", "")
  _ = writer.WriteField("receiver", "")
  _ = writer.WriteField("message", "")
  _ = writer.WriteField("messageuid", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Reply to internal message")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Reply to internal message

Content-Length: 486
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sender"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="receiver"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="messageuid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("sender", "")
    .addFormDataPart("receiver", "")
    .addFormDataPart("message", "")
    .addFormDataPart("messageuid", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Reply to internal message")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Reply to internal message");

var formdata = new FormData();
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("messageuid", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("messageuid", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Reply to internal message"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("sender", "");
formdata.append("receiver", "");
formdata.append("message", "");
formdata.append("messageuid", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Reply to internal message");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("sender", "");
data.append("receiver", "");
data.append("message", "");
data.append("messageuid", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Reply to internal message"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Reply to internal message",
  ),
  CURLOPT_POSTFIELDS => array(
    "sender" => "",
    "receiver" => "",
    "message" => "",
    "messageuid" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Reply to internal message"
}

payload = {
    "sender": "",
    "receiver": "",
    "message": "",
    "messageuid": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Reply to internal message"


form_data = [['sender', ''],['receiver', ''],['message', ''],['messageuid', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to send an external bulk email to multiple individuals.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send bulk emails This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
json_document required|string|min:7
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Your message has been sent successfully!",
    "To": [
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Eghe",
            "message": "This is a custom message Eghe, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello Nnamdi",
            "message": "This is a custom message Nnamdi, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Grace",
            "message": "This is a custom message Grace, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Roli",
            "message": "This is a custom message Roli, How are you?"
        },
        {
            "email": "ken.xxxxxxxxx@yahoo.com",
            "subject": "Hello Kenechukwu",
            "message": "This is a custom message Kenechukwu, How are you?"
        },
        {
            "email": "xxxxxxxxx@badagryports.com",
            "subject": "Hello Justin",
            "message": "This is a custom message Justin, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello Gng",
            "message": "This is a custom message Gng, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Emmanuel ",
            "message": "This is a custom message Emmanuel , How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello USMAN ",
            "message": "This is a custom message USMAN , How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Oar",
            "message": "This is a custom message Oar, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello OLADELE",
            "message": "This is a custom message OLADELE, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello Deola",
            "message": "This is a custom message Deola, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Kenneth",
            "message": "This is a custom message Kenneth, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello ENGJEMO",
            "message": "This is a custom message ENGJEMO, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello Chibuzor",
            "message": "This is a custom message Chibuzor, How are you?"
        },
        {
            "email": "xxxxxxxxx@yahoo.com",
            "subject": "Hello Firdaus",
            "message": "This is a custom message Firdaus, How are you?"
        },
        {
            "email": "queen.xxxxxxxxx@yahoo.com",
            "subject": "Hello Queen ",
            "message": "This is a custom message Queen , How are you?"
        },
        {
            "email": "xxxxxxxxx@outlook.com",
            "subject": "Hello ADE",
            "message": "This is a custom message ADE, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Oluwarotimi",
            "message": "This is a custom message Oluwarotimi, How are you?"
        },
        {
            "email": "xxxxxxxxx@gmail.com",
            "subject": "Hello Ifeanyi",
            "message": "This is a custom message Ifeanyi, How are you?"
        }
    ],
    "Channel": "SymfonyMailer",
    "Cost": 0
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send bulk emails");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "json_document");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send bulk emails");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("json_document", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send bulk emails' \

--form 'identity=""' \
--form 'json_document=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk emails"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "json_document": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("json_document", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send bulk emails")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send bulk emails

Content-Length: 308
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="json_document"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("json_document", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send bulk emails")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send bulk emails");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk emails"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send bulk emails");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("json_document", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk emails"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send bulk emails",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "json_document" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk emails"
}

payload = {
    "identity": "",
    "json_document": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send bulk emails"


form_data = [['identity', ''],['json_document', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help to send an external bulk sms to multiple individuals.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Send bulk sms This is the service method for this request header
x-message-schedular YYYY-MM-DD HH:MM This would help schedule the message for later time. eg. 2022-02-22 04:15, where HH is 24 hours
Request Body
Column Rule
identity required|string|min:1
json_document required|string|min:7
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Send bulk sms");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "json_document");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Send bulk sms");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("json_document", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Send bulk sms' \

--form 'identity=""' \
--form 'json_document=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk sms"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "json_document": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("json_document", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Send bulk sms")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Send bulk sms

Content-Length: 308
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="json_document"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("json_document", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Send bulk sms")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Send bulk sms");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk sms"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("json_document", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Send bulk sms");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("json_document", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk sms"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Send bulk sms",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "json_document" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Send bulk sms"
}

payload = {
    "identity": "",
    "json_document": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Send bulk sms"


form_data = [['identity', ''],['json_document', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would create an SMS template with a unqiue UID for a user or corporate entity.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Create sms template This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
name required|string|min:2
subject required|string|notag|min:2
trigger [string|notag,]
body required|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "SMS Template created successfully!",
    "UID": "jc926e21fda1b7i5ed"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Create sms template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "trigger");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "body");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Create sms template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("subject", "");
request.AddParameter("trigger", "");
request.AddParameter("body", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Create sms template' \

--form 'identity=""' \
--form 'name=""' \
--form 'subject=""' \
--form 'trigger=""' \
--form 'body=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("trigger", "")
  _ = writer.WriteField("body", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Create sms template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Create sms template

Content-Length: 569
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="trigger"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="body"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("subject", "")
    .addFormDataPart("trigger", "")
    .addFormDataPart("body", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Create sms template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Create sms template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Create sms template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("name", "");
data.append("subject", "");
data.append("trigger", "");
data.append("body", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Create sms template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "name" => "",
    "subject" => "",
    "trigger" => "",
    "body" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms template"
}

payload = {
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Create sms template"


form_data = [['identity', ''],['name', ''],['subject', ''],['trigger', ''],['body', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • .. Your documentation content goes in here.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Create email template This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
name required|string|min:2
subject required|string|notag|min:2
trigger [string|notag,]
body required|min:2
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Create email template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "trigger");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "body");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Create email template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("subject", "");
request.AddParameter("trigger", "");
request.AddParameter("body", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Create email template' \

--form 'identity=""' \
--form 'name=""' \
--form 'subject=""' \
--form 'trigger=""' \
--form 'body=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("trigger", "")
  _ = writer.WriteField("body", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Create email template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Create email template

Content-Length: 569
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="trigger"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="body"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("subject", "")
    .addFormDataPart("trigger", "")
    .addFormDataPart("body", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Create email template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Create email template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Create email template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("name", "");
data.append("subject", "");
data.append("trigger", "");
data.append("body", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Create email template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "name" => "",
    "subject" => "",
    "trigger" => "",
    "body" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email template"
}

payload = {
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Create email template"


form_data = [['identity', ''],['name', ''],['subject', ''],['trigger', ''],['body', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • You can create an sms unit record for a company using a unique identity ID. By default, we would send a low sms alert when the unit is less than 50. To turn off this feature, set 'low_unit_alert' to zero (0)
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Create sms unit record This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
low_unit_alert_phone required|string|min:2
low_unit_alert [required|number|min:1,1]
company_name required|string|notag|min:2
company_email required|email|notag|min:5
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "SMS Account created for \"Tempta Limited\""
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Create sms unit record");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "low_unit_alert_phone");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "low_unit_alert");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "company_name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "company_email");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Create sms unit record");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("low_unit_alert_phone", "");
request.AddParameter("low_unit_alert", "");
request.AddParameter("company_name", "");
request.AddParameter("company_email", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Create sms unit record' \

--form 'identity=""' \
--form 'low_unit_alert_phone=""' \
--form 'low_unit_alert=""' \
--form 'company_name=""' \
--form 'company_email=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms unit record"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "low_unit_alert_phone": "",
    "low_unit_alert": "",
    "company_name": "",
    "company_email": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("low_unit_alert_phone", "")
  _ = writer.WriteField("low_unit_alert", "")
  _ = writer.WriteField("company_name", "")
  _ = writer.WriteField("company_email", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Create sms unit record")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Create sms unit record

Content-Length: 606
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="low_unit_alert_phone"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="low_unit_alert"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="company_name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="company_email"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("low_unit_alert_phone", "")
    .addFormDataPart("low_unit_alert", "")
    .addFormDataPart("company_name", "")
    .addFormDataPart("company_email", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Create sms unit record")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Create sms unit record");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("low_unit_alert_phone", "");
formdata.append("low_unit_alert", "");
formdata.append("company_name", "");
formdata.append("company_email", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("low_unit_alert_phone", "");
formdata.append("low_unit_alert", "");
formdata.append("company_name", "");
formdata.append("company_email", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms unit record"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("low_unit_alert_phone", "");
formdata.append("low_unit_alert", "");
formdata.append("company_name", "");
formdata.append("company_email", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Create sms unit record");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("low_unit_alert_phone", "");
data.append("low_unit_alert", "");
data.append("company_name", "");
data.append("company_email", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms unit record"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Create sms unit record",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "low_unit_alert_phone" => "",
    "low_unit_alert" => "",
    "company_name" => "",
    "company_email" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create sms unit record"
}

payload = {
    "identity": "",
    "low_unit_alert_phone": "",
    "low_unit_alert": "",
    "company_name": "",
    "company_email": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Create sms unit record"


form_data = [['identity', ''],['low_unit_alert_phone', ''],['low_unit_alert', ''],['company_name', ''],['company_email', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This would help identify a user who is permitted to send emails using this channel.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Create email account This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
from_email required|email|min:7
company_name required|string|notag|min:2
allow_outbound [required|number|min:1,1]
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Email Account created for \"Tripmata Inc\""
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Create email account");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "from_email");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "company_name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "allow_outbound");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Create email account");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("from_email", "");
request.AddParameter("company_name", "");
request.AddParameter("allow_outbound", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Create email account' \

--form 'identity=""' \
--form 'from_email=""' \
--form 'company_name=""' \
--form 'allow_outbound=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email account"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "from_email": "",
    "company_name": "",
    "allow_outbound": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("from_email", "")
  _ = writer.WriteField("company_name", "")
  _ = writer.WriteField("allow_outbound", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Create email account")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Create email account

Content-Length: 499
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="from_email"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="company_name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="allow_outbound"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("from_email", "")
    .addFormDataPart("company_name", "")
    .addFormDataPart("allow_outbound", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Create email account")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Create email account");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("from_email", "");
formdata.append("company_name", "");
formdata.append("allow_outbound", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("from_email", "");
formdata.append("company_name", "");
formdata.append("allow_outbound", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email account"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("from_email", "");
formdata.append("company_name", "");
formdata.append("allow_outbound", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Create email account");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("from_email", "");
data.append("company_name", "");
data.append("allow_outbound", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email account"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Create email account",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "from_email" => "",
    "company_name" => "",
    "allow_outbound" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create email account"
}

payload = {
    "identity": "",
    "from_email": "",
    "company_name": "",
    "allow_outbound": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Create email account"


form_data = [['identity', ''],['from_email', ''],['company_name', ''],['allow_outbound', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method would help you create internal message templates that can be re-used for chat windows, or for special events or triggers.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Create message template This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
name required|string|min:2
subject required|string|notag|min:2
trigger [string|notag,]
body required|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Message Template created successfully!",
    "UID": "c4f4jde558b43a4die"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Create message template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "trigger");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "body");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Create message template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("subject", "");
request.AddParameter("trigger", "");
request.AddParameter("body", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Create message template' \

--form 'identity=""' \
--form 'name=""' \
--form 'subject=""' \
--form 'trigger=""' \
--form 'body=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create message template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("trigger", "")
  _ = writer.WriteField("body", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Create message template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Create message template

Content-Length: 569
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="trigger"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="body"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("subject", "")
    .addFormDataPart("trigger", "")
    .addFormDataPart("body", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Create message template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Create message template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create message template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Create message template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("name", "");
data.append("subject", "");
data.append("trigger", "");
data.append("body", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create message template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Create message template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "name" => "",
    "subject" => "",
    "trigger" => "",
    "body" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Create message template"
}

payload = {
    "identity": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Create message template"


form_data = [['identity', ''],['name', ''],['subject', ''],['trigger', ''],['body', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method would help delete a template
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Delete template This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
templateUID required|string|min:5
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Template deleted successfully",
    "Data": {
        "ID": 3,
        "Name": "Welcome",
        "Subject": "Welcome to Tripmata",
        "Category": {
            "ID": 2,
            "Name": "email"
        },
        "Template": "Hello {name}, we are happy to have you on board. Please feel free to contact us for any questions.",
        "UID": "ced208f3de60ija96b",
        "Date": 1646096766
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Delete template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "templateUID");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Delete template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("templateUID", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Delete template' \

--form 'identity=""' \
--form 'templateUID=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Delete template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "templateUID": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("templateUID", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Delete template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Delete template

Content-Length: 306
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="templateUID"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("templateUID", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Delete template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Delete template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Delete template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Delete template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("templateUID", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Delete template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Delete template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "templateUID" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Delete template"
}

payload = {
    "identity": "",
    "templateUID": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Delete template"


form_data = [['identity', ''],['templateUID', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method helps with updating a template.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Message This is the service name for this request header
x-meta-method Update template This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
templateUID required|string|min:5
categoryid required|number|method:['Resources\Message\v1\Data\GeneralQuery', 'CheckCategoryId']
name [string|notag|optional,]
subject [string|notag|optional,]
trigger [string|notag,]
body [string|optional,]
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Template Updated Successfully",
    "Data": {
        "ID": 2,
        "Name": "checkin",
        "Subject": "Hello {name}",
        "Category": {
            "ID": 1,
            "Name": "sms"
        },
        "Template": "Hello {name}, we are happy to have you on board. Please feel free to contact us for any questions.",
        "UID": "jc926e21fda1b7i5ed",
        "Date": 1646096524
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Message");
    headers = curl_slist_append(headers, "x-meta-method: Update template");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "templateUID");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "categoryid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "subject");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "trigger");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "body");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Message");
request.AddHeader("x-meta-method", "Update template");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("templateUID", "");
request.AddParameter("categoryid", "");
request.AddParameter("name", "");
request.AddParameter("subject", "");
request.AddParameter("trigger", "");
request.AddParameter("body", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Message' \
--header 'x-meta-method: Update template' \

--form 'identity=""' \
--form 'templateUID=""' \
--form 'categoryid=""' \
--form 'name=""' \
--form 'subject=""' \
--form 'trigger=""' \
--form 'body=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Update template"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "templateUID": "",
    "categoryid": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("templateUID", "")
  _ = writer.WriteField("categoryid", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("subject", "")
  _ = writer.WriteField("trigger", "")
  _ = writer.WriteField("body", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Message")
  req.Header.Add("x-meta-method", "Update template")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Message
x-meta-method: Update template

Content-Length: 758
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="templateUID"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="categoryid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="subject"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="trigger"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="body"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("templateUID", "")
    .addFormDataPart("categoryid", "")
    .addFormDataPart("name", "")
    .addFormDataPart("subject", "")
    .addFormDataPart("trigger", "")
    .addFormDataPart("body", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Message")
.addHeader("x-meta-method", "Update template")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Message");
myHeaders.append("x-meta-method", "Update template");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");
formdata.append("categoryid", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");
formdata.append("categoryid", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Update template"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("templateUID", "");
formdata.append("categoryid", "");
formdata.append("name", "");
formdata.append("subject", "");
formdata.append("trigger", "");
formdata.append("body", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Message");
xhr.setRequestHeader("x-meta-method", "Update template");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("templateUID", "");
data.append("categoryid", "");
data.append("name", "");
data.append("subject", "");
data.append("trigger", "");
data.append("body", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Update template"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Message",
    "x-meta-method" => "Update template",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "templateUID" => "",
    "categoryid" => "",
    "name" => "",
    "subject" => "",
    "trigger" => "",
    "body" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Message",
    "x-meta-method": "Update template"
}

payload = {
    "identity": "",
    "templateUID": "",
    "categoryid": "",
    "name": "",
    "subject": "",
    "trigger": "",
    "body": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Message"
request["x-meta-method"] = "Update template"


form_data = [['identity', ''],['templateUID', ''],['categoryid', ''],['name', ''],['subject', ''],['trigger', ''],['body', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports for all the managerx/properties. To complete this process, you need to add to your url path the reciever ID. Example api/{reciever}. Where reciever would be the report_to value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get manager reports This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all submitted manager misconduct reports",
    "Data": [
        {
            "ID": "fe4dcj37i81bead253",
            "Classification": {
                "ID": 2,
                "Name": "manager"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155308,
            "Identity": "yssmsidl"
        },
        {
            "ID": "5625bdc0ede7aji0f6",
            "Classification": {
                "ID": 2,
                "Name": "manager"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155321,
            "Identity": "yssmsidl"
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get manager reports");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get manager reports");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get manager reports' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get manager reports")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get manager reports


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get manager reports")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get manager reports");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get manager reports");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get manager reports",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get manager reports"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports for all the guests. To complete this process, you need to add to your url path the reciever ID. Example api/{reciever}. Where reciever would be the report_to value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data *
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get guest reports This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all submitted guests misconduct reports",
    "Data": [
        {
            "ID": "2cfee9j4b4adi81d1",
            "Classification": {
                "ID": 1,
                "Name": "guest"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155236,
            "Identity": "yssmsidl"
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get guest reports");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get guest reports");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get guest reports' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get guest reports")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get guest reports


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get guest reports")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get guest reports");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get guest reports");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get guest reports",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get guest reports"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports to a body. To complete this process, you need to add to your url path the reciever ID. Example api/{reporting_to}. Where reporting_to would be the reporting_to value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=0,4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data *
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get group reports This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get group reports");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get group reports");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get group reports' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get group reports"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get group reports")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get group reports


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get group reports")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get group reports");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get group reports"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get group reports");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get group reports"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get group reports",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get group reports"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get group reports"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports submitted by a guest to a manager. To complete this process, you need to add to your url path the manager ID. Example api/{managerid}. Where managerid would be the reporting value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get guest reports to manager This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all submitted guests misconduct reports to \"hsysyiwa\"",
    "Data": [
        {
            "ID": "2cfee9j4b4adi81d1",
            "Classification": {
                "ID": 1,
                "Name": "guest"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155236,
            "Identity": "yssmsidl"
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get guest reports to manager");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get guest reports to manager");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get guest reports to manager' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports to manager"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get guest reports to manager")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get guest reports to manager


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get guest reports to manager")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get guest reports to manager");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports to manager"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get guest reports to manager");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports to manager"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get guest reports to manager",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports to manager"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get guest reports to manager"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports submitted by a guest against a manager. To complete this process, you need to add to your url path the manager ID. Example api/{managerid}. Where managerid would be the reporting value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get guest reports aganist manager This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get guest reports aganist manager");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get guest reports aganist manager");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get guest reports aganist manager' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports aganist manager"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get guest reports aganist manager")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get guest reports aganist manager


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get guest reports aganist manager")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get guest reports aganist manager");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports aganist manager"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get guest reports aganist manager");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports aganist manager"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get guest reports aganist manager",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports aganist manager"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get guest reports aganist manager"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports submitted by a manager. To complete this process, you need to add to your url path the manager ID. Example api/{managerid}. Where managerid would be the reporting value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get guest reports by manager This is the service method for this request header
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get guest reports by manager");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get guest reports by manager");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get guest reports by manager' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports by manager"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get guest reports by manager")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get guest reports by manager


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get guest reports by manager")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get guest reports by manager");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports by manager"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get guest reports by manager");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports by manager"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get guest reports by manager",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get guest reports by manager"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get guest reports by manager"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct reports submitted by a guest. To complete this process, you need to add to your url path the identity ID. Example api/{identityid}. Where identityid would be the identity value from your request body during the creation of a misconduct report.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get manager reports by guest This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all submitted guests misconduct reports submitted by \"yssmsidl\"",
    "Data": [
        {
            "ID": "fe4dcj37i81bead253",
            "Classification": {
                "ID": 2,
                "Name": "manager"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155308,
            "Identity": "yssmsidl"
        },
        {
            "ID": "5625bdc0ede7aji0f6",
            "Classification": {
                "ID": 2,
                "Name": "manager"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155321,
            "Identity": "yssmsidl"
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get manager reports by guest");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get manager reports by guest");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get manager reports by guest' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports by guest"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get manager reports by guest")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get manager reports by guest


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get manager reports by guest")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get manager reports by guest");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports by guest"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get manager reports by guest");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports by guest"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get manager reports by guest",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get manager reports by guest"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get manager reports by guest"




response = http.request(request)
puts response.read_body

  • To fetch all misconduct replies. To complete this process, you need to add to your url path the misconduct ID. Example api/{misconductid}. Where misconductid would be the misconductid value from your request body during the creation of a misconduct reply.
    • ##### More query parameters

      1. ?sort=asc or desc
      2. ?column=* or name,age etc
      3. ?limit=4 or more
      4. ?sortby=column|asc or desc
      5. ?rowid={0-9 or string}
      6. ?search=column|data
Request Header
Method GET
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Get misconduct replies This is the service method for this request header
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Showing all submitted misconduct replies for \"2cfee9j4b4adi81d1\"",
    "Data": [
        {
            "ID": "cfaj311d7d584e3eib",
            "Identity": "tripmata",
            "Reply": "Thank you for submitting your message. We would treat on this and contact you shortly!",
            "Report": {
                "ID": "2cfee9j4b4adi81d1",
                "Classification": {
                    "ID": 1,
                    "Name": "guest"
                },
                "Name": "Ifeayi amadi",
                "Reporting": "hsysyiwa",
                "Message": "I was treated poorly and i deserve justice.",
                "ReportTo": "tripmata",
                "Date": 1646155236,
                "Identity": "yssmsidl"
            },
            "Date": 1646205853
        }
    ]
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Get misconduct replies");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    res = curl_easy_perform(curl);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Get misconduct replies");

    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Get misconduct replies' \

    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get misconduct replies"
};
var request = http.MultipartRequest('GET', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "GET"

      

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Get misconduct replies")


  
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
GET /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Get misconduct replies


OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("GET", null)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Get misconduct replies")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Get misconduct replies");

    

var requestOptions = {
    method: 'GET',
    headers: myHeaders,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
    

var requestOptions = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get misconduct replies"
},
    timeout: 0,
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});


var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Get misconduct replies");


xhr.send(null);
var axios = require('axios');
var FormData = require('form-data');
    

var config = {
    method: 'GET',
    headers: {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get misconduct replies"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Get misconduct replies",
  ),
  
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Get misconduct replies"
}



response = requests.request("GET", url, headers=headers)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Get misconduct replies"




response = http.request(request)
puts response.read_body

  • This method helps with reporting a guest misconduct
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Report guest This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
name required|string|min:2
reporting required|string|notag|min:2
message required|min:2
report_to required|string|notag|min:2
attachments [file:optional,]
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Guest misconduct report submitted successfully",
    "Data": {
        "ID": "2cfee9j4b4adi81d1",
        "Classification": {
            "ID": 1,
            "Name": "guest"
        },
        "Name": "Ifeayi amadi",
        "Reporting": "hsysyiwa",
        "Message": "I was treated poorly and i deserve justice.",
        "ReportTo": "tripmata",
        "Date": 1646155236
    }
}
                                
                                    {
    "Status": true,
    "Code": 401,
    "Flag": "RES_WARNING",
    "Message": "Invalid Misconduct ID, Please check and try again!"
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Report guest");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "reporting");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "report_to");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "attachments");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Report guest");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("reporting", "");
request.AddParameter("message", "");
request.AddParameter("report_to", "");
request.AddParameter("attachments", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Report guest' \

--form 'identity=""' \
--form 'name=""' \
--form 'reporting=""' \
--form 'message=""' \
--form 'report_to=""' \
--form 'attachments=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report guest"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "name": "",
    "reporting": "",
    "message": "",
    "report_to": "",
    "attachments": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("reporting", "")
  _ = writer.WriteField("message", "")
  _ = writer.WriteField("report_to", "")
  _ = writer.WriteField("attachments", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Report guest")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Report guest

Content-Length: 671
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="reporting"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="report_to"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachments"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("reporting", "")
    .addFormDataPart("message", "")
    .addFormDataPart("report_to", "")
    .addFormDataPart("attachments", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Report guest")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Report guest");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report guest"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Report guest");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("name", "");
data.append("reporting", "");
data.append("message", "");
data.append("report_to", "");
data.append("attachments", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report guest"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Report guest",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "name" => "",
    "reporting" => "",
    "message" => "",
    "report_to" => "",
    "attachments" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report guest"
}

payload = {
    "identity": "",
    "name": "",
    "reporting": "",
    "message": "",
    "report_to": "",
    "attachments": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Report guest"


form_data = [['identity', ''],['name', ''],['reporting', ''],['message', ''],['report_to', ''],['attachments', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method helps with reporting a manager/property misconduct
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Report manager This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
name required|string|min:2
reporting required|string|notag|min:2
message required|min:2
report_to required|string|notag|min:2
attachments [file:optional,]
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "Manager misconduct report submitted successfully",
    "Data": {
        "ID": "5625bdc0ede7aji0f6",
        "Classification": {
            "ID": 2,
            "Name": "manager"
        },
        "Name": "Ifeayi amadi",
        "Reporting": "hsysyiwa",
        "Message": "I was treated poorly and i deserve justice.",
        "ReportTo": "tripmata",
        "Date": 1646155321
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Report manager");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "name");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "reporting");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "report_to");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "attachments");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Report manager");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("name", "");
request.AddParameter("reporting", "");
request.AddParameter("message", "");
request.AddParameter("report_to", "");
request.AddParameter("attachments", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Report manager' \

--form 'identity=""' \
--form 'name=""' \
--form 'reporting=""' \
--form 'message=""' \
--form 'report_to=""' \
--form 'attachments=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report manager"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "name": "",
    "reporting": "",
    "message": "",
    "report_to": "",
    "attachments": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("name", "")
  _ = writer.WriteField("reporting", "")
  _ = writer.WriteField("message", "")
  _ = writer.WriteField("report_to", "")
  _ = writer.WriteField("attachments", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Report manager")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Report manager

Content-Length: 671
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="reporting"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="report_to"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachments"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("name", "")
    .addFormDataPart("reporting", "")
    .addFormDataPart("message", "")
    .addFormDataPart("report_to", "")
    .addFormDataPart("attachments", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Report manager")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Report manager");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report manager"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("name", "");
formdata.append("reporting", "");
formdata.append("message", "");
formdata.append("report_to", "");
formdata.append("attachments", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Report manager");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("name", "");
data.append("reporting", "");
data.append("message", "");
data.append("report_to", "");
data.append("attachments", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report manager"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Report manager",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "name" => "",
    "reporting" => "",
    "message" => "",
    "report_to" => "",
    "attachments" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Report manager"
}

payload = {
    "identity": "",
    "name": "",
    "reporting": "",
    "message": "",
    "report_to": "",
    "attachments": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Report manager"


form_data = [['identity', ''],['name', ''],['reporting', ''],['message', ''],['report_to', ''],['attachments', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body

  • This method helps with replying to a misconduct report.
Request Header
Method POST
Endpoint https://messaging.tripmata.com/api
Headers
Header Value Description
authorization Bearer {token} This is your request authorization code
x-meta-service Misconduct This is the service name for this request header
x-meta-method Reply to misconduct report This is the service method for this request header
Request Body
Column Rule
identity required|string|min:1
misconductid required|string|min:2
message required|min:2
Request Response
                                    {
    "Status": true,
    "Code": 200,
    "Flag": "RES_SUCCESS",
    "Message": "A reply to this misconduct ID '2cfee9j4b4adi81d1' has been submitted successfully",
    "Data": {
        "ID": "cfaj311d7d584e3eib",
        "Identity": "tripmata",
        "Reply": "Thank you for submitting your message. We would treat on this and contact you shortly!",
        "Report": {
            "ID": "2cfee9j4b4adi81d1",
            "Classification": {
                "ID": 1,
                "Name": "guest"
            },
            "Name": "Ifeayi amadi",
            "Reporting": "hsysyiwa",
            "Message": "I was treated poorly and i deserve justice.",
            "ReportTo": "tripmata",
            "Date": 1646155236
        },
        "Date": 1646205853
    }
}
                                
NoteYou can directly try out this request on our playground: Try it out
Code Snippets

We've generated some code snippets that can help you start making queries within seconds. You can find them below.

CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_easy_setopt(curl, CURLOPT_URL, "messaging.tripmata.com/api");
    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
    curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "authorization: Bearer my-token");
    headers = curl_slist_append(headers, "x-meta-service: Misconduct");
    headers = curl_slist_append(headers, "x-meta-method: Reply to misconduct report");

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
    curl_mime *mime;
    curl_mimepart *part;
    mime = curl_mime_init(curl);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "identity");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "misconductid");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    part = curl_mime_addpart(mime);
    curl_mime_name(part, "message");
    curl_mime_data(part, "", CURL_ZERO_TERMINATED);
    curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
    res = curl_easy_perform(curl);
    curl_mime_free(mime);

}
curl_easy_cleanup(curl);
var client = new RestClient("https://messaging.tripmata.com/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Bearer my-token");
request.AddHeader("x-meta-service", "Misconduct");
request.AddHeader("x-meta-method", "Reply to misconduct report");

request.AlwaysMultipartFormData = true;
request.AddParameter("identity", "");
request.AddParameter("misconductid", "");
request.AddParameter("message", "");
    
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request POST 'https://messaging.tripmata.com/api' \
--header 'authorization: Bearer my-token' \
--header 'x-meta-service: Misconduct' \
--header 'x-meta-method: Reply to misconduct report' \

--form 'identity=""' \
--form 'misconductid=""' \
--form 'message=""' \
    
var headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Reply to misconduct report"
};
var request = http.MultipartRequest('POST', Uri.parse('https://messaging.tripmata.com/api'));
request.headers.addAll(headers);
request.fields.addAll({
    "identity": "",
    "misconductid": "",
    "message": ""
});
http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}
package main

import (
  "fmt"
  "bytes"
  "net/http"
  "io/ioutil"
  "mime/multipart"
)

func main() {

  url := "https://messaging.tripmata.com/api"
  method := "POST"

  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("identity", "")
  _ = writer.WriteField("misconductid", "")
  _ = writer.WriteField("message", "")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  } 

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
    req.Header.Add("authorization", "Bearer my-token")
  req.Header.Add("x-meta-service", "Misconduct")
  req.Header.Add("x-meta-method", "Reply to misconduct report")


  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
POST /api HTTP/1.1
Host: messaging.tripmata.com
authorization: Bearer my-token
x-meta-service: Misconduct
x-meta-method: Reply to misconduct report

Content-Length: 398
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="identity"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="misconductid"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="message"

test
----WebKitFormBoundary7MA4YWxkTrZu0gW
OkHttpClient client = new OkHttpClient().newBuilder().build();
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
    .addFormDataPart("identity", "")
    .addFormDataPart("misconductid", "")
    .addFormDataPart("message", "")
.build();
Request request = new Request.Builder()
  .url("https://messaging.tripmata.com/api")
  .method("POST", body)
  .addHeader("authorization", "Bearer my-token")
.addHeader("x-meta-service", "Misconduct")
.addHeader("x-meta-method", "Reply to misconduct report")
  .build();
Response response = client.newCall(request).execute();
var myHeaders = new Headers();
myHeaders.append("authorization", "Bearer my-token");
myHeaders.append("x-meta-service", "Misconduct");
myHeaders.append("x-meta-method", "Reply to misconduct report");

var formdata = new FormData();
formdata.append("identity", "");
formdata.append("misconductid", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    headers: myHeaders,
    body: formdata,
    redirect: 'follow'
};
  
fetch("https://messaging.tripmata.com/api", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("misconductid", "");
formdata.append("message", "");
    

var requestOptions = {
    method: 'POST',
    data: formdata,
    processData: false,
    mimeType: "multipart/form-data",
    contentType: false,
    timeout: 0,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Reply to misconduct report"
},
    url : "https://messaging.tripmata.com"
};
  
$.ajax(requestOptions).done(function (response) {
    console.log(response);
});
var formdata = new FormData();
formdata.append("identity", "");
formdata.append("misconductid", "");
formdata.append("message", "");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://messaging.tripmata.com/api");
xhr.setRequestHeader("authorization", "Bearer my-token");
xhr.setRequestHeader("x-meta-service", "Misconduct");
xhr.setRequestHeader("x-meta-method", "Reply to misconduct report");


xhr.send(formdata);
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append("identity", "");
data.append("misconductid", "");
data.append("message", "");
    

var config = {
    method: 'POST',
    data: data,
    headers : {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Reply to misconduct report"
},
    url : "https://messaging.tripmata.com"
};
  
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://messaging.tripmata.com/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    "authorization" => "Bearer my-token",
    "x-meta-service" => "Misconduct",
    "x-meta-method" => "Reply to misconduct report",
  ),
  CURLOPT_POSTFIELDS => array(
    "identity" => "",
    "misconductid" => "",
    "message" => "",
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://messaging.tripmata.com/api"

headers = {
    "authorization": "Bearer my-token",
    "x-meta-service": "Misconduct",
    "x-meta-method": "Reply to misconduct report"
}

payload = {
    "identity": "",
    "misconductid": "",
    "message": ""
}

files=[

]

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
require "uri"
require "net/http"

url = URI("https://messaging.tripmata.com/api")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)

request["authorization"] = "Bearer my-token"
request["x-meta-service"] = "Misconduct"
request["x-meta-method"] = "Reply to misconduct report"


form_data = [['identity', ''],['misconductid', ''],['message', '']]

request.set_form form_data, 'multipart/form-data'

response = http.request(request)
puts response.read_body