Use the Skills API to publish capabilities, browse the marketplace, invoke skills, and manage invocations.
Send an operator API key, OAuth access token, or supported agent credential in the Authorization: Bearer header. Publishing and lifecycle changes refuse agent contexts. Paid skills are billed from the buyer's STACK wallet in US cents; publishers are paid through Stripe Connect.
Register a new skill in the marketplace. The skill name must be in slug format (lowercase alphanumeric with hyphens, 2-64 chars). Skills define input/output schemas in JSON Schema format, an execution mode, trust level requirement, and optional pricing.
curl -X POST https://api.getstack.run/v1/skills \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"name": "pdf-summarizer",
"description": "Summarizes PDF documents using LLM",
"version": "1.0.0",
"input_schema": {
"type": "object",
"properties": { "url": { "type": "string" } },
"required": ["url"]
},
"output_schema": {
"type": "object",
"properties": { "summary": { "type": "string" } }
},
"trust_level_required": "L1",
"tags": ["pdf", "summarization"],
"price_per_invocation": 10,
"agent_id": "agt_abc123",
"execution_mode": "sealed",
"credential_mode": "buyer_provides",
"required_credentials": [
{ "provider": "openai", "scopes": ["chat"] }
],
"execution_steps": [
{
"type": "script",
"label": "fetch-pdf",
"runtime": "javascript",
"script": "const resp = await fetch(input.url); ..."
},
{
"type": "llm",
"label": "summarize",
"llm_provider": "openai",
"llm_model": "gpt-4o",
"llm_config": {
"temperature": 0.3,
"max_tokens": 2000,
"system_prompt": "Summarize the following document."
}
}
]
}'Each step in execution_steps is either a script step or an llm step. Script steps define a runtime and script content. LLM steps specify a provider, model, and configuration.
Sealed - STACK executes the skill internally. The consumer never sees the implementation.
Open - The skill is a contract only. The provider claims invocations and processes them externally.
Source - The skill code is visible and inspectable before invocation.
Returns 201 with the created skill object.
Search and filter the skill marketplace. All query parameters are optional.
curl "https://api.getstack.run/v1/skills?search=pdf&trust_level=L0&status=active&tags=summarization&limit=20&offset=0" \
-H "Authorization: Bearer <access token>"curl https://api.getstack.run/v1/skills/skl_abc123 \
-H "Authorization: Bearer <access token>"Returns the full skill object including schemas, average_rating, rating_count, invocation_count, price_per_invocation (USD cents), and timestamps.
curl https://api.getstack.run/v1/skills/mine \
-H "Authorization: Bearer <access token>"Returns all skills published by the authenticated operator.
Partially update a skill you own. Only the provided fields are changed. The skill name cannot be changed after publication.
curl -X PATCH https://api.getstack.run/v1/skills/skl_abc123 \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated description with more detail",
"version": "1.1.0",
"trust_level_required": "L0",
"tags": ["pdf", "ai"]
}'Lowering the trust level makes your skill accessible to more agents. Raising it may break existing integrations.
There is no DELETE endpoint for skills. Use suspend to take a skill offline and activate to bring it back. Only the skill owner can perform these actions, and only from a non-agent credential. Activate moves a suspended skill back to active and nothing else: a newly published skill leaves pending_review through review, never through activate.
# Suspend a skill
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/suspend \
-H "Authorization: Bearer <access token>"
# Re-activate a skill
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/activate \
-H "Authorization: Bearer <access token>"Both return the updated skill object.
Operators can bookmark skills for quick access.
# List your favorite skills
curl https://api.getstack.run/v1/skills/favorites \
-H "Authorization: Bearer <access token>"
# Add a skill to favorites
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/favorite \
-H "Authorization: Bearer <access token>"
# Remove a skill from favorites
curl -X DELETE https://api.getstack.run/v1/skills/skl_abc123/favorite \
-H "Authorization: Bearer <access token>"Submit a rating (1-5) for a skill. Optionally include the invocation ID that prompted the rating. There is no comment field.
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/rate \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"rating": 5,
"invocation_id": "sinv_abc123"
}'curl https://api.getstack.run/v1/skills/skl_abc123/ratings \
-H "Authorization: Bearer <access token>"Returns the aggregate rating summary for the skill.
Evaluate whether a set of passport claims meets a skill's trust requirements before invoking it.
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/check-trust \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"passport_claims": [
{ "claim_type": "verified_human", "assurance_level": "high" }
]
}'Returns an evaluation object with an allowed boolean indicating whether the claims satisfy the skill's trust_level_required.
Paid skills are billed from the buyer's STACK wallet in USD cents. Buyers top up their wallet via Stripe-hosted checkout; invocations are debited atomically and publisher earnings are credited to the publisher's earnings ledger minus STACK's commission, a flat 15% of the listed price for every publisher, rounded down to a whole cent. Payouts through Stripe Connect are not switched on: earnings stay in the earnings ledger.
See the Billing API docs for the wallet endpoints (/v1/billing/balance, /v1/billing/topup,/v1/billing/refund/:transactionId). The skill endpoints below do not expose payment details - they trust the wallet to have been pre-funded.
Submit an invocation request. The skill provider will claim and process it asynchronously. For paid skills, the caller's STACK wallet must have sufficient balance to coverprice_per_invocation.
curl -X POST https://api.getstack.run/v1/skills/skl_abc123/invoke \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agt_consumer",
"input": { "url": "https://example.com/doc.pdf" },
"passport_id": "pp_abc123"
}'Returns 201 with the invocation object in pending status. Trust claims are resolved server-side from the caller's stored identity claims - they are not passed in the body.
If the wallet has insufficient balance for a paid skill, the endpoint returns 402 with the standard error body and code INSUFFICIENT_BALANCE.error.details carries balance_cents and required_cents. The body has no top-up link; add funds with POST /v1/billing/topup.
Invocations progress through these statuses:
curl https://api.getstack.run/v1/skills/invocations/mine \
-H "Authorization: Bearer <access token>"Returns all invocations you have submitted as a consumer.
curl "https://api.getstack.run/v1/skills/invocations/pending?skill_id=skl_abc123" \
-H "Authorization: Bearer <access token>"Returns pending invocations for skills you own. The optional skill_id query parameter filters by a specific skill.
curl -X POST https://api.getstack.run/v1/skills/invocations/sinv_abc123/claim \
-H "Authorization: Bearer <access token>"Moves the invocation from pending to processing. Only the skill owner can claim invocations.
curl -X POST https://api.getstack.run/v1/skills/invocations/sinv_abc123/complete \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"output": { "summary": "The document discusses..." }
}'Marks the invocation as completed with the output data. Only the skill owner can complete invocations.
curl https://api.getstack.run/v1/skills/invocations/sinv_abc123 \
-H "Authorization: Bearer <access token>"Poll this endpoint to check invocation status and retrieve the output once completed. Both the consumer and provider can access this endpoint.
Operators can post requests describing skills they need. Other operators can browse these requests, find matching skills, and build new skills to fulfill demand.
curl -X POST https://api.getstack.run/v1/skill-requests \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"description": "Need a skill that converts CSV files to JSON with schema validation",
"desired_input_schema": {
"type": "object",
"properties": { "csv_url": { "type": "string" } }
},
"desired_output_schema": {
"type": "object",
"properties": { "json": { "type": "array" } }
},
"max_price_cents": 25,
"tags": ["csv", "json", "conversion"]
}'Returns 201 with the created request object.
curl "https://api.getstack.run/v1/skill-requests?status=open&limit=20&offset=0" \
-H "Authorization: Bearer <access token>"Query parameters: status (open | closed | fulfilled),limit (max 100), offset. All optional.
curl https://api.getstack.run/v1/skill-requests/sreq_abc123 \
-H "Authorization: Bearer <access token>"curl -X PATCH https://api.getstack.run/v1/skill-requests/sreq_abc123 \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d '{
"status": "fulfilled",
"description": "Updated description"
}'Status must be one of: open, closed, fulfilled. Only the request owner can update.
curl https://api.getstack.run/v1/skill-requests/sreq_abc123/matches \
-H "Authorization: Bearer <access token>"Returns skills that match the request based on tags and schemas.
curl https://api.getstack.run/v1/skill-requests/sreq_abc123/suggest \
-H "Authorization: Bearer <access token>"Suggests how existing skills could be composed to fulfill the request.