System Prompts

Create system prompt

Creates a new reusable system prompt template. The saved prompt can then be referenced by its ID in chat completion or conversation requests to apply a consistent persona or instruction set without repeating the prompt text.

post/system-prompts

Request

  • Base URL: https://console.hyperstack.cloud/ai/api/v1
  • URL: https://console.hyperstack.cloud/ai/api/v1/system-prompts
  • Auth: API key in header api_key

Request body

contentstring required

The system prompt text that defines the model's persona, behavior, and response constraints.

namestring required

Unique display name for the system prompt template.

Example request

{
  "name": "example-sysprompt",
  "content": "You are a helpful assistant created for API testing purposes."
}

Response

Created

contentstring required

Content of the system prompt.

idinteger required

Unique identifier of the system prompt.

namestring required

Name of the system prompt.

organization_idinteger required

ID of the organization.

user_idinteger required

ID of the user who created the prompt.

created_atstring date-time

ISO 8601 UTC timestamp indicating when the system prompt was created.

updated_atstring date-time

Last update timestamp.

uuidstring

UUID of the prompt.

Changes

No recorded changes to this operation across all 1 revision of this API.