mistralM

Docs

sideBar

Beta Skills

(beta) Skills API.

GET /v2/skills

ListSkills

ListSkills

Parameters

pageSize
int32query
pageToken
stringquery
alias
stringquery
fields
array<string>query

Projection over each listed Skill. definition.description is the only definition path a list accepts; body and assets are read one skill at a time with GetSkill.

sort.field
"list_sort_field_unspecified" | "list_sort_field_created_at" | "list_sort_field_last_modified_at" | "list_sort_field_name" | "list_sort_field_title"query

Defaults to created_at when omitted.

sort.direction
"list_sort_direction_unspecified" | "list_sort_direction_asc" | "list_sort_direction_desc"query

Defaults to descending for timestamp fields and ascending for text fields.

sort_by
stringquery

REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.

sort_direction
stringquery

REST-friendly alias for sort.direction. Supported values: asc, desc.

Responses

Success

data
array<Skill>
Skill
aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1
nextPageToken
string

POST /v2/skills

CreateSkill

CreateSkill

Request Example

{
  "definition": {},
  "name": "ipsum eiusmod"
}

Request Body

aliases
array<string>

Aliases pointing to this version.

definition
SkillDefinition* required

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

name
string* required

Stable object name.

notes
string | null

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
workspaceRelation
"share_relation_unspecified" | "reader" | "writer"

Relation a subject holds on a shared registry object.

Responses

Success

aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1

GET /v2/skills/{skill_id}

GetSkill

GetSkill

Parameters

skill_id
stringpath* required
version
int32query
alias
stringquery
fields
array<string>query

Responses

Success

aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1

DELETE /v2/skills/{skill_id}

DeleteSkill

DeleteSkill

Parameters

skill_id
stringpath* required

Responses

Success

PATCH /v2/skills/{skill_id}

UpdateSkill

UpdateSkill

Parameters

skill_id
stringpath* required

Request Example

{}

Request Body

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
workspaceRelation
"share_relation_unspecified" | "reader" | "writer"

Relation a subject holds on a shared registry object.

Responses

Success

aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1

GET /v2/skills/{skill_id}/versions

ListSkillVersions

ListSkillVersions

Parameters

skill_id
stringpath* required

Responses

Success

data
array<SkillVersion>
SkillVersion
aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

notes
string

Notes for this version.

version
int32

Example:

1

POST /v2/skills/{skill_id}/versions

CreateSkillVersion

CreateSkillVersion

Parameters

skill_id
stringpath* required

Request Example

{
  "definition": {}
}

Request Body

aliases
array<string>

Aliases pointing to this version.

definition
SkillDefinition* required

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

notes
string | null

Notes for this version.

Responses

Success

deduplicated
boolean

Example:

false
version
int32

Example:

1

GET /v2/skills/{skill_id}/versions/{version}

GetSkillVersion

GetSkillVersion

Parameters

skill_id
stringpath* required
version
int32path* required
fields
array<string>query

Responses

Success

aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1

PATCH /v2/skills/{skill_id}/versions/{version}

UpdateSkillVersionMetadata

UpdateSkillVersionMetadata

Parameters

skill_id
stringpath* required
version
int32path* required

Request Example

{}

Request Body

aliases
AliasList

Presence wrapper for a set of alias labels on update RPCs. As a message field it carries presence, so callers can distinguish "leave aliases unchanged" (field omitted) from "clear all aliases" (field set, empty values).

AliasList

Presence wrapper for a set of alias labels on update RPCs. As a message field it carries presence, so callers can distinguish "leave aliases unchanged" (field omitted) from "clear all aliases" (field set, empty values).

values
array<string>
notes
string | null

Notes for this version.

Responses

Success

aliases
array<string>

Aliases pointing to this version.

createdAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
definition
SkillDefinition

Versioned skill content.

SkillDefinition

Versioned skill content.

Additional files available to the skill.

raw_content
isExecutable
boolean
rawContent
string* required
text_content
isExecutable
boolean
textContent
string* required
body
string

Skill body content.

description
string

Model-facing trigger and usage description.

id
string
latestVersion
int32

Latest version number.

Example:

1
name
string

Stable object name.

notes
string

Notes for this version.

sharingScope
"sharing_scope_unspecified" | "private" | "workspace"
updatedAt
date-time

RFC 3339 timestamp.

Examples:

1s
1.000340012s
version
int32

Example:

1