Writing
Add Elements
POST
/boards/{board_id}/elements
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "http://localhost:3000/api/v1/boards/example/elements"
payload := strings.NewReader("{ \"elements\": [ { \"language\": \"plain\", \"collapsed\": true, \"numbered\": true, \"marked\": [ 1 ], \"bold\": true, \"size\": \"small\", \"opacity\": 1, \"rotation\": 1, \"stroke\": 1, \"dash\": true, \"id\": \"example\", \"kind\": \"card\", \"x\": 1, \"y\": 1, \"w\": 1, \"h\": 1, \"frame\": \"example\", \"text\": \"example\", \"title\": \"example\", \"color\": \"example\", \"shape\": \"rectangle\", \"ref\": \"example\", \"from\": \"example\", \"to\": \"example\", \"label\": \"example\", \"note\": \"example\", \"at\": \"2026-04-15T12:00:00Z\", \"repeat\": \"daily\", \"status\": \"example\", \"on\": \"example\" } ] }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'http://localhost:3000/api/v1/boards/example/elements';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"elements":[{"language":"plain","collapsed":true,"numbered":true,"marked":[1],"bold":true,"size":"small","opacity":1,"rotation":1,"stroke":1,"dash":true,"id":"example","kind":"card","x":1,"y":1,"w":1,"h":1,"frame":"example","text":"example","title":"example","color":"example","shape":"rectangle","ref":"example","from":"example","to":"example","label":"example","note":"example","at":"2026-04-15T12:00:00Z","repeat":"daily","status":"example","on":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/boards/example/elements \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "elements": [ { "language": "plain", "collapsed": true, "numbered": true, "marked": [ 1 ], "bold": true, "size": "small", "opacity": 1, "rotation": 1, "stroke": 1, "dash": true, "id": "example", "kind": "card", "x": 1, "y": 1, "w": 1, "h": 1, "frame": "example", "text": "example", "title": "example", "color": "example", "shape": "rectangle", "ref": "example", "from": "example", "to": "example", "label": "example", "note": "example", "at": "2026-04-15T12:00:00Z", "repeat": "daily", "status": "example", "on": "example" } ] }'Adds notes, text, shapes, frames, cards and arrows, all of them or none.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”board_id
required
Board Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
AddIn
object
elements
required
Elements
Array<object>
NewElementobject
marked
Marked
Any of:
Array<integer>
null
kind
required
Kind
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Written
object
elements
required
Elements
Array<object>
ElementOne element; fields that do not belong to its kind are left out of the answer.
object
id
required
Id
string
kind
required
Kind
string
editable
Editable
boolean
marked
Marked
Any of:
Array<integer>
null
task
created
required
Created
Array<string>
Example
{ "elements": [ { "kind": "card", "editable": false } ]}No key, or a key that stopped working
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}The key may not do this, or keys are switched off
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Not found, or not among what the key reaches
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}The request does not match the schema
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Over a budget; see Retry-After
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}