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

List prompt versions

GET
https://api.respan.ai/api/prompts/:prompt_id/versions/
GET
/api/prompts/:prompt_id/versions/
$curl -G https://api.respan.ai/api/prompts/prompt_id/versions/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -d page=1 \
> -d page_size=200
1{
2 "count": 5,
3 "next": null,
4 "previous": null,
5 "results": [
6 {
7 "id": "pv_abc123",
8 "prompt_version_id": "pv_abc123",
9 "version": 3,
10 "description": "Added context variable",
11 "messages": [
12 {
13 "role": "system",
14 "content": "You are a helpful assistant. Context: {{context}}"
15 },
16 {
17 "role": "user",
18 "content": "{{user_query}}"
19 }
20 ],
21 "thinking": null,
22 "model": "gpt-4o",
23 "stream": false,
24 "temperature": 0.7,
25 "max_tokens": 2048,
26 "top_p": 1,
27 "frequency_penalty": 0,
28 "presence_penalty": 0,
29 "reasoning_effort": null,
30 "verbosity": null,
31 "seed": null,
32 "variables": {
33 "context": "",
34 "user_query": ""
35 },
36 "fallback_models": [
37 "gpt-4o-mini"
38 ],
39 "load_balance_models": [
40 {
41 "model": "gpt-4o",
42 "weight": 0.8
43 },
44 {
45 "model": "gpt-4o-mini",
46 "weight": 0.2
47 }
48 ],
49 "tools": [
50 {
51 "type": "function",
52 "function": {
53 "name": "search_knowledge_base"
54 }
55 }
56 ],
57 "tool_choice": "auto",
58 "response_format": null,
59 "json_schema": null,
60 "is_enforcing_response_format": false,
61 "readonly": false,
62 "is_deployed": false,
63 "edited_by": {
64 "id": 123,
65 "email": "user@example.com",
66 "first_name": "John",
67 "last_name": "Doe"
68 },
69 "created_at": "2026-01-20T10:30:00Z",
70 "updated_at": "2026-01-20T10:30:00Z"
71 }
72 ]
73}
List all versions for a prompt. Results are ordered newest first.
Was this page helpful?
Previous

Retrieve a prompt version

Next
Built with

Path parameters

prompt_idstringRequired
The unique prompt identifier.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptionalDefaults to 1
Page number.
page_sizeintegerOptional<=500Defaults to 200
Number of prompt versions per page. Maximum is 500.

Response

Paginated list of prompt versions.
countinteger
Total number of matching versions.
nextstring or null
Next page URL.
previousstring or null
Previous page URL.
resultslist of objects

Errors

401
Unauthorized Error
404
Not Found Error