List Templates

List Templates

GET https://api.ocamba.com/v1/hood/templates

Returns a list of Templates

Rate limits:

Burst: 10/s
Steady: 150/m

Query parameters

parameters

Response schemas

GET https://api.ocamba.com/v1/hood/templates HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v1/hood/templates" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v1/hood/templates", {
  method: "GET",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/templates");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

HTTP/1.1 200 OK
Content-Type: application/json

{
  "total": 32,
  "items": [
    {
      "id": "1000",
      "company_id": "1000001",
      "name": "Template Example",
      "description": "This is an example of description.",
      "channels": [
        null
      ],
      "create_time": "2021-10-29 12:47:00",
      "update_time": "2021-10-30 14:27:26"
    }
  ]
}
Responses

Tip
1
Sortable fields are: name, create_time and update_time.
2
Searchable fields is: name.
3
Filterable fields are: id, name, channels, create_time and update_time.
4
If you’re trying to see templates by type, please apply the type filter, adding ‘sms’ or ’email’ as a value, according to your needs.