Get Code Template
curl --request GET \
--url https://app.thinnest.ai/api/v1/codes/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/codes/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/codes/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "5e1d8c3b-7a2f-4d96-b4e0-9c6a2f1d8e73",
"name": "login_code",
"language": "en",
"status": "rejected",
"reviewNote": "INVALID_FORMAT",
"settings": {
"expiryMinutes": 5,
"securityRecommendation": true,
"button": "one_tap",
"apps": [
{
"packageName": "in.kaapico.app",
"signatureHash": "K8a2LmP9xQ3"
}
]
},
"preview": {
"body": "*123456* is your verification code. For your security, do not share this code.",
"footer": "Expires in 5 minutes."
},
"agent": "ag_2c7e9a14-5b3d-4f8e-a1c6-7d9b0e3f5a21",
"createdAt": "2026-10-06T10:02:17.904Z"
}One-time codes
Get Code Template
One authentication template, with its review status and WhatsApp’s reason when it was rejected.
GET
/
codes
/
templates
/
{id}
Get Code Template
curl --request GET \
--url https://app.thinnest.ai/api/v1/codes/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/codes/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/codes/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "5e1d8c3b-7a2f-4d96-b4e0-9c6a2f1d8e73",
"name": "login_code",
"language": "en",
"status": "rejected",
"reviewNote": "INVALID_FORMAT",
"settings": {
"expiryMinutes": 5,
"securityRecommendation": true,
"button": "one_tap",
"apps": [
{
"packageName": "in.kaapico.app",
"signatureHash": "K8a2LmP9xQ3"
}
]
},
"preview": {
"body": "*123456* is your verification code. For your security, do not share this code.",
"footer": "Expires in 5 minutes."
},
"agent": "ag_2c7e9a14-5b3d-4f8e-a1c6-7d9b0e3f5a21",
"createdAt": "2026-10-06T10:02:17.904Z"
}Authorizations
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Response
The template.