POST/api/todo/v1/commands

command /api/todo/v1/commands

Human command endpoint. Non-human identities are denied consequential write scopes; this is not a generic external OAuth API.

App
To Do
Contract
To Do module API 1.9.0
Lifecycle
preview
Runtime
restricted
Operation ID
mop_NrOVEeJrFiRIF8vvxxI4Gr9dAPPJ0Zs4
Canonical origin
https://api.runonvision.com

Purpose and use cases

command /api/todo/v1/commands

The owning App is Vision To Do. To Do owns task data, domain rules, workspace authorization and command execution. Vision Core brokers human operation grants. Publishing this snapshot creates no new client grants or external access.

Request

POST https://api.runonvision.com/api/todo/v1/commands

Authentication and authorization

Send a Vision-issued bearer token for the exact App audience. The token must include the todo entitlement and satisfy the explicit to do workspace bound to the authenticated identity binding.

  • Required scope: todo:tasks:write

Human roles are not declared in OpenAPI. Record-level and business permission checks remain the owning App's authority.

Headers

  • Authorization: Bearer <access-token> — required.
  • Accept: application/json — recommended where a JSON response is declared.
  • Content-Type: application/json — required for the documented request representation.

Undeclared tracing, idempotency, conditional-request, and version headers are not assumed on this page.

Path and query parameters

This operation declares no path or query parameters.

Request body

Media type: application/json. The body is required.

object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object

Runnable examples

Task Set Status

Set commandType to "task.set_status".

FieldTypeRulesDescription
commandType"task.set_status"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.statuspending | in_progress | completed | cancelledrequiredNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Task Set Status — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.set_status",
    "data": {
      "status": "pending"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Task Set Status — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.set_status",
  "data": {
    "status": "pending"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Set Status — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.set_status","data":{"status":"pending"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Task Set Starred

Set commandType to "task.set_starred".

FieldTypeRulesDescription
commandType"task.set_starred"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.starredboolean | true | falserequiredNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Task Set Starred — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.set_starred",
    "data": {
      "starred": true
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Task Set Starred — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.set_starred",
  "data": {
    "starred": true
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Set Starred — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.set_starred","data":{"starred":true},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Task Set Archived

Set commandType to "task.set_archived".

FieldTypeRulesDescription
commandType"task.set_archived"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.archivedboolean | true | falserequiredNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Task Set Archived — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.set_archived",
    "data": {
      "archived": true
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Task Set Archived — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.set_archived",
  "data": {
    "archived": true
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Set Archived — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.set_archived","data":{"archived":true},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Task Create

Set commandType to "task.create".

FieldTypeRulesDescription
commandType"task.create"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.allDayboolean | true | falseoptionalNot described in the contract.
data.assignedToUserIdstring · uuid | nulloptionalNot described in the contract.
data.descriptionstring | nulloptionalNot described in the contract.
data.dueAtstring | nulloptionalNot described in the contract.
data.linkAppIdstringoptional; pattern ^[a-z][a-z0-9-]{1,39}$Not described in the contract.
data.linkLabelstringoptional; minimum length 1; maximum length 240Not described in the contract.
data.linkReferencestringoptional; minimum length 1; maximum length 200Not described in the contract.
data.listIdstring · uuid | nulloptionalNot described in the contract.
data.newListNamestringoptional; minimum length 1; maximum length 120Not described in the contract.
data.prioritynone | low | medium | highoptionalNot described in the contract.
data.recurrenceFromdue | completion | nulloptionalNot described in the contract.
data.recurrenceRulestring | nulloptionalNot described in the contract.
data.reminderAtstring | nulloptionalNot described in the contract.
data.statuspending | in_progress | completed | cancelledoptionalNot described in the contract.
data.subtasksarrayoptional; maximum items 50Not described in the contract.
data.titlestringrequired; minimum length 1; maximum length 300Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
Task Create — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.create",
    "data": {
      "allDay": true,
      "assignedToUserId": "00000000-0000-4000-8000-000000000001",
      "description": "<description>",
      "dueAt": "<dueAt>",
      "linkAppId": "<linkAppId>",
      "linkLabel": "<linkLabel>",
      "linkReference": "<linkReference>",
      "listId": "00000000-0000-4000-8000-000000000001",
      "newListName": "<newListName>",
      "priority": "none",
      "recurrenceFrom": "due",
      "recurrenceRule": "<recurrenceRule>",
      "reminderAt": "<reminderAt>",
      "status": "pending",
      "subtasks": [
        "<subtasks>"
      ],
      "title": "<title>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1"
  }'
Task Create — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.create",
  "data": {
    "allDay": true,
    "assignedToUserId": "00000000-0000-4000-8000-000000000001",
    "description": "<description>",
    "dueAt": "<dueAt>",
    "linkAppId": "<linkAppId>",
    "linkLabel": "<linkLabel>",
    "linkReference": "<linkReference>",
    "listId": "00000000-0000-4000-8000-000000000001",
    "newListName": "<newListName>",
    "priority": "none",
    "recurrenceFrom": "due",
    "recurrenceRule": "<recurrenceRule>",
    "reminderAt": "<reminderAt>",
    "status": "pending",
    "subtasks": [
      "<subtasks>"
    ],
    "title": "<title>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Create — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.create","data":{"allDay":true,"assignedToUserId":"00000000-0000-4000-8000-000000000001","description":"<description>","dueAt":"<dueAt>","linkAppId":"<linkAppId>","linkLabel":"<linkLabel>","linkReference":"<linkReference>","listId":"00000000-0000-4000-8000-000000000001","newListName":"<newListName>","priority":"none","recurrenceFrom":"due","recurrenceRule":"<recurrenceRule>","reminderAt":"<reminderAt>","status":"pending","subtasks":["<subtasks>"],"title":"<title>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Task Update

Set commandType to "task.update".

FieldTypeRulesDescription
commandType"task.update"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.allDayboolean | true | falseoptionalNot described in the contract.
data.assignedToUserIdstring · uuid | nulloptionalNot described in the contract.
data.deadlineAtstring | nulloptionalNot described in the contract.
data.descriptionstring | nulloptionalNot described in the contract.
data.dueAtstring | nulloptionalNot described in the contract.
data.listIdstring · uuidoptional; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
data.newListNamestringoptional; minimum length 1; maximum length 120Not described in the contract.
data.prioritynone | low | medium | highoptionalNot described in the contract.
data.recurrenceFromdue | completion | nulloptionalNot described in the contract.
data.recurrenceRulestring | nulloptionalNot described in the contract.
data.reminderAtstring | nulloptionalNot described in the contract.
data.startAtstring | nulloptionalNot described in the contract.
data.statuspending | in_progress | completed | cancelledoptionalNot described in the contract.
data.titlestringoptional; minimum length 1; maximum length 300Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Task Update — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.update",
    "data": {
      "allDay": true,
      "assignedToUserId": "00000000-0000-4000-8000-000000000001",
      "deadlineAt": "<deadlineAt>",
      "description": "<description>",
      "dueAt": "<dueAt>",
      "listId": "00000000-0000-4000-8000-000000000001",
      "newListName": "<newListName>",
      "priority": "none",
      "recurrenceFrom": "due",
      "recurrenceRule": "<recurrenceRule>",
      "reminderAt": "<reminderAt>",
      "startAt": "<startAt>",
      "status": "pending",
      "title": "<title>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Task Update — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.update",
  "data": {
    "allDay": true,
    "assignedToUserId": "00000000-0000-4000-8000-000000000001",
    "deadlineAt": "<deadlineAt>",
    "description": "<description>",
    "dueAt": "<dueAt>",
    "listId": "00000000-0000-4000-8000-000000000001",
    "newListName": "<newListName>",
    "priority": "none",
    "recurrenceFrom": "due",
    "recurrenceRule": "<recurrenceRule>",
    "reminderAt": "<reminderAt>",
    "startAt": "<startAt>",
    "status": "pending",
    "title": "<title>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Update — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.update","data":{"allDay":true,"assignedToUserId":"00000000-0000-4000-8000-000000000001","deadlineAt":"<deadlineAt>","description":"<description>","dueAt":"<dueAt>","listId":"00000000-0000-4000-8000-000000000001","newListName":"<newListName>","priority":"none","recurrenceFrom":"due","recurrenceRule":"<recurrenceRule>","reminderAt":"<reminderAt>","startAt":"<startAt>","status":"pending","title":"<title>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Subtask Create

Set commandType to "subtask.create".

FieldTypeRulesDescription
commandType"subtask.create"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.taskIdstring · uuidoptional; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
data.titlestringrequired; minimum length 1; maximum length 300Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidoptional; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Subtask Create — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "subtask.create",
    "data": {
      "taskId": "00000000-0000-4000-8000-000000000001",
      "title": "<title>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Subtask Create — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "subtask.create",
  "data": {
    "taskId": "00000000-0000-4000-8000-000000000001",
    "title": "<title>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Subtask Create — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"subtask.create","data":{"taskId":"00000000-0000-4000-8000-000000000001","title":"<title>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Subtask Set Done

Set commandType to "subtask.set_done".

FieldTypeRulesDescription
commandType"subtask.set_done"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.doneboolean | true | falserequiredNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Subtask Set Done — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "subtask.set_done",
    "data": {
      "done": true
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Subtask Set Done — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "subtask.set_done",
  "data": {
    "done": true
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Subtask Set Done — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"subtask.set_done","data":{"done":true},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Subtask Rename

Set commandType to "subtask.rename".

FieldTypeRulesDescription
commandType"subtask.rename"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.titlestringrequired; minimum length 1; maximum length 300Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Subtask Rename — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "subtask.rename",
    "data": {
      "title": "<title>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Subtask Rename — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "subtask.rename",
  "data": {
    "title": "<title>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Subtask Rename — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"subtask.rename","data":{"title":"<title>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Subtask Delete

Set commandType to "subtask.delete".

FieldTypeRulesDescription
commandType"subtask.delete"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Subtask Delete — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "subtask.delete",
    "data": {},
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Subtask Delete — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "subtask.delete",
  "data": {},
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Subtask Delete — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"subtask.delete","data":{},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Task Delete

Set commandType to "task.delete".

FieldTypeRulesDescription
commandType"task.delete"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Task Delete — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "task.delete",
    "data": {},
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Task Delete — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "task.delete",
  "data": {},
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Task Delete — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"task.delete","data":{},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Create

Set commandType to "list.create".

FieldTypeRulesDescription
commandType"list.create"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.colorstring | nulloptionalNot described in the contract.
data.namestringrequired; minimum length 1; maximum length 120Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
List Create — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.create",
    "data": {
      "color": "<color>",
      "name": "<name>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1"
  }'
List Create — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.create",
  "data": {
    "color": "<color>",
    "name": "<name>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Create — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.create","data":{"color":"<color>","name":"<name>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Rename

Set commandType to "list.rename".

FieldTypeRulesDescription
commandType"list.rename"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.colorstring | nulloptionalNot described in the contract.
data.namestringrequired; minimum length 1; maximum length 120Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
List Rename — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.rename",
    "data": {
      "color": "<color>",
      "name": "<name>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
List Rename — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.rename",
  "data": {
    "color": "<color>",
    "name": "<name>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Rename — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.rename","data":{"color":"<color>","name":"<name>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Set Color

Set commandType to "list.set_color".

FieldTypeRulesDescription
commandType"list.set_color"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.colorstring | nulloptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
List Set Color — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.set_color",
    "data": {
      "color": "<color>"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
List Set Color — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.set_color",
  "data": {
    "color": "<color>"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Set Color — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.set_color","data":{"color":"<color>"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Delete

Set commandType to "list.delete".

FieldTypeRulesDescription
commandType"list.delete"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
data.moveToListIdstring · uuidoptional; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
data.tasksmove | deleteoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
List Delete — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.delete",
    "data": {
      "moveToListId": "00000000-0000-4000-8000-000000000001",
      "tasks": "move"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
List Delete — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.delete",
  "data": {
    "moveToListId": "00000000-0000-4000-8000-000000000001",
    "tasks": "move"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Delete — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.delete","data":{"moveToListId":"00000000-0000-4000-8000-000000000001","tasks":"move"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Archive

Set commandType to "list.archive".

FieldTypeRulesDescription
commandType"list.archive"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
List Archive — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.archive",
    "data": {},
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
List Archive — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.archive",
  "data": {},
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Archive — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.archive","data":{},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

List Restore

Set commandType to "list.restore".

FieldTypeRulesDescription
commandType"list.restore"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
List Restore — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "list.restore",
    "data": {},
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
List Restore — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "list.restore",
  "data": {},
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
List Restore — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"list.restore","data":{},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Reminder Create

Set commandType to "reminder.create".

FieldTypeRulesDescription
commandType"reminder.create"requiredNot described in the contract.
dataobjectrequiredNot described in the contract.
data.anchorabsolute | before_start | before_due | before_deadlineoptional; default "absolute"Not described in the contract.
data.channelin_app | email | pushoptionalNot described in the contract.
data.notestring | nulloptionalNot described in the contract.
data.offsetMinutesinteger | nulloptionalNot described in the contract.
data.remindAtstring | nulloptionalNot described in the contract.
data.taskIdstring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
Reminder Create — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "reminder.create",
    "data": {
      "anchor": "absolute",
      "channel": "in_app",
      "note": "<note>",
      "offsetMinutes": 0,
      "remindAt": "<remindAt>",
      "taskId": "00000000-0000-4000-8000-000000000001"
    },
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1"
  }'
Reminder Create — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "reminder.create",
  "data": {
    "anchor": "absolute",
    "channel": "in_app",
    "note": "<note>",
    "offsetMinutes": 0,
    "remindAt": "<remindAt>",
    "taskId": "00000000-0000-4000-8000-000000000001"
  },
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Reminder Create — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"reminder.create","data":{"anchor":"absolute","channel":"in_app","note":"<note>","offsetMinutes":0,"remindAt":"<remindAt>","taskId":"00000000-0000-4000-8000-000000000001"},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

Reminder Delete

Set commandType to "reminder.delete".

FieldTypeRulesDescription
commandType"reminder.delete"requiredNot described in the contract.
dataobjectoptionalNot described in the contract.
idempotencyKeystringrequired; minimum length 16; maximum length 160; pattern ^[A-Za-z0-9._:-]+$Not described in the contract.
schemaVersion"vision-todo-command.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
Reminder Delete — cURL
curl 'https://api.runonvision.com/api/todo/v1/commands' \
  --request POST \
  --header 'authorization: Bearer ***' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
    "commandType": "reminder.delete",
    "data": {},
    "idempotencyKey": "<idempotencyKey>",
    "schemaVersion": "vision-todo-command.v1",
    "targetReference": "00000000-0000-4000-8000-000000000001"
  }'
Reminder Delete — JavaScript (server-side)
const response = await fetch('https://api.runonvision.com/api/todo/v1/commands', {
  method: 'POST',
  headers: {
  "authorization": "Bearer <ACCESS_TOKEN>",
  "accept": "application/json",
  "content-type": "application/json"
},
  body: JSON.stringify({
  "commandType": "reminder.delete",
  "data": {},
  "idempotencyKey": "<idempotencyKey>",
  "schemaVersion": "vision-todo-command.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}),
})

if (!response.ok) throw new Error(`Vision API ${response.status}`)
const result = await response.json()
Reminder Delete — Python 3 standard library
import json
import urllib.request

request = urllib.request.Request(
    'https://api.runonvision.com/api/todo/v1/commands',
    data=json.dumps({"commandType":"reminder.delete","data":{},"idempotencyKey":"<idempotencyKey>","schemaVersion":"vision-todo-command.v1","targetReference":"00000000-0000-4000-8000-000000000001"}).encode(),
    headers={
    "Authorization": "Bearer <ACCESS_TOKEN>",
    "Accept": "application/json",
    "content-type": "application/json"
},
    method='POST',
)
with urllib.request.urlopen(request, timeout=30) as response:
    result = json.load(response)

The current TypeScript reference client covers Platform token exchange and core reads. No native SDK helper is declared for this operation; use the HTTP contract directly and follow the SDK guidance.

Responses

StatusMeaningSchema
200Successful responseobject
201Successful responseobject
400Invalid request parameters or body (INVALID_REQUEST)object
401Vision credential missing or invalid (AUTHENTICATION_REQUIRED or INVALID_CREDENTIAL)object
403Scope, grant, identity class, or workspace role denied (PERMISSION_DENIED)object
404Requested task, list, subtask, reminder, or other command target was not found (NOT_FOUND)object
409Idempotency-key conflict or command rejected in the target's current state (INVALID_REQUEST)object
413Command request body exceeds the 32 KiB payload limit (INVALID_REQUEST)object
503Database, authorization dependency, or other required dependency unavailable (DEPENDENCY_UNAVAILABLE)object

Success response schema

FieldTypeRulesDescription
commandReferencestringrequired; pattern ^TCM-[A-F0-9]{12}$Not described in the contract.
commandTypetask.set_status | task.set_starred | task.set_archived | task.create | task.update | subtask.create | subtask.set_done | subtask.rename | subtask.delete | task.delete | list.create | list.rename | list.set_color | list.delete | list.archive | list.restore | reminder.create | reminder.deleterequiredNot described in the contract.
replayedbooleanrequiredNot described in the contract.
schemaVersion"vision-todo-command-result.v1"requiredNot described in the contract.
targetReferencestring · uuidrequired; pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Not described in the contract.
200 illustrative response
{
  "commandReference": "<commandReference>",
  "commandType": "task.set_status",
  "replayed": true,
  "schemaVersion": "vision-todo-command-result.v1",
  "targetReference": "00000000-0000-4000-8000-000000000001"
}

Errors and troubleshooting

Error bodies and codes are shown only where the approved contract declares them. Use status, the declared error schema, and any correlation identifier returned by the App; do not infer that two Apps share one envelope.

  • 400 — Invalid request parameters or body (INVALID_REQUEST)
  • 401 — Vision credential missing or invalid (AUTHENTICATION_REQUIRED or INVALID_CREDENTIAL)
  • 403 — Scope, grant, identity class, or workspace role denied (PERMISSION_DENIED)
  • 404 — Requested task, list, subtask, reminder, or other command target was not found (NOT_FOUND)
  • 409 — Idempotency-key conflict or command rejected in the target's current state (INVALID_REQUEST)
  • 413 — Command request body exceeds the 32 KiB payload limit (INVALID_REQUEST)
  • 503 — Database, authorization dependency, or other required dependency unavailable (DEPENDENCY_UNAVAILABLE)

Collection behavior

Pagination: not declared. Filtering/search: not declared. Sorting: not declared.

Cursor lifetime, cursor binding, stable ordering, maximum traversal, and unknown-filter behavior are not assumed unless stated by a parameter description or schema constraint above.

Operational behavior

  • Rate limit: No operation-specific limit or 429 response is declared.
  • Retry: Retry only when the documented error model or response headers authorize it. Timeout and backoff values are not declared by this operation.
  • Idempotency: No idempotency header or replay window is declared.
  • Concurrency: No ETag, If-Match, or optimistic-version header is declared.

Security and privacy

  • Keep client credentials and bearer tokens on trusted servers.
  • Send only to the exact approved HTTPS origin and audience.
  • Treat response data according to the owning App's classification and retention policy; the OpenAPI contract does not itself grant data access.
  • Do not log credentials, tokens, complete private payloads, or secrets.

Edge cases and known documentation gaps

  • Business roles, timeout, retry budget, rate value, idempotency window, and concurrency behavior are absent unless explicitly stated above.

Contract history and evidence