API

AgentSkill

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/agent_skills create Skills added
POST /api/v1/organizations/{organization_id}/agent_skills/preview create Skills found
GET /api/v1/organizations/{organization_id}/agent_skills/{id} load Skill
GET /api/v1/organizations/{organization_id}/agent_skills/marketplace load Matching plugins or skills
GET /api/v1/organizations/{organization_id}/agent_skills load Skill library
DELETE /api/v1/organizations/{organization_id}/agent_skills/{id} remove Updated library
PUT /api/v1/organizations/{organization_id}/agent_skills/{id}/audience update Updated skill

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

agent_skill, err := client.AgentSkill(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_skill)
created, err := client.AgentSkill(nil).Create(map[string]any{"organization_id": "example", "audience": map[string]any{}, "revision": "example", "skills": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.AgentSkill(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local agent_skill, err = client:AgentSkill():load({ organization_id = "example" })
local created, err = client:AgentSkill():create({ organization_id = "example", audience = {}, revision = "example", skills = {} })
local removed, err = client:AgentSkill():remove({ id = "example_id", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$agent_skill = $client->AgentSkill()->load(["organization_id" => "example"]);
$created = $client->AgentSkill()->create(["organization_id" => "example", "audience" => [], "revision" => "example", "skills" => []]);
$client->AgentSkill()->remove(["id" => "example_id", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

agent_skill = client.AgentSkill().load({"organization_id": "example"})
created = client.AgentSkill().create({ "organization_id": "example", "audience": {}, "revision": "example", "skills": [] })
client.AgentSkill().remove({"id": "example_id", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

agent_skill = client.AgentSkill.load({ "organization_id" => "example" })
created = client.AgentSkill.create({ "organization_id" => "example", "audience" => {}, "revision" => "example", "skills" => [] })
client.AgentSkill.remove({ "id" => "example_id", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const agent_skill = await client.AgentSkill().load({ organization_id: "example" })
const created = await client.AgentSkill().create({ organization_id: "example", audience: {}, revision: "example", skills: [] })
await client.AgentSkill().remove({ id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
agents array Yes Active V2 agents the viewer can see whose owner is still a member
audience object Yes Audience
can_manage_library boolean Yes Can Manage Library
content string Yes The skill's SKILL.md
files array Yes Files
id string No Id
marketplace string No Marketplace
pending boolean Yes Some agent is still applying a change; check again shortly
plugin string No The marketplace entry id
revision string Yes The commit SHA returned by preview
skill object Yes Skill
skills array Yes Skills
source string No owner/repo, a GitHub or skills.sh link, or npx skills add owner/repo [--skill NAME ...]

create

POST /api/v1/organizations/{organization_id}/agent_skills

Operation ID: post_api_v1_organizations_organization_id_agent_skills.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

The request body is object and object.

Responses

200: Skills added

application/json

Property Type Required Description
agents array of object Yes Active V2 agents the viewer can see whose owner is still a member
agents[].avatar string,null Yes
agents[].can_manage boolean Yes
agents[].id string Yes
agents[].name string Yes
can_manage_library boolean Yes
pending boolean Yes Some agent is still applying a change; check again shortly
skills array of object Yes
skills[].added_at string (date-time) Yes
skills[].added_by string,null Yes
skills[].agents array of object Yes
skills[].agents[].agent_id string Yes
skills[].agents[].delivery_error string,null Yes
skills[].agents[].delivery_state enum: pending, installed, disabled, failed, null Yes
skills[].agents[].effective boolean Yes
skills[].agents[].enabled boolean,null Yes The agent's own choice; null follows the default
skills[].audience enum: all, selected Yes all while every listed agent has it and new agents get it
skills[].description string Yes
skills[].enabled_agent_count integer Yes Listed agents the skill is on for
skills[].enabled_by_default boolean Yes New agents get the skill. With audience all, so does every agent that has not chosen otherwise
skills[].failed_agent_count integer Yes Listed agents where delivery failed
skills[].files_count integer Yes
skills[].id string Yes
skills[].name string Yes
skills[].revision string Yes
skills[].source_kind enum: github, skills_sh, claude, cursor, codex Yes
skills[].source_label string Yes
skills[].source_url string Yes
401: Authentication required
403: Only organization admins can change the library
404: Organization or feature not found
422: Invalid source, skill choice, or a skill already in the library
502: Bad gateway
503: GitHub or the marketplace is unavailable

POST /api/v1/organizations/{organization_id}/agent_skills/preview

Operation ID: preview_api_v1_organization_agent_skills.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
marketplace enum: skills_sh, claude, cursor, codex No
plugin string No The marketplace entry id
source string No owner/repo, a GitHub or skills.sh link, or npx skills add owner/repo [--skill NAME ...]

Responses

200: Skills found

application/json

Property Type Required Description
skills array of object Yes
skills[].description string Yes
skills[].files_count integer Yes
skills[].name string Yes
skills[].problem string,null Yes Why the skill can't be added
source object Yes
source.kind enum: github, skills_sh, claude, cursor, codex Yes
source.label string Yes
source.repository string Yes
source.revision string Yes
source.url string Yes
401: Authentication required
403: Only organization admins can change the library
404: Organization or feature not found
422: Unsupported source or no skills found
502: Bad gateway
503: GitHub or the marketplace is unavailable

load

GET /api/v1/organizations/{organization_id}/agent_skills/{id}

Operation ID: api_v1_organization_agent_skill.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Skill

application/json

Property Type Required Description
agents array of object Yes Active V2 agents the viewer can see whose owner is still a member
agents[].avatar string,null Yes
agents[].can_manage boolean Yes
agents[].id string Yes
agents[].name string Yes
can_manage_library boolean Yes
content string Yes The skill's SKILL.md
files array of object Yes
files[].bytes integer Yes
files[].path string Yes
pending boolean Yes
skill object Yes
skill.added_at string (date-time) Yes
skill.added_by string,null Yes
skill.agents array of object Yes
skill.agents[].agent_id string Yes
skill.agents[].delivery_error string,null Yes
skill.agents[].delivery_state enum: pending, installed, disabled, failed, null Yes
skill.agents[].effective boolean Yes
skill.agents[].enabled boolean,null Yes The agent's own choice; null follows the default
skill.audience enum: all, selected Yes all while every listed agent has it and new agents get it
skill.description string Yes
skill.enabled_agent_count integer Yes Listed agents the skill is on for
skill.enabled_by_default boolean Yes New agents get the skill. With audience all, so does every agent that has not chosen otherwise
skill.failed_agent_count integer Yes Listed agents where delivery failed
skill.files_count integer Yes
skill.id string Yes
skill.name string Yes
skill.revision string Yes
skill.source_kind enum: github, skills_sh, claude, cursor, codex Yes
skill.source_label string Yes
skill.source_url string Yes
401: Authentication required
403: Forbidden
404: Skill or feature not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{organization_id}/agent_skills/marketplace

Operation ID: marketplace_api_v1_organization_agent_skills.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
source query enum: skills_sh, claude, cursor, codex Yes
q query string No Search text for skills.sh, at least two characters; catalogs return every plugin

Responses

200: Matching plugins or skills

application/json

Property Type Required Description
items array of object Yes
items[].category string,null Yes
items[].description string Yes
items[].id string Yes
items[].installs integer,null Yes skills.sh install count
items[].name string Yes
items[].source_label string Yes
401: Authentication required
403: Forbidden
404: Organization or feature not found
422: Unknown marketplace
502: Bad gateway
503: The marketplace is unavailable

GET /api/v1/organizations/{organization_id}/agent_skills

Operation ID: api_v1_organization_agent_skills.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Skill library

application/json

Property Type Required Description
agents array of object Yes Active V2 agents the viewer can see whose owner is still a member
agents[].avatar string,null Yes
agents[].can_manage boolean Yes
agents[].id string Yes
agents[].name string Yes
can_manage_library boolean Yes
pending boolean Yes Some agent is still applying a change; check again shortly
skills array of object Yes
skills[].added_at string (date-time) Yes
skills[].added_by string,null Yes
skills[].agents array of object Yes
skills[].agents[].agent_id string Yes
skills[].agents[].delivery_error string,null Yes
skills[].agents[].delivery_state enum: pending, installed, disabled, failed, null Yes
skills[].agents[].effective boolean Yes
skills[].agents[].enabled boolean,null Yes The agent's own choice; null follows the default
skills[].audience enum: all, selected Yes all while every listed agent has it and new agents get it
skills[].description string Yes
skills[].enabled_agent_count integer Yes Listed agents the skill is on for
skills[].enabled_by_default boolean Yes New agents get the skill. With audience all, so does every agent that has not chosen otherwise
skills[].failed_agent_count integer Yes Listed agents where delivery failed
skills[].files_count integer Yes
skills[].id string Yes
skills[].name string Yes
skills[].revision string Yes
skills[].source_kind enum: github, skills_sh, claude, cursor, codex Yes
skills[].source_label string Yes
skills[].source_url string Yes
401: Authentication required
403: Forbidden
404: Organization or feature not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/agent_skills/{id}

Operation ID: delete_api_v1_organizations_organization_id_agent_skills_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Updated library

application/json

Property Type Required Description
agents array of object Yes Active V2 agents the viewer can see whose owner is still a member
agents[].avatar string,null Yes
agents[].can_manage boolean Yes
agents[].id string Yes
agents[].name string Yes
can_manage_library boolean Yes
pending boolean Yes Some agent is still applying a change; check again shortly
skills array of object Yes
skills[].added_at string (date-time) Yes
skills[].added_by string,null Yes
skills[].agents array of object Yes
skills[].agents[].agent_id string Yes
skills[].agents[].delivery_error string,null Yes
skills[].agents[].delivery_state enum: pending, installed, disabled, failed, null Yes
skills[].agents[].effective boolean Yes
skills[].agents[].enabled boolean,null Yes The agent's own choice; null follows the default
skills[].audience enum: all, selected Yes all while every listed agent has it and new agents get it
skills[].description string Yes
skills[].enabled_agent_count integer Yes Listed agents the skill is on for
skills[].enabled_by_default boolean Yes New agents get the skill. With audience all, so does every agent that has not chosen otherwise
skills[].failed_agent_count integer Yes Listed agents where delivery failed
skills[].files_count integer Yes
skills[].id string Yes
skills[].name string Yes
skills[].revision string Yes
skills[].source_kind enum: github, skills_sh, claude, cursor, codex Yes
skills[].source_label string Yes
skills[].source_url string Yes
401: Authentication required
403: Only organization admins can change the library
404: Skill or feature not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/agent_skills/{id}/audience

Operation ID: audience_api_v1_organization_agent_skill.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
agent_ids array of string No With selected, the agents to have the skill
mode enum: all, selected Yes all: every agent now and later. selected: exactly agent_ids among agents the viewer manages
new_agents boolean No With selected, whether agents created from now on get it; agents that already exist are unaffected

Responses

200: Updated skill

application/json

Property Type Required Description
agents array of object Yes Active V2 agents the viewer can see whose owner is still a member
agents[].avatar string,null Yes
agents[].can_manage boolean Yes
agents[].id string Yes
agents[].name string Yes
can_manage_library boolean Yes
content string Yes The skill's SKILL.md
files array of object Yes
files[].bytes integer Yes
files[].path string Yes
pending boolean Yes
skill object Yes
skill.added_at string (date-time) Yes
skill.added_by string,null Yes
skill.agents array of object Yes
skill.agents[].agent_id string Yes
skill.agents[].delivery_error string,null Yes
skill.agents[].delivery_state enum: pending, installed, disabled, failed, null Yes
skill.agents[].effective boolean Yes
skill.agents[].enabled boolean,null Yes The agent's own choice; null follows the default
skill.audience enum: all, selected Yes all while every listed agent has it and new agents get it
skill.description string Yes
skill.enabled_agent_count integer Yes Listed agents the skill is on for
skill.enabled_by_default boolean Yes New agents get the skill. With audience all, so does every agent that has not chosen otherwise
skill.failed_agent_count integer Yes Listed agents where delivery failed
skill.files_count integer Yes
skill.id string Yes
skill.name string Yes
skill.revision string Yes
skill.source_kind enum: github, skills_sh, claude, cursor, codex Yes
skill.source_label string Yes
skill.source_url string Yes
401: Authentication required
403: Only organization admins change what new agents get
404: Skill, chosen agent or feature not found
422: Invalid audience
502: Bad gateway