Zum Inhalt

Reference

Tasks

GET/api/v1/tasksList tasks

Lists tasks the way the task list in nxva.base does, 50 per page, soonest due first. Without a status it shows what is still to be done (open, in_progress). Use get_task for one task's description and comments.scope tasks:read

Query

statusone of open, in_progress, done, cancelled[]Statuses to include. Default: open and in_progress.
assigneestring"me", "unassigned", or a user id.
orderstringAn order id or number (e.g. "AB-2026-0007"), or "none" for tasks without an order.
dueone of overdue, today, this_week, this_month, none
sourceone of github, wingman, customer, public
querystringWords to find in number, title, description, comments, order, assignee or issue.
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].idstring
items[].numberstring
items[].titlestring
items[].statusstring
items[].prioritystring
items[].due_datestring | null
items[].assigneestring | null
items[].orderoptionalobject | null
items[].order.numberstring
items[].order.customerstring
items[].sourceone of github, wingman, customer, public
items[].issue_urloptionalstring | null
items[].urlstring
pageinteger
totalinteger
has_moreboolean
Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "due_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ]
          },
          "order": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "number": {
                    "type": "string"
                  },
                  "customer": {
                    "type": "string"
                  }
                },
                "required": [
                  "number",
                  "customer"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "github",
              "wingman",
              "customer",
              "public"
            ]
          },
          "issue_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "status",
          "priority",
          "due_date",
          "assignee",
          "source",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "has_more"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/tasksCreate task

Creates a task, as the signed-in person -- tasks.manage only, as on the page. Optionally on an order, assigned to somebody, with dates, an estimate, a status and a priority. With a reporter it is a customer request raised for that person: it belongs to their company and they see it in support. visible_to_customer shows an internal task in support too, on an order. Creating either mails nobody -- the same as the form.scope tasks:create

Body (JSON)

titlerequiredstring
descriptionstringMarkdown.
orderstringThe order's id or number, e.g. "AB-2026-0007".
assigneestring"me", or a user id. Default: nobody.
statusone of open, in_progress, done, cancelledDefault: open.
priorityone of low, medium, highDefault: medium.
start_datestringYYYY-MM-DD.
due_datestringYYYY-MM-DD, not before start_date.
planned_minutesintegerThe estimate, in minutes.
reporterstringA person's id or email address. Makes the task a customer request from them: always visible to the customer. On an order, the person must belong to its company.
visible_to_customerbooleanShow an internal task to the customer in support. Only takes effect on a task with an order. Default: false.

Response 200

idstring
numberstring
statusstring
prioritystring
assigneestring | null
orderoptionalstring | null
due_datestring | null
originstring
reported_byoptionalstring | null
visible_to_customeroptionalboolean
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "priority": {
      "type": "string"
    },
    "assignee": {
      "type": [
        "string",
        "null"
      ]
    },
    "order": {
      "type": [
        "string",
        "null"
      ]
    },
    "due_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "origin": {
      "type": "string"
    },
    "reported_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "visible_to_customer": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "status",
    "priority",
    "assignee",
    "due_date",
    "origin",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/tasks/{id}Get task

One task with its description, dates, planned and booked time, the GitHub issue it mirrors if any, and every comment. Comments carry an audience: internal notes, or answers the customer can read. The task and each comment list their attachments; get_attachment reads one whose scan_state is clean. A public request (source public) has a requester instead of reported_by; an answer with audience customer is mailed to them.scope tasks:read

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Response 200

idstring
numberstring
titlestring
descriptionstring | null
statusstring
prioritystring
kindstring
sourceone of github, wingman, customer, public
start_datestring | null
due_datestring | null
completed_atstring | null
planned_minutesinteger | null
booked_minutesinteger
assigneeobject | null
assignee.idstring
assignee.namestring
created_bystring | null
created_by_agentoptionalstring
intake_item_idoptionalstring | null
orderoptionalobject | null
order.idstring
order.numberstring
order.customerstring
companyobject | null
company.idstring
company.namestring
reported_byoptionalstring | null
requesteroptionalobject | null
requester.emailstring
requester.namestring | null
public_addressoptionalstring | null
anonymised_atoptionalstring | null
visible_to_customeroptionalboolean
rejection_reasonoptionalstring | null
issueoptionalobject | null
issue.repositorystring
issue.numberinteger | null
issue.urlstring | null
issue.statestring | null
issue.labelsstring[]
issue.pending_pushes[]object[]
issue.pending_pushes[].kindstring
issue.pending_pushes[].attemptsinteger
issue.pending_pushes[].failedboolean
issue.pending_pushes[].last_errorstring | null
attachments[]object[]
attachments[].idstring
attachments[].file_namestring
attachments[].content_typestring
attachments[].bytesinteger
attachments[].scan_statestring
comments[]object[]
comments[].authorstring
comments[].originstring
comments[].audiencestring
comments[].bodystring | null
comments[].deletedboolean
comments[].agent_labelstring | null
comments[].agentoptionalstring
comments[].created_atstring
comments[].attachments[]object[]
comments[].attachments[].idstring
comments[].attachments[].file_namestring
comments[].attachments[].content_typestring
comments[].attachments[].bytesinteger
comments[].attachments[].scan_statestring
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "priority": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "github",
        "wingman",
        "customer",
        "public"
      ]
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "due_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "planned_minutes": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "booked_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_by_agent": {
      "type": "string"
    },
    "intake_item_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "order": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": "string"
            },
            "customer": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "number",
            "customer"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "company": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "reported_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "requester": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "email",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "public_address": {
      "type": [
        "string",
        "null"
      ]
    },
    "anonymised_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "visible_to_customer": {
      "type": "boolean"
    },
    "rejection_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "issue": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "repository": {
              "type": "string"
            },
            "number": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            },
            "state": {
              "type": [
                "string",
                "null"
              ]
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "pending_pushes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "attempts": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "failed": {
                    "type": "boolean"
                  },
                  "last_error": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "attempts",
                  "failed",
                  "last_error"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "repository",
            "number",
            "url",
            "state",
            "labels",
            "pending_pushes"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "attachments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "file_name": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "bytes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "scan_state": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "file_name",
          "content_type",
          "bytes",
          "scan_state"
        ],
        "additionalProperties": false
      }
    },
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "deleted": {
            "type": "boolean"
          },
          "agent_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "file_name": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "scan_state": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "file_name",
                "content_type",
                "bytes",
                "scan_state"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "author",
          "origin",
          "audience",
          "body",
          "deleted",
          "agent_label",
          "created_at",
          "attachments"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "title",
    "description",
    "status",
    "priority",
    "kind",
    "source",
    "start_date",
    "due_date",
    "completed_at",
    "planned_minutes",
    "booked_minutes",
    "assignee",
    "created_by",
    "company",
    "attachments",
    "comments",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

PATCH/api/v1/tasks/{id}Update task

Changes a task's status, priority, assignee, order or -- on a customer ticket -- reporter; at least one. order (tasks.manage): moves the task to another order, or off any with "none"; refused once settled time is booked on it, and an unassigned task gets the new order's default assignee. Status and priority: the assignee, or anybody with tasks.manage. Assignee: tasks.manage only. A status change on a task mirrored from GitHub is pushed to the issue. On a customer ticket, accepting (in_progress), declining (cancelled) or finishing (done) it mails the person who raised it, exactly as from the page; moving it back to open and changing its priority mail nobody. reporter: tasks.manage only, a person of the ticket's company; nobody is mailed about it, and the change is noted internally on the task. convert_to_customer_ticket (tasks.manage, with reporter): turns an internal task on an order into that person's customer ticket -- the reporter must belong to the order's company; title, description and attachments become visible to them in support, earlier comments stay internal, the status is kept, and it cannot be undone. The reporter is mailed only with notify_reporter.scope tasks:write

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Body (JSON)

statusone of open, in_progress, done, cancelled
priorityone of low, medium, high
assigneestring"me", "unassigned", or a user id.
reporterstringA customer ticket's new reporter: a person's id or email address, of the ticket's company. tasks.manage only.
orderstringThe order to move the task to, by id or number (e.g. "AB-2026-0007"), or "none". tasks.manage only.
convert_to_customer_ticketbooleantrue: turns an internal task into a customer ticket raised by `reporter`. Irreversible. tasks.manage only.
notify_reporterbooleanWith convert_to_customer_ticket: mails the reporter that the ticket was opened. Default false.

Response 200

numberstring
statusstring
prioritystring
assigneestring | null
orderoptionalstring | null
reported_byoptionalstring | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "priority": {
      "type": "string"
    },
    "assignee": {
      "type": [
        "string",
        "null"
      ]
    },
    "order": {
      "type": [
        "string",
        "null"
      ]
    },
    "reported_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "status",
    "priority",
    "assignee",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

DELETE/api/v1/tasks/{id}Delete task

Deletes a task entered by hand, with its comments. tasks.manage only. An onboarding step or a task from a GitHub issue is never deleted -- set its status to cancelled -- and neither is a task with booked time.scope tasks:create

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Response 200

deletedstring
Schema
{
  "type": "object",
  "properties": {
    "deleted": {
      "type": "string"
    }
  },
  "required": [
    "deleted"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/tasks/{id}/commentsAdd task comment

Writes a comment on a task, as the signed-in person, marked as written through an agent. Markdown is fine. audience defaults to internal. audience customer makes it an answer the customer reads in support, and mails the person who raised the ticket -- it cannot be taken back or made internal later, so write it as the final text. attachments takes ids from upload_attachment. On a task mirrored from GitHub the comment is also posted to the issue. Allowed to the assignee, or anybody with tasks.manage.scope tasks:comment

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Body (JSON)

bodyrequiredstringThe comment, Markdown.
audienceone of internal, customerinternal (default): the team only. customer: visible in support, and the reporter is mailed.
attachmentsstring[]Ids from upload_attachment, at most 5. With audience customer the customer sees them once scanned clean.

Response 200

numberstring
comment_idstring
audienceone of internal, customer
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "comment_id": {
      "type": "string"
    },
    "audience": {
      "type": "string",
      "enum": [
        "internal",
        "customer"
      ]
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "comment_id",
    "audience",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/tasks/{id}/push/discardDiscard task push

Gives up on pushes to GitHub that failed for good (issue deleted or locked, repository removed): the failed entries are dropped, the task stays as it is in nxva.base, and the next sync brings the issue's state back. A comment whose push is dropped stays in nxva.base only. The assignee, or anybody with tasks.manage.scope tasks:write

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Response 200

discardedinteger
Schema
{
  "type": "object",
  "properties": {
    "discarded": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "discarded"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/tasks/{id}/push/retryRetry task push

Tries again to push a task's pending status changes and comments to its GitHub issue, once the cause of a failure is fixed. The assignee, or anybody with tasks.manage. get_task shows whether a push failed.scope tasks:write

Path

idrequiredstringThe task's id or number, e.g. "AU-2026-0042".

Response 200

retriedinteger
still_pendinginteger
Schema
{
  "type": "object",
  "properties": {
    "retried": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "still_pending": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "retried",
    "still_pending"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.