MetorialDocs

Skill Imports

A skill import is a queued import of skills from a repository or uploaded file.

The Skill Import object

skill_import.json
{
  "object": "skill.import",
  "id": "example_id",
  "status": "pending",
  "source": {
    "type": "public",
    "repository_url": "example_repository_url",
    "repository_name": "example_repository_name",
    "ref": "example_ref"
  },
  "error": "example_error",
  "items": [
    {
      "object": "skill.import.item",
      "status": "pending",
      "skill": {}
    },
    {
      "object": "skill.import.item",
      "status": "pending",
      "skill": {}
    }
  ],
  "started_at": "2026-11-28T12:54:04.130Z",
  "completed_at": "2026-11-28T12:54:04.130Z",
  "created_at": "2026-11-28T12:54:04.130Z"
}
object"skill.import"required
idstringrequired
status"pending" | "processing" | "completed" | "failed"required
errorstringrequirednullable
started_atdaterequirednullable
completed_atdaterequirednullable
created_atdaterequired

Endpoints

List skill imports

GET/skill-imports

Returns a paginated list of skill imports.

Query parameters

idstring or string[]optional

Only return skill imports with these IDs.

status"pending" | "processing" | "completed" | "failed" or "pending" | "processing" | "completed" | "failed"[]optional

Only return skill imports with one of these statuses.

Example request

curl -X GET "https://api.metorial.com/skill-imports" \
  -H "Authorization: Bearer metorial_sk_io2h4..."
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.skills.imports.list();

console.log(result.items);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.skills.imports.list()
print(result.items)

Get skill import

GET/skill-imports/:skill_import_id

Retrieves a skill import and its results.

Path parameters

skill_import_idstringrequired

The unique identifier for the skill_import

Example request

curl -X GET "https://api.metorial.com/skill-imports/ski_Rm4Mnheq2bfEPhBhP7SY" \
  -H "Authorization: Bearer metorial_sk_io2h4..."
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.skills.imports.get('ski_Rm4Mnheq2bfEPhBhP7SY');

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.skills.imports.get("ski_Rm4Mnheq2bfEPhBhP7SY")
print(result)

Create skill import

POST/skill-imports

Queues a skill import from a repository or uploaded file.

Request body

skill_group_idstringoptional

The ID of a skill group that every imported skill is added to.

Example request

curl -X POST "https://api.metorial.com/skill-imports" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer metorial_sk_io2h4..." \
  -d '{
  "source": {
    "type": "public",
    "repository_url": "example_repository_url",
    "ref": "example_ref"
  },
  "skill_group_id": "example_skill_group_id"
}'
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.skills.imports.create({
  "source": {
    "type": "public",
    "repositoryUrl": "example_repository_url",
    "ref": "example_ref"
  },
  "skillGroupId": "example_skill_group_id"
});

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.skills.imports.create(source={
  "type": "public",
  "repository_url": "example_repository_url",
  "ref": "example_ref"
}, skill_group_id="example_skill_group_id")
print(result)