templates

Create a template

post/admin/v1/templates

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/templates
  • Auth: HTTP bearer

Request body

contentstring required

The actual template content

descriptionstring nullable

Optional description

metadataobject nullable

Optional metadata

namestring required

Name of the template (unique per owner)

Response

Template created

contentstring required

The actual template content (system message template)

created_atstring date-time required
descriptionstring nullable

Optional description of what this template does

idstring uuid required
metadataobject nullable

Optional metadata (e.g., recommended temperature, max_tokens, tags)

namestring required

Name of the template

owner_idstring uuid required
owner_type'organization' | 'team' | 'project' | 'user' required

Owner type for templates (organization, team, project, or user)

updated_atstring date-time required

Changes

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