Platinux API

GET/api-templates

List templates

The scoring templates your account can use, and which one is live.

View as Markdown

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

bash
curl "https://mmkuffhlzytnmgraagbp.supabase.co/functions/v1/api-templates" -H "Authorization: Bearer $PLATINUX_API_KEY"

No parameters.

Response 200

json
{
  "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 }
  ]
}
FieldTypeMeaning
template_idstring (UUID)Pass this to every scoring endpoint (/score/domain, /score/email, /score/social)
namestringThe template's name in the app
is_livebooleantrue for your active template. Scoring uses this one only (see Limits)
scoreablebooleanfalse 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

HTTPerror
401unauthorized
405method_not_allowed