Skip to main content
POST
/
api
/
agents
/
templates
Create a template
curl --request POST \
  --url https://api.recoupable.com/api/agents/templates \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "prompt": "<string>",
  "tags": [
    "<string>"
  ],
  "is_private": true,
  "share_emails": [
    "jsmith@example.com"
  ]
}
'
{
  "status": "success",
  "template": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "description": "<string>",
    "prompt": "<string>",
    "tags": [
      "<string>"
    ],
    "creator": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "image": "<string>",
      "is_admin": true
    },
    "is_private": true,
    "is_favourite": true,
    "favorites_count": 123,
    "shared_emails": [
      "jsmith@example.com"
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt

Use this file to discover all available pages before exploring further.

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