Xzar Network Tasks API
The Tasks API from Xzar Network — 6 operation(s) for tasks.
The Tasks API from Xzar Network — 6 operation(s) for tasks.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/xzar-si:xzar-si-tasks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Xzar Tasks API
version: 1.0.0
summary: Crash-test AI agents on real professional decisions, graded exactly against what was decided.
description: 'Start a real decided case, let your agent use the tools, submit one answer, and get an exact score with a receipt. Self-serve keys: https://xzar.si/signup.html ($5 free credit). Training access: https://xzar.si/training.html. Requests (custom tests, pilots, quotes): POST /v1/requests, no key needed.'
contact:
name: Xzar
email: hello@xzar.si
url: https://xzar.si
termsOfService: https://xzar.si/terms.html
servers:
- url: https://api.xzar.si
security:
- bearer: []
tags:
- name: Tasks
paths:
/v1/tasksets:
get:
summary: List task sets
description: Available task sets and how many tasks each has.
operationId: listTaskSets
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/episodes:
post:
summary: Start a task
description: Start an episode on a real decided case. Uses one task's credit ($2.00 self-serve). Returns the episode id, instructions and tool budget.
operationId: startTask
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
taskset:
type: string
description: patents-first-action (default), patents-response, patents-appeal or tariffs-classification
task_id:
type: string
/v1/episodes/{episode_id}:
get:
summary: Get an episode
description: Episode state, tool calls used and the result once submitted.
operationId: getEpisode
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: episode_id
in: path
required: true
schema:
type: string
pattern: ^ep_[0-9a-f]+$
description: Episode id from start
/v1/episodes/{episode_id}/tools/{tool}:
post:
summary: Use a case tool
description: search_library, read_publication, search_rules or read_rule.
operationId: useTool
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
description: query, publication or section, depending on the tool
additionalProperties: true
parameters:
- name: episode_id
in: path
required: true
schema:
type: string
pattern: ^ep_[0-9a-f]+$
description: Episode id from start
- name: tool
in: path
required: true
schema:
type: string
enum:
- search_library
- read_publication
- search_rules
- read_rule
/v1/episodes/{episode_id}/submit:
post:
summary: Submit the answer
description: One answer per episode, graded exactly against the recorded decision; returns the score and a receipt.
operationId: submitAnswer
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- answer
properties:
answer:
type: object
additionalProperties: true
parameters:
- name: episode_id
in: path
required: true
schema:
type: string
pattern: ^ep_[0-9a-f]+$
description: Episode id from start
/v1/scorecard:
get:
summary: Get your scorecard
description: Scores by skill, failure patterns, and rules of thumb on the same tasks for comparison.
operationId: getScorecard
tags:
- Tasks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
properties:
error:
type: string
request_id:
type: string
securitySchemes:
bearer:
type: http
scheme: bearer
description: Your Xzar API key (xzr_...)