Connector API
Getting started
Import, configure, and run Socialistic skills from your own systems. Base URL: https://connector.socialistic.ai. Requests and responses are JSON unless noted; the run event stream is server-sent events.
Authentication
Every request carries exactly one bearer credential in the Authorization header, either:
- an API key — mint one in Settings → API access and copy it (you can re-copy it any time). It is for your own scripts and carries every scope; or
- an OAuth access token issued by
https://socialistic.ai— what an app (an MCP client such as Claude, or your own product) gets when a person authorizes it. It carries only the scopes that person approved (see Auth & scopes).
Either one acts as its user: imports land in their account, configuration changes apply to their skills, and every run in a session they start draws their wallet. A skill that is not theirs returns 404— existence never leaks. Each endpoint card shows the scope it needs.
Endpoint cards marked session credentialare runtime callbacks for an agent: the platform issues the running session an OAuth access token on its user’s behalf, narrowed to the task; callers do not mint it.
Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxMissing credential → 401 UNAUTHORIZED. Unknown or deleted key → 401 INVALID_API_KEY; expired, revoked or wrong-resource token → 401 INVALID_TOKEN. Every 401 carries WWW-Authenticate: Bearer resource_metadata="…". A token without the endpoint’s scope → 403 INSUFFICIENT_SCOPE with WWW-Authenticate: Bearer error="insufficient_scope", scope="…".
Quick start
# 1. mint a key in Settings → API access, then:
export KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxxxx
# 2. import a skill
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>" }'
# 3. start a session
curl -X POST https://connector.socialistic.ai/v1/sessions \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "skill_slug": "my-skill-ab12cd" }'
# 4. send a message → poll until running → stream events (see Streaming tab)