Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Request body Required
The request.
application/json
namestringRequired1 maxLength: 255 The display name.
descriptionstring or nullOptional2000 The optional description.
textstringRequired1 maxLength: 32000 The prompt HTML with optional context mentions.
Responses
200 OK
application/json
idstringOptionalThe prompt ID.
namestring or nullOptionalThe display name.
descriptionstring or nullOptionalThe optional description.
textstring or nullOptionalThe prompt markup with entity reference nodes.
userIdstringOptionalThe owning user.
createdBystringOptionalThe user who created the prompt.
createdOnstringOptionalThe creation time.
updatedOnstring or nullOptionalThe last update time.
accessLevelstring or nullOptionalThe effective read or manage access.
isOwnerbooleanOptionalWhether the caller owns the prompt.
hasAdminAccessOnlybooleanOptionalWhether only workspace administration grants access.
workspaceAccessLevelstring or nullOptionalThe workspace access level.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.