Connector API
Skills
A skill is the unit you import, configure, and share. The lifecycle is: import → configure(set an LLM key or hosted model) → activate. Once active, the skill can serve sessions.
Import a skill
A URL import reads GitHub through this account’s installation of the Socialistic GitHub App, so connecting it once in the Creator Console is a prerequisite: without it the import answers 403 GITHUB_NOT_CONNECTED. There is no interactive connect step on this surface. Archive upload is the path that needs no GitHub connection at all.
Once connected, point at any GitHub repo that installation can read, or upload the skill file directly. A URL import downloads the repository at the resolved commit and stores it as the skill’s archive, attached as a code capability. No SKILL.md is required: when the skill root has one, its frontmatter name, description, requires and connectorsseed the skill; otherwise the description comes from the repository’s GitHub metadata. A .socialistic/capabilities.json beside it declares the non-secret capabilities applied at import (a platform-served model, a creator margin, MCP endpoints without headers, env variable names as ${VAR} placeholders); an entry that does not validate is skipped and never fails the import. Point at a subdirectory (/tree/…) to package just that subtree; without a SKILL.mdname the skill’s name then comes from that folder, and its slug always does, so several skills imported from one repository are told apart. A whole-repository import is named after the repository, and a direct URL to SKILL.md uses its containing directory. Pass slug to choose the readable part of the slug yourself; a short random suffix is always appended (<slug>-1a2b3c), and a slug cannot be changed after import. Uploading an archive identical to one already in your account returns that existing skill, slug unchanged. Archive uploads are the other path, and those still require a SKILL.md at the archive root.
curl -X POST https://connector.socialistic.ai/v1/skills/import \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "github_url": "https://github.com/<org>/<repo>" }'POST/v1/skills/importmultipartskill:create
Import a skill into your account from a GitHub URL (JSON) or an uploaded archive (multipart). The result is always YOUR OWN skill — a GitHub URL here makes your copy, never the path's canonical skill (for that, use POST /v1/skills/github-import); `as_copy` is accepted and means the same. A GitHub URL is imported as a code capability: any reachable repo works and no SKILL.md is required. When the skill root has a SKILL.md, its frontmatter `name`, `description`, `requires` and `connectors` seed the skill's name, description and declared requirements; otherwise the description comes from the repository itself. A `.socialistic/capabilities.json` at the skill root ({ version: 1, capabilities: [{ type, config }] }) declares non-secret capabilities applied at import — inference (`hosted_model_id`, platform-served only), billing (`creator_margin_bps`), env (`variables` whose values must be ${VAR} placeholders: the names become requirements, no value is stored), mcp (public endpoints without headers; one whose headers are ${VAR} placeholders is not attached, its variables become requirements) and the generation/understanding types (`model`, platform-served only). An entry that does not validate is skipped; it never fails the import. A URL pointing at a subdirectory (/tree/<ref>/<path>) packages that subdirectory, and without a SKILL.md name the skill is named after that folder; a whole-repository import is named after the repository, and a direct URL to SKILL.md uses that file's containing directory. The slug comes from the folder or repository name. Pass `slug` (JSON field or multipart form field) to choose the readable part of the slug; a short random suffix is always appended, and a slug cannot be changed after import. Uploading an archive identical to one already in your account returns that existing skill, with its existing slug — a `slug` passed then is not applied. Archive uploads are the other path and DO require a SKILL.md at the archive root. Optionally pass hosting and consumer_billing to configure in the same call; when omitted the skill is created with auto-hosted defaults. A `hosting.hosted_model_id` the platform does not serve answers 400 INVALID_MODEL before anything is imported. The check reads the platform's model catalog; in the rare case that cannot be read, the id is accepted unchecked and a model that cannot run surfaces as MODEL_UNRESOLVED when a session starts. GitHub-URL imports require the account to have the GitHub App connected (once, at socialistic.ai Creator Console) — otherwise 403 GITHUB_NOT_CONNECTED. The repo does NOT have to be covered by that installation: any installation token reads public repositories anywhere on GitHub, which is what most skill URLs are. Coverage matters only for PRIVATE repos, which answer 403 GITHUB_REPO_NOT_ACCESSIBLE until the App is installed on them; archive uploads need no GitHub connection. 429 GITHUB_RATE_LIMITED is retryable.
Request
| Field | Type | Description |
|---|---|---|
github_url | string (uri) | |
display_nameoptional | string | |
descriptionoptional | string | |
file_indicateoptional | string | |
text_indicateoptional | string | |
as_copyoptional | boolean | |
hostingoptional | object | |
hosting.mode | "byo" | "hosted" | "byos" | |
hosting.hosted_model_idoptional | string | |
hosting.byos_provideroptional | "openai" | "anthropic" | "google" | |
hosting.byos_connection_idoptional | string (uuid) | |
hosting.byos_model_idoptional | string | |
consumer_billingoptional | object | |
consumer_billing.creator_margin_bps | integer | null | |
slugoptional | string | Suggested slug base (lowercase letters, digits, dashes); its first 40 characters are kept and a short random suffix is appended |
Response
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
This import always makes a skill of your own, even from someone else’s repository. To get the one skill everyone shares for a GitHub path, import by link instead.
Import by GitHub link
Every GitHub path (repository plus subpath) has at most one canonicalskill, and it belongs to the repository’s author, not to whoever imported it. Send the link alone: a path that is already listed answers 200 with existing: true right away (no GitHub App needed); an unlisted public path is imported for its author and answers 201. A fork is attributed to its upstream. A private repository, or a path whose author deleted its skill, is imported as your own copy (canonical: false). New imports are limited per hour; links already listed are not counted.
Every answer carries provisioning_status and requirements. A canonical skill held for an author not yet on the platform is shaped by the platform’s provisioner shortly after import; read where it stands with GET /v1/skills/:skillId/provisioning— its status and each attempt, with the attempt’s runtime ids — and follow a run as it happens with a stock toscana-client whose gateway is that same path (streamRunEvents, fetchHistory).
curl -X POST https://connector.socialistic.ai/v1/skills/github-import \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "url": "https://github.com/<org>/<repo>/tree/main/skills/<name>" }'POST/v1/skills/github-importskill:import
Get the skill for a GitHub link, importing it if it is not listed yet. Body: { url } only. Every GitHub path (repository + subpath) has at most one canonical skill, attributed to the repository's author — not to you. The URL is normalized the way imports key it (case, a trailing .git or slash, www., /tree/<ref>/… and /blob/<ref>/…/SKILL.md; the ref is not part of the identity, a canonical skill follows the default branch). A listed path answers 200 with existing: true — no GitHub call, no GitHub App connection needed; a deactivated canonical skill is still the answer. An unlisted public path is imported as the canonical skill of its author (or, while the author is not on the platform, of an account holding it for them) and answers 201 with existing: false and owned: false (unless the repository is yours). A fork is attributed to its top upstream; a private repository, or a path whose canonical skill its author deleted, is imported as your own copy (201, canonical: false). Importing needs the GitHub App connected to your account (403 GITHUB_NOT_CONNECTED otherwise). New skills are limited per caller per hour (default 200; 429 IMPORT_RATE_LIMITED; answers that already existed are not counted), on top of the per-key request limit. The skill is read and configured the same way as POST /v1/skills/import (SKILL.md frontmatter, .socialistic/capabilities.json). Every answer carries `provisioning_status`, read from the platform provisioner's runs — a canonical skill held for an author not yet on the platform is shaped by the provisioner after import (pending → running → ready | failed; not_required otherwise), and an answer of pending always comes with its next attempt started, for a skill listed before the provisioner existed too — and `requirements`, the env variable names the skill declares that are not configured yet. To follow provisioning, read GET /v1/skills/:skillId/provisioning (its status and attempts, or the provisioner run's own stream), or repeat the same call: an existing path answers 200 and spends no creation budget. share_url / embed_url carry utm_source=connector&utm_medium=api (utm_source=mcp when called as an MCP tool). Errors: 400 INVALID_REQUEST (unknown key or not a URL), 422 INVALID_GITHUB_URL / REPO_UNREACHABLE / PACK_TOO_LARGE, 429 GITHUB_RATE_LIMITED (retryable), 502 UPSTREAM_ERROR.
Request
| Field | Type | Description |
|---|---|---|
url | string (uri) |
Response
| Field | Type | Description |
|---|---|---|
slug | string | |
name | string | |
description | string | null | |
share_url | string | |
embed_url | string | |
canonical | boolean | |
source | object | null | |
source.repo | string | |
source.subpath | string | null | |
creator | object | |
creator.name | string | |
creator.on_platform | boolean | |
creator.source | object | null | |
creator.source.provider | "github" | |
creator.source.login | string | |
creator.source.type | "User" | "Organization" | |
existing | boolean | |
owned | boolean | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
GET/v1/skills/:skillId/provisioningskill:import
Where a skill's provisioning stands — one answer, read now from the platform provisioner's runs; nothing here waits or polls. The provisioner is a built-in skill the platform runs as its own official account; each attempt is one session on the agent runtime. It first starts the provisioner's next attempt for a skill it should be acting on (one imported before it existed included), so `pending` never means nothing is coming. Visible for exactly the skills github-import answers with — a live canonical skill, or one of your own (by id or slug); anything else is 404 SKILL_NOT_FOUND. Answers { skill_id, status, terminal, attempts, toscana_gateway_path, requirements }; `attempts` lists each attempt in order with its state (dispatching | queued | running | completed | failed | cancelled | missing | dispatch_failed), when it was dispatched, when its run ended and why, and its runtime ids (toscana_session_id, toscana_run_id); a skill gets 3 attempts before it is failed; terminal: false means it may still change. This path is also a read-only Toscana gateway for the skill's provisioner sessions: set toscana_gateway_path (this path) as a stock @tinkerlandai/toscana-client's gatewayUrl (createToscanaServerClient, issuer = your key id, serviceSecret = your key secret) and call streamRunEvents({ toscanaSessionId: toscana_session_id, toscanaRunId: toscana_run_id }) or fetchHistory(toscana_session_id). The platform shows its own provisioner sessions to whoever may see the skill; only stream/replay_chunks and stream/history are offered — no getRun, send_message, steer, cancel, tool calls or stream descriptor (the run's state is in `attempts`). Errors: 400 INVALID_REQUEST (any query key), 404 SKILL_NOT_FOUND.
Query parameters
object
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
skill_id | string | |
status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
terminal | boolean | |
attempts | array<object> | |
attempts[].attempt | integer | 1-based, in dispatch order |
attempts[].state | "dispatching" | "queued" | "running" | "completed" | "failed" | "cancelled" | "missing" | "dispatch_failed" | |
attempts[].dispatched_at | string | When the attempt's session was opened (ISO 8601) |
attempts[].ended_at | string | null | When its run ended, per the runtime; null while it runs, or when the runtime gave no end time |
attempts[].error_code | string | null | Why its run ended without completing, when it did |
attempts[].toscana_session_id | string | null | The attempt's session on the agent runtime — toscanaSessionId for a toscana-client on toscana_gateway_path (streamRunEvents, fetchHistory) |
attempts[].toscana_run_id | string | null | Its run on the agent runtime, once one was accepted — toscanaRunId for streamRunEvents on toscana_gateway_path |
toscana_gateway_path | string | Where a stock @tinkerlandai/toscana-client reads this skill's provisioner runs, relative to this API's origin — this endpoint itself, /v1/skills/{skill_id}/provisioning: set it as the client's gatewayUrl and call streamRunEvents or fetchHistory with an attempt's ids. Those two reads only, and only this skill's provisioner sessions |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
POST/v1/skills/:skillId/provisioning/v1/stream/replay_chunksskill:importAPI keyservice JWT
toscana-client streamRunEvents against the provisioning gateway: one of the skill's provisioner attempts (body sessionId, runId and optional lastChunkId — what streamRunEvents sends for toscanaSessionId / toscanaRunId / after, as `attempts` hands them out), its chunk stream relayed as-is from the agent runtime — the backlog, then the run as it happens; reconnect with lastChunkId past the server's time limit (about 300 s). Any other session is 404 SESSION_NOT_FOUND; a run not in that session 404 RUN_NOT_FOUND.
Request
| Field | Type | Description |
|---|---|---|
sessionId | string | |
lastChunkIdoptional | string | |
runIdoptional | string |
Response
No response body.
POST/v1/skills/:skillId/provisioning/v1/stream/historyskill:importAPI keyservice JWT
toscana-client fetchHistory against the provisioning gateway: one of the skill's provisioner attempts, its durable history relayed as-is (closes after the backlog). Any other session is 404 SESSION_NOT_FOUND.
Request
| Field | Type | Description |
|---|---|---|
sessionId | string |
Response
No response body.
List skills
Retrieve all skills in your account. Each item carries the same per-mode objects (byo, hosted, byos) as the detail endpoint. Plaintext keys are never returned. To find a subset, search instead.
GET/v1/skillsskill:read
List the skills in your account. Each item carries per-mode config (byo / hosted / byos); plaintext keys are never returned. To find a subset, use POST /v1/skills/search.
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
skills | array<object> | |
skills[].id | string (uuid) | |
skills[].slug | string | |
skills[].display_name | string | |
skills[].status | "active" | "inactive" | |
skills[].hosting_mode | "byo" | "hosted" | "byos" | null | |
skills[].shareable | boolean | |
skills[].cover_meta | object | |
skills[].cover_image_path | string | null | |
skills[].source_url | string | null | |
skills[].created_at | string | |
skills[].updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
skills[].byo | object | null | |
skills[].byo.base_url | string | null | |
skills[].byo.model_name | string | null | |
skills[].byo.key_last4 | string | null | |
skills[].byo.charge | object | |
skills[].byo.charge.prompt_credits_per_token | string | null | |
skills[].byo.charge.completion_credits_per_token | string | null | |
skills[].hosted | object | null | |
skills[].hosted.model_id | string | null | |
skills[].hosted.creator_margin_bps | integer | null | |
skills[].byos | object | null | |
skills[].byos.connection_id | string (uuid) | null | |
skills[].byos.provider | "openai" | "anthropic" | "google" | null | |
skills[].byos.model_id | string | null | |
skills[].byos.charge | object | |
skills[].byos.charge.prompt_credits_per_token | string | null | |
skills[].byos.charge.completion_credits_per_token | string | null |
Search skills
Find skills in your account — only your own — by rules that all have to hold: q (text in the display name, description or slug), source_url (an import source), and filters, each one { field, op, value } on a field from the table below with an operator that field allows. Sort with sort (created, updated, name) and order. Results are always paged: per_page defaults to 30 (max 100), page is 1-indexed, and total_count counts every match across pages. A field or operator outside the table, or a value of the wrong type, is refused with 400 INVALID_REQUEST— never silently dropped.
like / ilike take SQL patterns (% any run, _ one character; ilike ignores case). ne also matches a skill with no value for that field. in takes a list. Times are a date (YYYY-MM-DD, its UTC midnight) or an ISO-8601 timestamp with a zone.
To reuse an import instead of importing twice, pass its URL as source_url. Every spelling of the same source matches: /tree/<ref>/<path>, /blob/<ref>/<path>/SKILL.md and the raw.githubusercontent.com link to that file; for a whole repository, /<repo>, /<repo>.git and /<repo>/. Owner and repository ignore case; ref and path do not, and a different ref or path is a different source.
curl -X POST https://connector.socialistic.ai/v1/skills/search \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "source_url": "https://github.com/<org>/<repo>/tree/main/skills/<name>",
"filters": [
{ "field": "hosting_mode", "op": "in", "value": ["hosted", "byos"] },
{ "field": "created", "op": "gte", "value": "2026-10-01" },
{ "field": "name", "op": "ilike", "value": "%pdf%" }
],
"sort": "updated", "per_page": 50 }'| Field | Operators | Value | Meaning |
|---|---|---|---|
name | eq · ne · like · ilike · in | string · list of strings | Display name |
slug | eq · ne · like · ilike · in | string · list of strings | Slug (the share-page path) |
description | eq · ne · like · ilike · in | string · list of strings | Description |
hosted_model_id | eq · ne · like · ilike · in | string · list of strings | Platform-served (hosted) model id |
status | eq · ne · in | active | inactive · list of active | inactive | Sharing status |
hosting_mode | eq · ne · in | byo | hosted | byos · list of byo | hosted | byos | Hosting mode |
shareable | eq | boolean | Live to visitors (active with a complete serving config) |
created | gt · gte · lt · lte | date (YYYY-MM-DD) or ISO-8601 timestamp with zone | Created at |
updated | gt · gte · lt · lte | date (YYYY-MM-DD) or ISO-8601 timestamp with zone | Latest change to the skill, its current revision or that revision's capabilities |
POST/v1/skills/searchskill:read
Search the skills in your account — only your own. Rules combine with AND: `q` (text in display name, description and slug), `source_url` (an import source, matched across its spellings), and `filters`, each a { field, op, value } on a whitelisted field with the operators its type supports (see the field table). `sort` by created, updated or name; always paged (`page`, `per_page`, default 30, max 100) with `total_count` across all pages. A field or operator outside the whitelist, or a value of the wrong type, answers 400 INVALID_REQUEST; a `source_url` that names no GitHub source answers 400 INVALID_SOURCE_URL. Items have the same shape as GET /v1/skills.
Request
| Field | Type | Description |
|---|---|---|
qoptional | string | Case-insensitive text matched against the display name, description and slug |
source_urloptional | string | Skills imported from this GitHub source. Every spelling of the same source matches: …/tree/<ref>/<path>, …/blob/<ref>/<path>/SKILL.md and the raw.githubusercontent.com form; …/<repo>, …/<repo>.git and …/<repo>/ for a whole repository. Owner and repo ignore case; ref and path do not. A different ref or path is a different source. |
filtersoptional | array<object> | { field, op, value } rules, combined with AND — see the field table |
sortoptional | "created" | "updated" | "name" | Default created |
orderoptional | "asc" | "desc" | Default desc for created / updated, asc for name |
per_pageoptional | integer | Default 30, max 100 |
pageoptional | integer | 1-indexed |
Response
| Field | Type | Description |
|---|---|---|
skills | array<object> | |
skills[].id | string (uuid) | |
skills[].slug | string | |
skills[].display_name | string | |
skills[].status | "active" | "inactive" | |
skills[].hosting_mode | "byo" | "hosted" | "byos" | null | |
skills[].shareable | boolean | |
skills[].cover_meta | object | |
skills[].cover_image_path | string | null | |
skills[].source_url | string | null | |
skills[].created_at | string | |
skills[].updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
skills[].byo | object | null | |
skills[].byo.base_url | string | null | |
skills[].byo.model_name | string | null | |
skills[].byo.key_last4 | string | null | |
skills[].byo.charge | object | |
skills[].byo.charge.prompt_credits_per_token | string | null | |
skills[].byo.charge.completion_credits_per_token | string | null | |
skills[].hosted | object | null | |
skills[].hosted.model_id | string | null | |
skills[].hosted.creator_margin_bps | integer | null | |
skills[].byos | object | null | |
skills[].byos.connection_id | string (uuid) | null | |
skills[].byos.provider | "openai" | "anthropic" | "google" | null | |
skills[].byos.model_id | string | null | |
skills[].byos.charge | object | |
skills[].byos.charge.prompt_credits_per_token | string | null | |
skills[].byos.charge.completion_credits_per_token | string | null | |
total_count | integer | Skills matching every rule, across all pages |
page | integer | |
per_page | integer |
Match public skills
Find skills anyone has shared — not only your own — by deterministic string rules that all have to hold. { "field": "source", "op": "eq", "value": <GitHub URL> } is normalized the way imports key a source (case, .git, a trailing slash, the branch, a link to SKILL.md): a URL with a path returns that path’s canonical skill and its copies, a bare repository everything listed under it. Nothing is looked up on GitHub — no result means the path is not listed. { "field": "text", "op": "contains", "value": "pdf" } matches a literal substring (at least 2 characters, % and _ are plain characters) of the name, the description or any translation of them, ignoring case. Canonical skills come first, then the newest. Results are paged (per_page default 20, max 50) and carry public fields only; share_url and embed_url are ready to paste and say they came through this API.
curl -X POST https://connector.socialistic.ai/v1/public/skills/match \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "filters": [
{ "field": "source", "op": "eq", "value": "https://github.com/<org>/<repo>" },
{ "field": "text", "op": "contains", "value": "pdf" }
] }'POST/v1/public/skills/matchpublic:read
Deterministic string match over every PUBLIC skill on the platform (active, shareable, not deleted, not built-in) — not just yours (that is POST /v1/skills/search). `filters` combine with AND: { field: "source", op: "eq", value: <GitHub URL> } — normalized like an import (the repository's case, .git, branch, a SKILL.md link; a path inside the repository is case-sensitive); a URL with a path returns that path's canonical skill and its copies, a bare repository URL everything listed under it, and nothing is looked up on GitHub (not listed = no result). A skill's `source` is shown, and matched, only for a path that has a canonical skill: a private repository's path is never told; { field: "text", op: "contains", value } — a case-insensitive literal substring (% and _ match themselves) of the name, the description, or any translation of them; at least 2 characters. Canonical skills first, then newest first. Paged (`page`, `per_page` default 20, max 50) with `total_count`. Public fields only — never who imported a skill, money or session counts. share_url / embed_url carry utm_source=connector&utm_medium=api (utm_source=mcp when called as an MCP tool). An unknown field, operator or key answers 400 INVALID_REQUEST; a `source` that names no GitHub source answers 400 INVALID_SOURCE_URL. Read-only; shares the key's request limit.
Request
| Field | Type | Description |
|---|---|---|
filters | array<object> | |
pageoptional | integer | |
per_pageoptional | integer |
Response
| Field | Type | Description |
|---|---|---|
skills | array<object> | |
skills[].slug | string | |
skills[].name | string | |
skills[].description | string | null | |
skills[].share_url | string | |
skills[].embed_url | string | |
skills[].canonical | boolean | |
skills[].source | object | null | |
skills[].source.repo | string | |
skills[].source.subpath | string | null | |
skills[].creator | object | |
skills[].creator.name | string | |
skills[].creator.on_platform | boolean | |
skills[].creator.source | object | null | |
skills[].creator.source.provider | "github" | |
skills[].creator.source.login | string | |
skills[].creator.source.type | "User" | "Organization" | |
total_count | integer |
POST /v1/public/skills/search is reserved for relevance-ranked search and answers 501 NOT_IMPLEMENTED for now.
POST/v1/public/skills/searchpublic:read
Reserved for general (relevance-ranked) search over public skills. Not available yet: answers 501 NOT_IMPLEMENTED — use POST /v1/public/skills/match.
Request
| Field | Type | Description |
|---|---|---|
query | string |
Response
No response body.
Get skill detail
Returns the full config for a single skill. The response groups mode-specific fields into three objects — byo, hosted, byos — each null when that mode is not configured. hosted.creator_margin_bps is the margin you earn on top of what a run costs, in basis points (0 means you keep nothing); null means the platform default margin, which follows the platform as it changes. A hosted.model_id of null is likewise the platform default model. Send consumer_billing: { creator_margin_bps: null } to put a skill on the platform default margin. The plaintext LLM key is never returned; only byo.key_last4 is exposed.
GET/v1/skills/:skillIdskill:read
Get one of your skills — config status + derived serving fields; the plaintext key is never returned.
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
Configure a skill
Set the LLM key, hosting mode, consumer billing, or metadata. Send any subset of sections — each is validated and applied independently.
curl -X PATCH https://connector.socialistic.ai/v1/skills/$SKILL_ID \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "key": { "llm_style": "openai", "llm_base_url": "https://api.openai.com/v1",
"llm_model_name": "gpt-4o", "llm_key": "sk-..." } }'PATCH/v1/skills/:skillIdskill:write
Update a skill's configuration. Send any subset of { key, hosting, consumer_billing, meta }; each section is validated + applied with its guards. A `hosting.hosted_model_id` must be a model the platform serves, else 400 INVALID_MODEL (detail.model_id names it). Omit it in hosted mode to run on the platform default model, which follows the platform as it changes. Returns the updated skill.
Request
| Field | Type | Description |
|---|---|---|
keyoptional | object | |
key.llm_style | "anthropic" | "openai" | |
key.llm_base_url | string (uri) | |
key.llm_model_name | string | |
key.llm_key | string | |
key.extra_envoptional | object | |
hostingoptional | object | |
hosting.mode | "byo" | "hosted" | "byos" | |
hosting.hosted_model_idoptional | string | |
hosting.byos_provideroptional | "openai" | "anthropic" | "google" | |
hosting.byos_connection_idoptional | string (uuid) | |
hosting.byos_model_idoptional | string | |
consumer_billingoptional | object | |
consumer_billing.creator_margin_bps | integer | null | |
metaoptional | object | |
meta.display_nameoptional | string | Card display title override (max 40 chars) |
meta.descriptionoptional | string | One-line pitch shown under the cover front (max 60 chars) |
meta.file_indicateoptional | string | File-drop placeholder shown when visitors upload files (max 50 chars) |
meta.text_indicateoptional | string | Chat-input placeholder shown on the skill composer (max 50 chars) |
Response
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
Read & write translations
Read the canonical public-page strings, their source language, source-version hash, and the locales still missing. Write one complete locale at a time against that hash. Writes are atomic: a rejected locale changes nothing, while locales accepted by earlier requests remain stored.
An owner API key may manage its own skill. The platform’s built-in translator instead uses a session credential limited to the exact skills in its dispatch window; it cannot retarget the request to another skill.
GET/v1/skills/:skillId/translationstranslation:readAPI keysession credential
Read the authoritative public-page source strings and the locales still missing for this source version. A translator session credential is bound to its dispatch window's explicit skill allowlist; an owner API key may also read it.
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
asset_id | string (uuid) | |
source_locale | "en" | "zh" | "zh-Hant" | "ja" | "es" | "pt-br" | "de" | "ko" | "fr" | "ru" | |
content_hash | string | |
strings | object | |
targets | array<"en" | "zh" | "zh-Hant" | "ja" | "es" | "pt-br" | "de" | "ko" | "fr" | "ru"> |
PUT/v1/skills/:skillId/translations/:localetranslation:writeAPI keysession credential
Validate and atomically store one locale for the named source version. Returns 409 when the source changed and 422 when the translation is incomplete or invalid.
Request
| Field | Type | Description |
|---|---|---|
content_hash | string | |
strings | object |
Response
| Field | Type | Description |
|---|---|---|
status | "written" | "already_current" | |
locale | "en" | "zh" | "zh-Hant" | "ja" | "es" | "pt-br" | "de" | "ko" | "fr" | "ru" |
| Status | Code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | Bearer credential is missing, invalid, or expired |
| 403 | FORBIDDEN | Session credential lacks the required scope or target skill |
| 404 | SKILL_NOT_FOUND | Skill is missing, or the API-key owner does not own it |
| 404 | LOCALE_NOT_FOUND | Locale is not one of the supported content locales |
| 409 | SOURCE_CHANGED | Source text changed after it was fetched; fetch the task again |
| 422 | INVALID_TARGET_LOCALE | Requested locale is the source locale or is not a target |
| 422 | TRANSLATION_KEYS_MISMATCH | Submitted field paths do not exactly match the source |
| 422 | TRANSLATION_INCOMPLETE | Submitted fields cannot reconstruct the source shape |
| 422 | INVALID_TRANSLATION | Translation failed language, completeness, link, or length validation; detail names the failed check |
Activate / deactivate
Toggle a skill’s sharing status. Activation requires the active mode’s serving config to be present; deactivation is a soft-unshare (no data deleted).
POST/v1/skills/:skillId/activateskill:publish
Re-share a deactivated skill (status → active). Requires the active mode's serving config to be present (else 409 NOT_SHAREABLE).
Request
No request body.
Response
No response body.
POST/v1/skills/:skillId/deactivateskill:publish
Stop sharing a skill (status → inactive). Soft-unshare — no delete, serving config kept.
Request
No request body.
Response
No response body.
Delete a skill
Remove a skill you imported and no longer want — for example one that failed your own verification. It leaves every list and its share page stops serving; sessions already run on it keep their history and billing records. A built-in skill cannot be deleted (409 SKILL_BUILTIN). To stop sharing a skill while keeping it, deactivate it instead.
curl -X DELETE https://connector.socialistic.ai/v1/skills/$SKILL_ID \
-H "Authorization: Bearer $KEY"DELETE/v1/skills/:skillIdskill:publish
Delete one of your skills (by id or slug): it leaves every list, its share page stops serving, and it cannot be restored through the API. Sessions already run on it keep their history and billing records. A built-in skill answers 409 SKILL_BUILTIN; a skill that is missing, not yours or already deleted answers 404 SKILL_NOT_FOUND. To stop sharing without deleting, use /deactivate.
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
ok | true | |
skill_id | string (uuid) | The deleted skill's id (also when it was addressed by slug) |
deleted | true |
Read a skill’s inbound traffic
A share link is /skill/<slug>?utm_…, so the visits it brings are already attributed to the skill and the link. This reads them back: share-page views, sessions started, users and returning users since since (default 30 days, at most 90), grouped by utm_source, utm_campaign, utm_content and channel.
- Share-page views count whole days (Asia/Shanghai) and trail live traffic by up to an hour.
visitorscounts distinct visitors per day and per device, browser and locale, summed — an upper bound on unique people, not a count of them. - A session counts toward a source when its user’s first visit to the platform landed on this skill’s share page through that link. Every other session is counted under empty source keys, so
totalsstay whole. - A returning user’s latest session in the window came on a later day than their first session on this skill.
- Your own runs are not counted.
curl "https://connector.socialistic.ai/v1/skills/$SKILL_ID/stats?since=2026-10-01" \
-H "Authorization: Bearer $KEY"GET/v1/skills/:skillId/statsskill:read
Inbound traffic for one of your skills since `since` (default 30 days, at most 90): share-page views, sessions started, users and returning users, grouped by utm_source / utm_campaign / utm_content / channel. Share-page views are counted per whole day (Asia/Shanghai) and trail live traffic by up to an hour. A session is attributed to a source when its user's first visit to the platform landed on this skill's share page through that link; every other session is counted under empty source keys, so `totals` stay whole. Your own runs are not counted.
Query parameters
| Field | Type | Description |
|---|---|---|
sinceoptional | string | Start of the window. Default 30 days ago; at most 90 days ago |
Request
No request body.
Response
| Field | Type | Description |
|---|---|---|
skill_id | string (uuid) | |
since | string | |
until | string | |
totals | object | |
totals.pageviews | integer | Views of the skill's share page |
totals.visitors | integer | Distinct share-page visitors per day and per device / browser / locale, summed over the window — an upper bound on unique people |
totals.sessions | integer | Sessions started (the creator's own runs excluded) |
totals.users | integer | Distinct people who started those sessions |
totals.returning_users | integer | Of those users, the ones whose latest session in the window came on a later day than their first session on this skill |
by_source | array<object> | |
by_source[].pageviews | integer | Views of the skill's share page |
by_source[].visitors | integer | Distinct share-page visitors per day and per device / browser / locale, summed over the window — an upper bound on unique people |
by_source[].sessions | integer | Sessions started (the creator's own runs excluded) |
by_source[].users | integer | Distinct people who started those sessions |
by_source[].returning_users | integer | Of those users, the ones whose latest session in the window came on a later day than their first session on this skill |
by_source[].utm_source | string | |
by_source[].utm_campaign | string | |
by_source[].utm_content | string | |
by_source[].channel | string | Entry channel (web, wechat_h5, …); empty with the utm fields when a session is not attributed to a link to this skill |
Agent-side publish (runtime callback)
A skill that declares the socialistic-importruntime connector lets the agent running a session land a shaped skill folder in the session owner’s account. This is not an API-key route: the agent authorizes with the OAuth access token the platform issued its session (scope skill:create, placed in its environment for the turn), and the owner is derived from that token. A credential that belongs to no session is refused. What it uploads is the agent’s own package, so it never becomes a canonical skill.
Deprecated. socialistic-import is kept for compatibility only (its scope folded into socialistic-skill), and the platform honours it only for a platform-provisioned skill or a creator running their own skill — never for a visitor running someone else’s. Both body forms take the same token.
POST/api/connectors/socialistic/skills/importraw bodyskill:createsession credential
Agent-side skill publish callback for the `socialistic-import` runtime connector. Lands a shaped skill folder in the SESSION OWNER's account — the owner and the session are derived from the credential, never from the request. The credential is the OAuth access token the platform issued the session for this turn (scope skill:create); a credential that belongs to no session answers 403 SESSION_CREDENTIAL_REQUIRED. Two body shapes, the same token: JSON with archive_base64, or the raw gzip archive. The upload is the agent's own package, so it never creates a canonical skill.
Raw form. Content-Type: application/gzip — the body IS the .skill tar.gz (SKILL.md at the archive root); X-Skill-Name: <folder name> is the slug hint (ignored unless it is already a valid slug base); Authorization: Bearer <the session's access token>. Draft vs publish is derived from the session's skill, since this form carries no fields. Maximum body: 4194304 bytes (4 MiB, the deployment's request-body ceiling); a larger body is refused with 413 ARCHIVE_TOO_LARGE before being buffered.
Request
| Field | Type | Description |
|---|---|---|
archive_base64 | string | |
origin_urloptional | string (uri) | |
display_nameoptional | string | |
descriptionoptional | string | |
file_indicateoptional | string | |
text_indicateoptional | string | |
draftoptional | boolean | |
slugoptional | string | Suggested slug base (lowercase letters, digits, dashes); its first 40 characters are kept and a short random suffix is appended |
Response
| Field | Type | Description |
|---|---|---|
skill_id | string | |
slug | string | |
visitor_url | string | |
creator_url | string | |
duplicateoptional | boolean |