VoidTrack Docs
API Reference

Documents

GET
/documents
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Query Parameters

q?string

Full text search over title and content

issue?string

Filter to documents linked to this issue identifier

team?string

Filter to a single team

Response Body

application/json

application/json

curl -X GET "https://example.com/documents"
{  "documents": [    {      "id": "string",      "title": "string",      "team": {        "key": "string",        "name": "string"      },      "content": "string",      "creator": {        "id": "string",        "name": "string"      },      "issues": [        {          "identifier": "string",          "title": "string"        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}
POST
/documents
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/documents" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "team": "string"  }'
{  "document": {    "id": "string",    "title": "string",    "team": {      "key": "string",      "name": "string"    },    "content": "string",    "creator": {      "id": "string",      "name": "string"    },    "issues": [      {        "identifier": "string",        "title": "string"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
GET
/documents/{id}
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Document id

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/documents/string"
{  "document": {    "id": "string",    "title": "string",    "team": {      "key": "string",      "name": "string"    },    "content": "string",    "creator": {      "id": "string",      "name": "string"    },    "issues": [      {        "identifier": "string",        "title": "string"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
PATCH
/documents/{id}
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Document id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/documents/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "document": {    "id": "string",    "title": "string",    "team": {      "key": "string",      "name": "string"    },    "content": "string",    "creator": {      "id": "string",      "name": "string"    },    "issues": [      {        "identifier": "string",        "title": "string"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
DELETE
/documents/{id}
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Document id

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/documents/string"
{  "ok": true}