# Import Skill Source

Source: https://agenta.ai/docs/reference/api/import-skill-source

`POST /skills/sources`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Import selected skills from a repo/marketplace as registry skills.

Each selected valid candidate becomes an ordinary skill workflow
(v1); provenance is recorded so sync can offer new versions later.
Snapshot-only — nothing runs from the source.

## Request body schema

Content type: `application/json` (required)

- `repo_url` (string, required)
- `ref` (string, nullable)
- `paths` (array of string, nullable)

## Response schemas

### 200: Successful Response

- `repo_url` (string, required)
- `commit_sha` (string, nullable)
- `imported` (array of object) Default: `[]`.
  - `path_in_repo` (string, required)
  - `workflow_id` (string, nullable)
  - `workflow_slug` (string, nullable)
  - `name` (string, nullable)
  - `description` (string, nullable)
- `skipped` (array of object) Default: `[]`.
  - `path_in_repo` (string, required)
  - `issues` (array of object) Default: `[]`.
    - `code` (string, required)
    - `message` (string, required)
    - `path` (string, nullable)

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
