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

Create a prompt

POST
https://api.respan.ai/api/prompts/
POST
/api/prompts/
$curl -X POST https://api.respan.ai/api/prompts/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "customer_support"
>}'
1{
2 "id": "prompt_new123",
3 "name": "Customer Support Assistant",
4 "description": "Handles customer support queries with empathy",
5 "prompt_slug": "customer-support-assistant",
6 "tags": [],
7 "current_version": null,
8 "live_version": null,
9 "created_at": "2026-01-21T12:00:00Z",
10 "updated_at": "2026-01-21T12:00:00Z"
11}
Create a new prompt template.
Was this page helpful?
Previous

Retrieve a prompt

Next
Built with

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringRequired
Prompt name.
descriptionstringOptional
Prompt description.

Response

Prompt created successfully.
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

400
Bad Request Error
401
Unauthorized Error