curl --request GET \
--url https://api.ciarem.ai/v1/templates/{template_id}/send-requirements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ciarem.ai/v1/templates/{template_id}/send-requirements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ciarem.ai/v1/templates/{template_id}/send-requirements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ciarem.ai/v1/templates/{template_id}/send-requirements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"variables": [
"<string>"
],
"contact_paths": [
"<string>"
],
"catalog_slots": [
"<string>"
],
"needs_coupon": true,
"dynamic_url_buttons": [
{
"index": 123,
"text": "<string>",
"url_prefix": "<string>"
}
],
"needs_lto_expiration": true,
"media_surfaces": [
{
"card": 123,
"format": "<string>",
"catalog_bound": true
}
],
"unsendable_reason": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}Get a template's send requirements
What must be supplied to send this template, and whether it can be sent.
Registered before /templates/{template_id} is irrelevant here (the literal
segment makes the path distinct), but it is deliberately a sub-resource of
the template rather than a query flag: it answers a different question and
its shape has nothing in common with PublicTemplate.
curl --request GET \
--url https://api.ciarem.ai/v1/templates/{template_id}/send-requirements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ciarem.ai/v1/templates/{template_id}/send-requirements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ciarem.ai/v1/templates/{template_id}/send-requirements"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ciarem.ai/v1/templates/{template_id}/send-requirements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ciarem.ai/v1/templates/{template_id}/send-requirements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"variables": [
"<string>"
],
"contact_paths": [
"<string>"
],
"catalog_slots": [
"<string>"
],
"needs_coupon": true,
"dynamic_url_buttons": [
{
"index": 123,
"text": "<string>",
"url_prefix": "<string>"
}
],
"needs_lto_expiration": true,
"media_surfaces": [
{
"card": 123,
"format": "<string>",
"catalog_bound": true
}
],
"unsendable_reason": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}Authorizations
An org API key: Authorization: Bearer oak_….
Path Parameters
Response
Successful Response
What a template needs supplied before it can be sent.
The public template's components cannot answer this on its own: the
projection strips our private media/catalog keys, and Meta's
example.header_handle looks like a usable default but is a link Meta's own
fetcher refuses. This endpoint is the supported way to find out.
Show child attributes
Show child attributes
Show child attributes
Show child attributes