Skip to main content
POST
Create a custom skill

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Path Parameters

Body

application/json
name
string
required
Maximum string length: 100
Example:

"Returns"

whenToUse
string
required
Maximum string length: 1000
Example:

"When a customer asks how to return an item."

instructions
string
required
Maximum string length: 10000
category
enum<string>
Available options:
sales,
customer-support,
returns,
catalog,
custom

Response

id
string
required
skillKey
string
required

Stable key used in URLs.

name
string
required
category
enum<string>
required
Available options:
sales,
customer-support,
returns,
catalog,
custom
whenToUse
string
required
instructions
string
required
isEnabled
boolean
required
source
string
required

user for custom skills, otherwise where it came from.

Example:

"user"

templateKey
string | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required