Skip to main content
POST
Create a template

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Template fields

title
string
required

Short human-readable title for the template

Required string length: 3 - 50
description
string
required

Description of what the template does

Required string length: 10 - 200
prompt
string
required

The agent prompt body

Required string length: 20 - 10000
tags
string[]
required

Free-form tags used to categorize the template. Pass an empty array if there are no tags.

is_private
boolean
required

When true, the template is restricted to the creator and the accounts listed in share_emails

share_emails
string<email>[]

Emails to grant access to. Only applied when is_private is true. Defaults to an empty array when omitted.

Response

Template created successfully

status
enum<string>
required

Status of the request

Available options:
success
template
object
required