List prompt templates

⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/prompts/templates

Return the workspace’s templates.

For how this fits into a full workflow, see Prompt templates.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewprompt-tools-2026-12-01. Without it the call fails with 400 beta_required. See Versioning.

Query parameters

ParameterTypeDefaultDescription
limitinteger201 to 100.
after_idstringNext page: the previous page’s last_id.
before_idstringPrevious page: the previous page’s first_id.

Response

200 OK, Content-Type: application/json

{
  "data": [
    {
      "id": "ptpl_01JDB1C3E5G7J9L1N3Q5",
      "type": "prompt_template",
      "name": "support",
      "latest_version": 13,
      "labels": {
        "production": 12,
        "staging": 13
      },
      "model": "Amara S1.2",
      "variables": [
        "ticket",
        "customer_tier"
      ],
      "created_at": "2026-09-01T10:00:00Z",
      "updated_at": "2026-11-05T10:00:00Z"
    }
  ],
  "has_more": false,
  "first_id": "ptpl_01JDB1C3E5G7J9L1N3Q5",
  "last_id": "ptpl_01JDB1C3E5G7J9L1N3Q5"
}
FieldTypeDescription
dataarrayThe objects on this page, newest first.
has_morebooleantrue when another page exists after this one.
first_idstring or nullPass as before_id to go back a page.
last_idstring or nullPass as after_id to get the next page.

Examples

curl -sS "https://app.syntic.ai/v1/prompts/templates" \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: prompt-tools-2026-12-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?