Tasks

List, read and register tasks and their spec versions.

GET
/v1/tasks

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Response Body

application/json

curl -X GET "https://example.com/v1/tasks"
{  "tasks": [    {      "slug": "string",      "version": 0,      "snapshotHash": "string",      "mode": "off",      "deferralShare": 0,      "lastGatePassed": true    }  ]}
GET
/v1/tasks/{slug}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/tasks/string"
{  "task": {    "slug": "string",    "version": 0,    "snapshotHash": "string",    "mode": "off",    "deferralShare": 0,    "lastGatePassed": true  }}
{  "error": "not_found"}
PUT
/v1/tasks/{slug}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/tasks/string" \  -H "Content-Type: application/json" \  -d '{    "version": 1,    "snapshotHash": "string",    "gitSha": "string",    "spec": {      "property1": null,      "property2": null    }  }'
{  "task": {    "slug": "string",    "version": 0,    "snapshotHash": "string",    "mode": "off",    "deferralShare": 0,    "lastGatePassed": true  },  "version": {    "id": "string",    "version": 0,    "snapshotHash": "string",    "gitSha": "string",    "createdAt": "string"  }}
{  "error": "string",  "issues": [    {      "message": "string",      "path": [        "string"      ]    }  ]}
{  "error": "unauthorized"}
{  "error": "forbidden"}
{  "error": "not_found"}
GET
/v1/tasks/{slug}/versions

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Response Body

application/json

curl -X GET "https://example.com/v1/tasks/string/versions"
{  "versions": [    {      "id": "string",      "version": 0,      "snapshotHash": "string",      "gitSha": "string",      "createdAt": "string"    }  ]}