For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList context templates
      • POSTCreate context template
      • GETGet context template
      • PUTUpdate context template
      • DELDelete context template
Dashboard
LogoLogo
Runtype APIContext Templates

List context templates

GET
/v1/context-templates
GET
/v1/context-templates
$curl https://api.runtype.com/v1/context-templates \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "data": [
3 {
4 "config": {
5 "language": "en",
6 "maxTokens": 150,
7 "temperature": 0.7
8 },
9 "createdAt": "2024-06-10T09:15:30Z",
10 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
11 "name": "Customer Support Template",
12 "organizationId": "org_987654321",
13 "type": "chat",
14 "updatedAt": "2024-06-12T11:20:45Z",
15 "userId": "user_123456789"
16 }
17 ],
18 "pagination": {
19 "nextCursor": "eyJpZCI6IjEyMzQ1NiJ9",
20 "hasMore": true
21 }
22}

Get all context templates for the authenticated user with optional type/name filtering and cursor pagination.

Was this page helpful?
Previous

Create context template

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Query parameters

typestringOptional
namestringOptional
cursorstringOptional
limitstringOptional

Response

Paginated list of context templates
datalist of objects
paginationmap from strings to any

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error