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

Get context template

GET
/v1/context-templates/:id
GET
/v1/context-templates/:id
$curl https://api.runtype.com/v1/context-templates/id \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "config": {
3 "maxTokens": 1500,
4 "temperature": 0.7,
5 "model": "gpt-4",
6 "promptTemplate": "You are an AI assistant that helps with context-aware completions."
7 },
8 "createdAt": "2024-05-20T10:15:30Z",
9 "id": "a3f1c9d2-7b4e-4f8a-9c3d-2e5b6f7a8d9e",
10 "name": "Customer Support Context",
11 "organizationId": "org_9f8e7d6c5b4a3",
12 "type": "chat-completion",
13 "updatedAt": "2024-06-01T08:45:00Z",
14 "userId": "user_1234567890abcdef"
15}
Get a specific context template by ID.
Was this page helpful?
Previous

Update context template

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Response

Context template
configmap from strings to any
createdAtstring
idstring
namestring
organizationIdstring or null
typestring
updatedAtstring
userIdstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error