Zum Inhalt springen
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Retrieve a template

GET/templates/{id}
Autorisierung
AuthorizationBearer-Token · headererforderlich

A BillionSend API key (bs_…).

Pfadparameter
idstringerforderlich

Template id or alias

min. Länge 1
Antworten
200

Template by id or alias. Every save through the API is live and publishes a new version, so status is always published. The dashboard editor keeps a working copy and publishes on request, with a version history. from, reply_to and variables are not supported and read as null, null and [].

idstring<uuid>erforderlich
namestringerforderlich
aliasstring | nullerforderlich
statusstringerforderlich
Erlaubt:published
published_atstringerforderlich
created_atstringerforderlich
updated_atstringerforderlich
objectstringerforderlich
Erlaubt:template
current_version_idstring<uuid>erforderlich
fromnullerforderlich
subjectstring | nullerforderlich
reply_tonullerforderlich
htmlstringerforderlich
textstring | nullerforderlich
variablesany[]erforderlich

Always empty

has_unpublished_versionsbooleanerforderlich
Erlaubt:false
401

Missing, malformed, unknown or revoked API key

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
404

Not found

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
429

Over the rate limit (rate_limit_exceeded, with Retry-After)

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
Ausprobieren
Server
Autorisierung
Parameter
Anfrage
curl -X GET 'https://api.billionsend.com/templates/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Antwort
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "alias": "string",
  "status": "published",
  "published_at": "string",
  "created_at": "string",
  "updated_at": "string",
  "object": "template",
  "current_version_id": "158beffb-f9de-457f-bbee-873740e72504",
  "from": null,
  "subject": "string",
  "reply_to": null,
  "html": "string",
  "text": "string",
  "variables": [
    null
  ],
  "has_unpublished_versions": false
}

War diese Seite hilfreich?