Skip to main content
POST
/
v1
/
teams
/
{teamID}
/
prompts
Create a Prompt
curl --request POST \
  --url http://localhost:3000/v1/teams/{teamID}/prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Prompt",
  "description": "Useful prompt",
  "slug": "my_prompt"
}
'
{
  "prompt": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "slug": "<string>",
    "name": "<string>",
    "description": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Use an access token retrieved from login (Bearer sess_...) or a programmatic API key (Bearer ak_...).

Path Parameters

teamID
string<uuid>
required

The ID of the team.

Body

application/json
name
string
required
Example:

"My Prompt"

description
string
Example:

"Useful prompt"

slug
string
Example:

"my_prompt"

Response

Prompt created successfully

prompt
object
required