Skip to main content
POST
Create a skill

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Body

application/json

The skill to create.

projectId
string
required

The unique identifier for the project that the skill belongs to.

builtinSlug
string

The unique identifier for the built-in skill. It contains only lowercase letters, numbers, and hyphens. It's required if source is builtin.

Example:

"my-skill-slug"

bundledTools
string[]

The referenceId values of the tools that are bundled with the skill. Each value must be a valid UUID, and the list can't contain duplicates.

compatibility
string

The compatibility information for the skill, up to 500 bytes.

description
string

A description of the skill, from 1 to 1024 bytes. It's required unless source is builtin.

instructions
string

The instructions of the skill. The value can't be empty. It's required unless source is builtin.

license
string

The license of the skill.

metadata
object

Custom key-value metadata for the skill.

name
string

The name of the skill. The name must be unique in the project, from 1 to 64 characters long, and contain only lowercase letters, numbers, and hyphens. It can't start or end with a hyphen. It's required unless source is builtin.

resources
object[]

The files that are bundled with the skill.

source
enum<string>

The way the skill is created. The allowed values are user and builtin. If you omit it or set it to user, the skill is created from the fields in the request body. If you set it to builtin, the skill is created from the built-in skill that builtinSlug identifies, and the API ignores the name, description, instructions, and other values in the body.

Available options:
user,
builtin
Example:

"user"

Response

Returns the created skill.

builtinSlug
string

The unique identifier for the built-in skill that this skill was created from. The field is present only if source is builtin.

bundledTools
string[]

The referenceId values of the tools that are bundled with the skill.

compatibility
string

The compatibility information for the skill.

createdAt
integer

The time when the skill was created, as a Unix timestamp in seconds.

createdBy
string

The unique identifier for the user who created the skill.

Example:

"507f1f77bcf86cd799439011"

description
string

A description of the skill.

id
string

The unique identifier for the skill.

Example:

"507f1f77bcf86cd799439011"

instructions
string

The instructions of the skill.

lastChangedAt
integer

The time when the skill was last changed, as a Unix timestamp in seconds.

lastChangedBy
string

The unique identifier for the user who last changed the skill.

Example:

"507f1f77bcf86cd799439011"

license
string

The license of the skill.

metadata
object

Custom key-value metadata for the skill.

name
string

The name of the skill.

organisationId
string

The unique identifier for the organization that the skill belongs to.

Example:

"507f1f77bcf86cd799439011"

projectId
string

The unique identifier for the project that the skill belongs to.

Example:

"507f1f77bcf86cd799439011"

referenceId
string

The UUID that identifies the skill in references, for example in the skillReferenceIds of an agent. The API generates it when the skill is created.

resources
object[]

The files that are bundled with the skill.

source
enum<string>

The origin of the skill. The possible values are user and builtin.

Available options:
user,
builtin
Example:

"user"