The short version
- Discovery MCP (
search_site,get_site_info) is public and read-only. - Each Skill is one MCP tool; it runs on NeoSpark and authenticates with an
nsk_key. - REST uses
np_keys, or a session cookie inside the chat app. - Base URL:
https://api.useneospark.com/api/v1. Interactive docs: api.useneospark.com/docs.
The public catalogue MCP
A server card is published at https://useneospark.com/.well-known/mcp/server-card.json. It advertises two tools, both read-only:
| Tool | Input | Returns |
|---|---|---|
search_site | { query } | Matching Skills and pages from the catalogue |
get_site_info | empty object | High-level information about NeoSpark and the catalogue |
This server does not run Skills and needs no key. It is for discovery from an MCP client that is not yet connected to a Skill.
Per-Skill MCP tool
Installing a Skill (see Connect your agent) writes one MCP server entry and one tool. The tool:
- Runs on NeoSpark. It forwards your request to the hosted package; nothing executes on your machine.
- Authenticates with
nsk_. SendAuthorization: Bearer nsk_…orX-Skill-Key: nsk_…. NeverX-API-Key. - Is scoped. One Skill, one user. Rotating the package download rotates the key.
The client SKILL.md decides when the agent calls it. You normally do not call the MCP tool by hand.
REST: authentication
| Method | Header | Use |
|---|---|---|
| API key | X-API-Key: np_… | Scripts, CI, your own tools |
| API key, alt | Authorization: ApiKey np_… | Same |
| Session | Cookie from the signed-in chat app | Calls made inside app.useneospark.com |
The catalogue listing (GET /agents/skills) answers without a key. Anything that runs a Skill, reads your balance or writes a review needs one.
REST: skills and runs
| Method | Path | Purpose |
|---|---|---|
GET | /agents/skills | List the catalogue (no key required) |
GET | /agents/skills/{id} | One Skill and its metadata |
GET | /agents/skills/{id}/functions | The callable tools for that Skill |
POST | /agents/skills/pricing/batch | Price preview for several Skills at once |
POST | /agents/skills/{id}/invoke | Run the Skill |
POST | /agents/skills/{id}/invoke/stream | Same, streamed |
GET | /agents/skills/{id}/mcp-bundle | MCP-only bundle (?format=mcp) |
GET | /agents/models | Available models and their IDs |
Invoke
POST /api/v1/agents/skills/neospark-infographics/invoke
X-API-Key: np_xxxxxxxx
Content-Type: application/json
{
"message": "Turn these Q3 notes into a one-page infographic",
"model_override": null,
"session_id": null,
"thinking_depth": "medium"
}| Field | Required | Notes |
|---|---|---|
message | yes | The task, in the user's words |
model_override | no | One of the IDs from /agents/models |
session_id | no | Continue an earlier conversation |
thinking_depth | no | low, medium, high |
Response fields: content, skill_id, model,session_id, optional structured blocks, and usage(tokens and credits). Report the credits to the user.
REST: reviews
| Method | Path | Purpose |
|---|---|---|
GET | /agents/skills/{id}/reviews | List reviews; sort=newest or rating, limit, offset |
PUT | /agents/skills/{id}/reviews | Create or update your review (rating 1–5, comment) |
DELETE | /agents/skills/{id}/reviews/{review_id} | Delete your review |
A write before any use returns 403 with usage_required; a creator's own review returns 403 owner_cannot_review. SeeReviews.
REST: account, billing and keys
| Method | Path | Purpose |
|---|---|---|
GET | /balance/balance | Available, frozen and total credits |
GET | /drawing/billing/history | Credit ledger |
GET | /billing/state | Current subscription |
POST | /billing/checkout | Start a plan checkout (plan, interval) |
POST | /billing/portal | Open the Stripe billing portal |
POST | /billing/cancel-subscription | Cancel (immediately optional) |
GET / POST / PUT / DELETE | /api-keys, /api-keys/{id} | Manage np_ keys |
REST: creator
| Method | Path | Purpose |
|---|---|---|
POST | /skills/upload | Submit a package to review |
PATCH | /agents/skills/{id} | Edit listing metadata |
PATCH | /agents/skills/{id}/status | List or unlist |
PATCH | /agents/skills/{id}/images | Replace preview images |
DELETE | /agents/skills/{id} | Remove a listing |
GET | /creator/account | Earnings summary |
GET | /creator/earnings | Earnings ledger |
Publishing details: Publish a Skill; earnings mechanics:Earnings and payouts.
Errors
| Code | Meaning | What to do |
|---|---|---|
401 | Key or session invalid | Reinstall from the newest package, or create a new np_ key |
402 | Balance too low | Top up or choose a free Skill; do not retry blindly |
403 | Forbidden action (e.g. review before use) | Read the code in the body |
404 | Skill missing or renamed | Re-check the catalogue |
409 | Skill ID already registered or pending | Choose a different ID, or update the existing listing |
Error bodies carry a machine-readable code; render it, do not guess from the text.
Limits
The API is rate-limited per key and per account; the catalogue listing is cached. Very long runs are bounded by the 300-second script limit and by platform-level timeouts. If a call fails early without reaching a model, no credits are charged.
- Interactive API docs: api.useneospark.com/docs
- Machine-readable agent guide: /install/agent.md
- MCP server card: /.well-known/mcp/server-card.json
- Skill specification: /neospark-skill-spec.md