Skip to main content
Retrieves a prompt either by its unique command trigger or by its ID. Returns the prompt with user information and access control details.

Endpoints

  • GET /api/prompts/command/ - Get prompt by command
  • GET /api/prompts/id/ - Get prompt by ID

Path Parameters

string
required
The command trigger for the prompt (only for /command/{command} endpoint)
string
required
The unique prompt ID (only for /id/{id} endpoint)

Response

string
required
Unique identifier for the prompt
string
required
Command trigger for the prompt
string
required
ID of the user who created the prompt
string
required
Display name for the prompt
string
required
The prompt template content
object
Additional data associated with the prompt
object
Metadata for the prompt
array
Array of tag strings
boolean
required
Whether the prompt is currently active
string
ID of the active history entry (current version)
integer
required
Unix timestamp (epoch seconds) when prompt was created
integer
required
Unix timestamp (epoch seconds) when prompt was last updated
array
default:[]
Array of access grant objects
object
Information about the user who created the prompt
boolean
required
Whether the authenticated user has write access to this prompt

Error Responses

  • 404 Not Found: Prompt does not exist or user does not have read access