Skip to content
Primary navigation

Skills

Create a new skill.
client.Skills.New(ctx, body) (*Skill, error)
POST/skills
List all skills for the current project.
client.Skills.List(ctx, query) (*CursorPage[Skill], error)
GET/skills
Get a skill by its ID.
client.Skills.Get(ctx, skillID) (*Skill, error)
GET/skills/{skill_id}
Update the default version pointer for a skill.
client.Skills.Update(ctx, skillID, body) (*Skill, error)
POST/skills/{skill_id}
Delete a skill by its ID.
client.Skills.Delete(ctx, skillID) (*DeletedSkill, error)
DELETE/skills/{skill_id}
ModelsExpand Collapse
type DeletedSkill struct{…}
ID string
Deleted bool
Object SkillDeleted
type Skill struct{…}
ID string

Unique identifier for the skill.

CreatedAt int64

Unix timestamp (seconds) for when the skill was created.

DefaultVersion string

Default version for the skill.

Description string

Description of the skill.

LatestVersion string

Latest version for the skill.

Name string

Name of the skill.

Object Skill

The object type, which is skill.

type SkillList struct{…}
Data []Skill

A list of items

ID string

Unique identifier for the skill.

CreatedAt int64

Unix timestamp (seconds) for when the skill was created.

DefaultVersion string

Default version for the skill.

Description string

Description of the skill.

LatestVersion string

Latest version for the skill.

Name string

Name of the skill.

Object Skill

The object type, which is skill.

FirstID string

The ID of the first item in the list.

HasMore bool

Whether there are more items available.

LastID string

The ID of the last item in the list.

Object List

The type of object returned, must be list.

SkillsContent

Download a skill zip bundle by its ID.
client.Skills.Content.Get(ctx, skillID) (*Response, error)
GET/skills/{skill_id}/content

SkillsVersions

Create a new immutable skill version.
client.Skills.Versions.New(ctx, skillID, body) (*SkillVersion, error)
POST/skills/{skill_id}/versions
List skill versions for a skill.
client.Skills.Versions.List(ctx, skillID, query) (*CursorPage[SkillVersion], error)
GET/skills/{skill_id}/versions
Get a specific skill version.
client.Skills.Versions.Get(ctx, skillID, version) (*SkillVersion, error)
GET/skills/{skill_id}/versions/{version}
Delete a skill version.
client.Skills.Versions.Delete(ctx, skillID, version) (*DeletedSkillVersion, error)
DELETE/skills/{skill_id}/versions/{version}
ModelsExpand Collapse
type DeletedSkillVersion struct{…}
ID string
Deleted bool
Object SkillVersionDeleted
Version string

The deleted skill version.

type SkillVersion struct{…}
ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

type SkillVersionList struct{…}

A list of items

ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

FirstID string

The ID of the first item in the list.

HasMore bool

Whether there are more items available.

LastID string

The ID of the last item in the list.

Object List

The type of object returned, must be list.

SkillsVersionsContent

Download a skill version zip bundle.
client.Skills.Versions.Content.Get(ctx, skillID, version) (*Response, error)
GET/skills/{skill_id}/versions/{version}/content