Skip to content

API reference

The Skills API: addresses, authentication, scopes, errors and limits.

Applies to EngineCloud
View as Markdown
On this page
  1. Authentication
  2. Errors
  3. Lists

API: https://skills.api.sypnia.com/v1 Cloud, or <your registry>/v1 Engine.

Authentication

Reading public skills needs nothing. Everything else takes Authorization: Bearer <token>:

TokenCan
A Sypnia sessionwhat the signed-in person can do: the CLI after npx @sypnia/app login, and the console
readread and download an organization’s private skills
publishpublish versions of one skill, or of every skill of a publisher
adminchange a publisher’s settings, members, tokens and trusted publishers
A trusted-publishing tokenpublish one skill from its linked repository; lasts minutes

Tokens are created with an expiry. Some actions need a person: listing a skill publicly, publishing a new major of a public skill, yanking and changing visibility. A token used by an agent gets 403 person_required for those.

Errors

JSON
{ "error": { "code": "check_failed", "message": "1 check failed. Run: skills check ./espiga-pos-import", "findings": [{ "check": "manifest", "file": "scripts/clean.sh", "message": "not declared in touches.scripts" }] } }
StatusCodes
400invalid_request, invalid_package
401unauthorized
402insufficient_credits
403forbidden, person_required
404not_found
409version_exists, name_taken
410removed
413too_large
422check_failed, touches_need_major, name_reserved, name_confusable
429rate_limited (with retry-after)

Lists

Lists take limit (up to 100, default 20) and cursor, and answer { items, next }. Limits are on Limits.

  • Endpoints

    Skills, versions, downloads, resolving, publishers, tokens, trusted publishing, reports and keys.

  1. Authentication
  2. Errors
  3. Lists

    Search pages, sections and terms