snippets

Create snippet

Create a personal (or team-shared) snippet/template.

post/v1/snippets

Request

  • Base URL: https://api.botdog.co
  • URL: https://api.botdog.co/v1/snippets
  • Auth: API key in header x-api-key

Request body

namestring required

The snippet name

type'TEXT' | 'LLM'

A static TEXT template or an LLM prompt

contentstring

Template body (required for TEXT)

promptstring

Generation prompt (required for LLM)

shortcutstring

A quick-access shortcut (must be unique)

Response

idstring required

The unique identifier of the snippet

namestring required

The name of the snippet

shortcutstring nullable

The keyboard shortcut for the snippet, if any

typestring required

The snippet type: a static TEXT template or an LLM prompt

statusstring required

The snippet status

contentstring nullable

The template body (for TEXT snippets)

promptstring nullable

The generation prompt (for LLM snippets)

isSharedboolean required

Whether the snippet is shared with the team

createdAtstring date-time required

When the snippet was created

updatedAtstring date-time required

When the snippet was last updated

Example response

{
  "type": "TEXT",
  "status": "ACTIVE"
}

Changes

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