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.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList prompts
      • POSTCreate a prompt
      • GETRetrieve a prompt
      • PATCHUpdate a prompt
      • DELDelete a prompt
      • POSTCreate a prompt version
      • GETList prompt versions
      • GETRetrieve a prompt version
      • PATCHUpdate a prompt version
      • DELDelete a prompt version
      • POSTCommit a prompt version
      • POSTDeploy a prompt version
      • GETGet prompts summary
      • POSTGet prompts summary with filters
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferencePrompts

Retrieve a prompt

GET
https://api.respan.ai/api/prompts/:prompt_id/
GET
/api/prompts/:prompt_id/
$curl https://api.respan.ai/api/prompts/prompt_id/ \
> -H "Authorization: Bearer sk_live_xxxxx"
1{
2 "id": "prompt_abc123",
3 "name": "Customer Support Assistant",
4 "description": "Handles customer support queries with empathy",
5 "prompt_slug": "customer-support-assistant",
6 "tags": [
7 {
8 "id": "tag_abc123",
9 "name": "support",
10 "color": "#3B82F6",
11 "created_at": "2026-01-01T00:00:00Z",
12 "updated_at": "2026-01-01T00:00:00Z"
13 }
14 ],
15 "current_version": {
16 "version": 3,
17 "model": "gpt-4o",
18 "updated_at": "2026-01-20T10:30:00Z"
19 },
20 "live_version": {
21 "version": 2,
22 "model": "gpt-4o-mini",
23 "updated_at": "2026-01-15T08:00:00Z"
24 },
25 "created_at": "2026-01-01T00:00:00Z",
26 "updated_at": "2026-01-20T10:30:00Z"
27}
Retrieve a prompt template by ID, including its current and live versions.
Was this page helpful?
Previous

Update a prompt

Next
Built with

Path parameters

prompt_idstringRequired
The unique prompt identifier.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Response

Prompt details.
idstring
The unique prompt identifier.
namestring
descriptionstring or null
prompt_slugstring or null
tagslist of objects
current_versionobject or null
live_versionobject or null
created_atdatetime
updated_atdatetime

Errors

401
Unauthorized Error
404
Not Found Error