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

Get prompt details

GET
/v1/prompts/:id
GET
/v1/prompts/:id
$curl https://api.runtype.com/v1/prompts/id \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "createdAt": "2024-06-10T09:15:30Z",
3 "estimatedCost": "0.0045",
4 "estimatedTokens": 350,
5 "flowCount": 2,
6 "flowId": "f8a1c2d4-3b7e-4e9a-9f2d-1a2b3c4d5e6f",
7 "flowName": "Customer Support Flow",
8 "flows": [
9 {
10 "flowId": "f8a1c2d4-3b7e-4e9a-9f2d-1a2b3c4d5e6f",
11 "flowName": "Customer Support Flow",
12 "order": 1
13 },
14 {
15 "flowId": "a7b9c8d7-6e5f-4a3b-9c1d-2e3f4a5b6c7d",
16 "flowName": "Feedback Collection Flow",
17 "order": 2
18 }
19 ],
20 "id": "d3f9a1b2-c4e5-4f67-8a9b-0c1d2e3f4a5b",
21 "model": "gpt-4",
22 "name": "Support Ticket Response",
23 "responseFormat": "json",
24 "text": "Generate a polite and helpful response to a customer support ticket regarding a delayed shipment.",
25 "updatedAt": "2024-06-12T11:45:00Z",
26 "userId": "user_9876543210"
27}
Returns a prompt with its associated flow information.
Was this page helpful?
Previous

Update a prompt

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
Prompt TypeID

Response

Prompt details
createdAtstring
estimatedCoststring or null
estimatedTokensinteger or null
flowCountinteger
flowIdstring or null
flowNamestring or null
flowslist of objects
idstring
modelstring
namestring
responseFormatstring
textstring
updatedAtstring
userIdstring

Errors

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