Open app
Use
On this page

REST API

Hosted base URL is https://app.skillsplayground.com/api/v1. Send the API token as Authorization: Bearer. The CLI token and the browser session are both accepted where a route requires auth.

Routes below are paths after /api/v1. The worker also answers GET /health. Examples use the hosted origin. Replace the token with one from Account settings. Do not commit it.

Examples#

search
curl "https://app.skillsplayground.com/api/v1/search?q=getting-started"

A public hit today is @skillsplayground/getting-started. q=commit returns @skillsplayground/commit-message. q=debug returns @skillsplayground/systematic-debugging. q=deploy returns @skillsplayground/deploy-cloudflare-workers. q=postgres returns @skillsplayground/postgres-migrations and @skillsplayground/postgres-query-tuning. q=code review returns @skillsplayground/code-review.

get skill
curl "https://app.skillsplayground.com/api/v1/skills/@skillsplayground/getting-started"
publish
curl -X POST https://app.skillsplayground.com/api/v1/skills/publish \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"namespace":"@you","skillName":"review","version":"1.0.0","metadata":{"name":"review","description":"Review a change"},"bundle":{"skillMd":"---\nname: review\ndescription: Review a change\n---\n# Review\n"}}'
promote
curl -X POST https://app.skillsplayground.com/api/v1/channels/promote \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"namespace":"@you","skillName":"review","version":"1.0.0","channel":"dev"}'

@ in the path can be written as %40 if your client requires it. Publish and promote need skills:write. Promote to prod also needs the owner or admin rule in Troubleshooting.

Auth#

MethodPathNotes
GET/auth/providersWhich sign-in methods this server has configured.
GET/auth/googleStart Google OAuth. Hosted.
POST/auth/magic-link/requestEmail a sign-in link. Hosted.
GET, POST/auth/magic-link/verifyFinish the magic link.
POST/auth/registerEmail and namespace. Self-host. Hosted registration mode can close this.
GET/auth/meCurrent user.
DELETE/auth/meDelete the account.
POST/auth/logoutEnd the browser session.
POST, GET/auth/tokensCreate or list API tokens.
DELETE/auth/tokens/:idRevoke a token you own.
POST/auth/connection-tokensBody name, allowedNamespaces, optional allowedSkills.
DELETE/auth/connection-tokens/:idRevoke a connection token you own.

Skills#

MethodPathNotes
POST/skills/publishBody: namespace, skillName, version, metadata, bundle (skillMd, optional scripts, references, evalsYaml), optional visibility.
GET/skills/:namespace/:nameSkill, versions, channels. Visibility applies. Anonymous callers see everyone skills.
GET/skills/:namespace/:name/versions/:versionOne version.
GET/skills/:namespace/:name/versions/:version/bundleBundle download. Counted as an api use unless it is a CLI install, which is cli.
PATCH/skills/:namespace/:nameUpdate visibility. Owner.
POST/skills/:namespace/:name/forkCopy into your namespace. Records forkedFrom. Does not overlay later upstream edits.
POST/skills/renameFix an invalid name. Owner. skills fix-names calls this.
POST/skills/:namespace/:name/reportPapercut report.
DELETE/skills/:namespace/:name/versions/:versionDelete one version. That version number cannot be reused.
DELETE/skills/:namespace/:nameDelete the skill. --force on the CLI is required when a channel still points at it.

Channels#

http
POST /api/v1/channels/promote
{
  "namespace": "@payments",
  "skillName": "deploy",
  "version": "2.4.0",
  "channel": "prod",
  "requireEvals": true
}

requireEvals omitted: the server checks evals only when the version has evals.yaml. true always checks. false skips, with the prod restriction in Promotion and evals.

POST /api/v1/channels/rollback with namespace, skillName, channel, and optional version. GET /api/v1/channels/:namespace/:name/channels/:channel reads the channel. Private skills require a caller who can see them.

Search, evals, metrics#

MethodPathNotes
GET/search?q=&namespace=&tier=&limit=&offset=Name matches rank first. Only skills the caller can see.
POST/evals/suitesBody skillNamespace, skillName, version, results (caseId, passed, output, error, durationMs). One result per case in evals.yaml.
POST/evals/resultsSingle-result upload. The promotion gate reads the newest suite.
GET/evals/results/:namespace/:nameStored results.
POST/telemetry/eventsOne event or an array. See OpenTelemetry.
POST/telemetry/otlpOTLP/JSON resourceSpans.
GET/metrics/topRanked skills.
GET/metrics/:namespace/:nameMetrics for one skill.
GET/metrics/namespace/:namespace?days=&unused=Team usage. Members only.

Teams#

POST /teams creates a team (name and slug, which becomes @slug). GET /teams lists yours. GET /teams/:slug shows members and invites. PATCH /teams/:slug renames the display name. The namespace stays. POST /teams/:slug/invites invites by email with role member, admin, or owner. POST /teams/invites/:token/accept accepts. PATCH /teams/:slug/members/:userId changes a role. DELETE removes a member or invite. GET /teams/:slug/audit is the admin audit log. DELETE /teams/:slug deletes the team.

Skills PlaygroundHome · Docs · Pricing · Terms · Privacy