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 prompts
      • POSTCreate a prompt
      • GETGet prompt details
      • PUTUpdate a prompt
      • DELDelete a prompt
Dashboard
LogoLogo
Runtype APIPrompts

Create a prompt

POST
/v1/prompts
POST
/v1/prompts
$curl -X POST https://api.runtype.com/v1/prompts \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "Customer Insights Analysis",
> "text": "Analyze the customer data for {{customer_name}} and provide insights about their engagement patterns and potential opportunities for growth.",
> "model": "claude-sonnet-4-5",
> "responseFormat": "markdown"
>}'
1{
2 "createdAt": "string",
3 "estimatedCost": "string",
4 "estimatedTokens": 1,
5 "id": "string",
6 "model": "string",
7 "name": "string",
8 "organizationId": "string",
9 "responseFormat": "string",
10 "text": "string",
11 "updatedAt": "string",
12 "userId": "string",
13 "systemPrompt": "string",
14 "userPrompt": "string"
15}
Creates a new standalone prompt with token estimation.
Was this page helpful?
Previous

Get prompt details

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired1-255 characters
textstringRequired>=1 character
modelstringOptionalDefaults to qwen/qwen3.5-9b
responseFormatenumOptionalDefaults to json
Allowed values:
systemPromptstringOptional
userPromptstringOptional

Response

Prompt created
createdAtstring
estimatedCoststring or null
estimatedTokensinteger or null
idstring
modelstring
namestring
organizationIdstring or null
responseFormatstring
textstring
updatedAtstring
userIdstring
systemPromptstring or null
userPromptstring or null

Errors

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