Skip to main content
GET
/
templates
List all templates
curl --request GET \
  --url https://sdk.senso.ai/api/v1/templates \
  --header 'X-API-Key: <api-key>'
[
  {
    "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "text": "<string>",
    "output_type": "json",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

X-API-Key
string
header
required

API key authorization

Query Parameters

limit
integer
default:10

Maximum number of templates to return (default is 10, max 100)

Required range: 1 <= x <= 100
offset
integer
default:0

Number of templates to skip for pagination

Required range: x >= 0

Response

List of templates successfully retrieved

template_id
string<uuid>

The unique identifier of the template

name
string

The name of the template

text
string

The template text with variables

output_type
enum<string>

The output format for the template

Available options:
json,
text
created_at
string<date-time>

When the template was created

updated_at
string<date-time>

When the template was last updated

deleted_at
string<date-time> | null

When the template was deleted (null if not deleted)

I