Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Canvas

Get a canvas

One canvas. view=full (the default) gives every item on it; view=text gives an outline to read: each frame's title with the notes, text and shapes inside it, then the rest, each with its key, then the open comments. A long outline comes a page at a time (about 4,000 characters): its last line, and nextOffset, say which offset reads on.

get/api/v1/canvases/{id}

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.

Other ways to call it

CLItroopy canvases get
MCP tooltroopy_get_canvas
Rate limit120 calls in 60 seconds, for each key

Path parameters

id*string

A 24-character id

Query parameters

viewenum<string>

fulltext

Default "full"

offsetinteger

With view=text: the outline line to start at, to read on from a cut one

Default 0 · At least 0

Response

200 · application/json
data*object
13 properties
id*string

A 24-character id

name*string
createdBy*object

Who wrote it

3 properties
type*enum<string>

personagentapi

id*string
name*string
lastEditedBy*object | null

Who changed it last

3 properties
type*enum<string>

personagentapi

id*string
name*string
createdAt*string

ISO 8601 date and time

updatedAt*string

ISO 8601 date and time

seq*integer

Its latest change's number

timer*object | null

Its meeting timer: counting down, paused, or null when none is set

2 properties
running*boolean
left*integer

Milliseconds left

private*object | null

Private mode, while it is on: what people add stays hidden from others until it ends

1 properties
by*object
2 properties
id*string
name*string
share*object | null

Whether it has a guest link: view to look, edit to change it too. Only sharing it gives the link itself

1 properties
mode*enum<string>

viewedit

itemsarray<object>

Everything on it, bottom first (view=full)

23 properties
xnumber

Left edge, in canvas units

At least -1000000 · At most 1000000

ynumber

Top edge, in canvas units

At least -1000000 · At most 1000000

wnumber

Width

At least 0 · At most 100000

hnumber

Height

At least 0 · At most 100000

znumber

Stacking order: higher sits on top

At least -1000000000000 · At most 1000000000000

colorenum<string>

sandpeachrosemintskycyanorangestoneink

textstring

What a note, text or shape says, or a frame's title

At most 5000 characters

shapeenum<string>

rectellipse

fromobject

Where an arrow starts: an item it follows, or a point

1 properties
key*string

The item's key, unique on its canvas

toobject

Where an arrow ends: an item it follows, or a point

1 properties
key*string

The item's key, unique on its canvas

pointsarray<number>

A pen stroke: x, y pairs, from the item's x and y

At most 4000 items

widthnumber

A pen stroke's or arrow's thickness

At least 1 · At most 64

filestring

An image's file, as uploading it named it

voterstring

A vote's voter: the person's user id. A vote's to is the note it is for

taskstring

The task a note became, by its key (like VIR-12)

authorobject

A comment's writer: only they change or delete it

2 properties
id*string

At most 64 characters

name*string

At least 1 characters · At most 80 characters

threadstring

A reply's comment: the first comment of its thread

resolvedboolean

A thread settled: its pin hides

atstring

When a comment was written (set by Troopy)

date-time

privateTostring

Hidden from everyone but this person while private mode is on (set by Troopy)

At most 64 characters

guestboolean

Added by a guest, through the canvas's link (set by Troopy)

key*string

The item's key, unique on its canvas

type*enum<string>

stickytextshapearrowpenframeimagevotecomment

outlinestring

Its frames, notes, text and shapes with words, one a line with its key, by frame (view=text). A long one is cut at about 4,000 characters: its last line says where to read on

nextOffsetinteger | null

With view=text: the offset that reads on when the outline was cut, else null

Errors

400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
404 not_foundCheck the path and any id in it. Every operation is listed in /api/v1/openapi.json.
429 rate_limitedWait the number of seconds in Retry-After, then retry.