Skip to main content
POST
Create or update a prompt.

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Body

application/json

Prompt data

Request body for saving a prompt

companyId
string
required

Company ID

prompt
object
required

Prompt data object with fields: id (optional for create), name (required), content (required, the prompt text), description, visibility (private, shared, public - default: private)

Response

Created prompt ID

Success response with ID

id
string

Created/updated resource ID

msg
string

Success message