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#
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.
curl "https://app.skillsplayground.com/api/v1/skills/@skillsplayground/getting-started"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"}}'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#
| Method | Path | Notes |
|---|---|---|
| GET | /auth/providers | Which sign-in methods this server has configured. |
| GET | /auth/google | Start Google OAuth. Hosted. |
| POST | /auth/magic-link/request | Email a sign-in link. Hosted. |
| GET, POST | /auth/magic-link/verify | Finish the magic link. |
| POST | /auth/register | Email and namespace. Self-host. Hosted registration mode can close this. |
| GET | /auth/me | Current user. |
| DELETE | /auth/me | Delete the account. |
| POST | /auth/logout | End the browser session. |
| POST, GET | /auth/tokens | Create or list API tokens. |
| DELETE | /auth/tokens/:id | Revoke a token you own. |
| POST | /auth/connection-tokens | Body name, allowedNamespaces, optional allowedSkills. |
| DELETE | /auth/connection-tokens/:id | Revoke a connection token you own. |
Skills#
| Method | Path | Notes |
|---|---|---|
| POST | /skills/publish | Body: namespace, skillName, version, metadata, bundle (skillMd, optional scripts, references, evalsYaml), optional visibility. |
| GET | /skills/:namespace/:name | Skill, versions, channels. Visibility applies. Anonymous callers see everyone skills. |
| GET | /skills/:namespace/:name/versions/:version | One version. |
| GET | /skills/:namespace/:name/versions/:version/bundle | Bundle download. Counted as an api use unless it is a CLI install, which is cli. |
| PATCH | /skills/:namespace/:name | Update visibility. Owner. |
| POST | /skills/:namespace/:name/fork | Copy into your namespace. Records forkedFrom. Does not overlay later upstream edits. |
| POST | /skills/rename | Fix an invalid name. Owner. skills fix-names calls this. |
| POST | /skills/:namespace/:name/report | Papercut report. |
| DELETE | /skills/:namespace/:name/versions/:version | Delete one version. That version number cannot be reused. |
| DELETE | /skills/:namespace/:name | Delete the skill. --force on the CLI is required when a channel still points at it. |
Channels#
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#
| Method | Path | Notes |
|---|---|---|
| GET | /search?q=&namespace=&tier=&limit=&offset= | Name matches rank first. Only skills the caller can see. |
| POST | /evals/suites | Body skillNamespace, skillName, version, results (caseId, passed, output, error, durationMs). One result per case in evals.yaml. |
| POST | /evals/results | Single-result upload. The promotion gate reads the newest suite. |
| GET | /evals/results/:namespace/:name | Stored results. |
| POST | /telemetry/events | One event or an array. See OpenTelemetry. |
| POST | /telemetry/otlp | OTLP/JSON resourceSpans. |
| GET | /metrics/top | Ranked skills. |
| GET | /metrics/:namespace/:name | Metrics 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.