Get a prompt
Changed onReturns the prompt template with its current and live versions.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/prompts/{prompt_id}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
The unique prompt identifier.
Response
Prompt details.
Example response
{
"id": "prompt_abc123",
"name": "Customer Support Assistant",
"description": "Handles customer support queries with empathy",
"prompt_slug": "customer-support-assistant",
"tags": [
{
"id": "tag_abc123",
"name": "support",
"color": "#3B82F6",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}
],
"current_version": {
"version": 3,
"model": "gpt-4o",
"updated_at": "2026-01-20T10:30:00Z"
},
"live_version": {
"version": 2,
"model": "gpt-4o-mini",
"updated_at": "2026-01-15T08:00:00Z"
},
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-20T10:30:00Z"
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - info
api operation id
prompts_retrievePromptremoved and replaced withretrievePrompt - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Promptsadded - info
api tag
promptsremoved - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
removed
subschema #2from theresponse propertyoneOflist for the response status
- breaking
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the required property
to the response with the status
- warning