---
title: "Create a skill"
method: POST
path: "/api/agent_builder/skills"
tags: ["agent builder"]
---

# Create a skill

`POST /api/agent_builder/skills`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/agent_builder/skills</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Create a new user-defined skill. To learn more about Agent Builder skills, refer to the [skills documentation](https://www.elastic.co/docs/explore-analyze/ai-features/agent-builder/skills).<br/><br/>[Required authorization] Route required privileges: agentBuilder:manageSkills.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `content` string, required — Skill instructions content (markdown).
  - `description` string, required — Description of what the skill does.
  - `id` string, required — Unique identifier for the skill.
  - `name` string, required — Human-readable name for the skill.
  - `referenced_content` object[]
    - `content` string, required — Content of the reference.
    - `name` string, required — Name of the referenced content.
    - `relativePath` string, required — Relative path of the referenced content.
  - `tool_ids` string[] — Tool IDs from the tool registry that this skill references.

## Response `200`

Indicates a successful response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
