curl 'https://api.sendops.dev/v1/templates/string' \
-H "Authorization: Bearer $SENDOPS_API_KEY " const res = await fetch ( "https://api.sendops.dev/v1/templates/string" , {
method: "GET" ,
headers: {
Authorization: `Bearer ${ process . env . SENDOPS_API_KEY }`
},
});
const body = await res. json (); import os, requests
r = requests.get( "https://api.sendops.dev/v1/templates/string" , headers = { "Authorization" : f "Bearer { os.environ[ 'SENDOPS_API_KEY' ] } " })
print (r.json()) 200 401 403 404 422 429 500
application/json {
"slug" : "string" ,
"name" : "string" ,
"subject" : "string" ,
"channel" : "string" ,
"version" : "string" ,
"last_modified_at" : "2026-05-17T20:00:00Z" ,
"source" : "git"
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
} {
"type" : "https://example.com" ,
"title" : "string" ,
"status" : 0 ,
"detail" : "string" ,
"code" : "invalid_key" ,
"request_id" : "string" ,
"retry_after" : 0 ,
"retention_days" : 0 ,
"scope" : "string" ,
"resource" : "string" ,
"errors" : [
{
"field" : "string" ,
"reason" : "string"
}
]
}