GET/api-templates
List templates
The scoring templates your account can use, and which one is live.
A template decides which buying signals count towards a score. You create and edit templates in the Platinux app; the API only lists them.
Request
curl "https://mmkuffhlzytnmgraagbp.supabase.co/functions/v1/api-templates" -H "Authorization: Bearer $PLATINUX_API_KEY"No parameters.
Response 200
{
"templates": [
{ "template_id": "4d286e65-11b6-4f86-8eff-2a41105b0e09", "name": "Platinux", "is_live": true, "scoreable": true },
{ "template_id": "00000000-0000-4000-8000-000000000001", "name": "Default (No Signals)", "is_live": false, "scoreable": false }
]
}| Field | Type | Meaning |
|---|---|---|
template_id | string (UUID) | Pass this to every scoring endpoint (/score/domain, /score/email, /score/social) |
name | string | The template's name in the app |
is_live | boolean | true for your active template. Scoring uses this one only (see Limits) |
scoreable | boolean | false when the template has no signals switched on; scoring with it returns 422 template_empty |
The live template comes first. An account with no templates gets { "templates": [] }.
The response never includes a template's signals or settings.
Errors
| HTTP | error |
|---|---|
| 401 | unauthorized |
| 405 | method_not_allowed |