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

Deploy a prompt version

POST
https://api.respan.ai/api/prompts/:prompt_id/deployments/
POST
/api/prompts/:prompt_id/deployments/
$curl -X POST https://api.respan.ai/api/prompts/prompt_id/deployments/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "version": 3
>}'
1{
2 "id": "pv_abc123",
3 "prompt_version_id": "pv_abc123",
4 "version": 3,
5 "description": "Improved system prompt for better context handling",
6 "messages": [
7 {
8 "role": "system",
9 "content": "You are a helpful assistant. Context: {{context}}"
10 }
11 ],
12 "model": "gpt-4o",
13 "readonly": true,
14 "is_deployed": true,
15 "edited_by": {
16 "id": 123,
17 "email": "user@example.com",
18 "first_name": "John",
19 "last_name": "Doe"
20 },
21 "created_at": "2026-02-27T10:00:00Z",
22 "updated_at": "2026-02-27T10:00:00Z"
23}
Deploy a committed version as the live version for this prompt.
Was this page helpful?
Previous

Get prompts summary

Next
Built with

Path parameters

prompt_idstringRequired
The unique prompt identifier.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
versionintegerRequired
Version number to deploy as live.

Response

Version deployed successfully.
idstring
prompt_version_idstring
versioninteger
descriptionstring or null
messageslist of maps from strings to any
modelstring
readonlyboolean
is_deployedboolean
edited_byobject
created_atdatetime
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error