Get items on board
GET/v2/boards/:board_id/items
Retrieves a list of items for a specific board. You can retrieve all items on the board, a list of child items inside a parent item, or a list of specific types of items by specifying URL query parameter values.
This method returns results using a cursor-based approach. A cursor-paginated method returns a portion of the total set of results based on the limit specified and a cursor that points to the next portion of the results. To retrieve the next portion of the collection, on your next call to the same method, set the cursor
parameter equal to the cursor
value you received in the response of the previous request. For example, if you set the limit
query parameter to 10
and the board contains 20 objects, the first call will return information about the first 10 objects in the response along with a cursor parameter and value. In this example, let's say the cursor parameter value returned in the response is foo
. If you want to retrieve the next set of objects, on your next call to the same method, set the cursor parameter value to foo
.
Required scope
boards:readRate limiting
Level 2Request
Path Parameters
Unique identifier (ID) of the board for which you want to retrieve the list of available items.
Query Parameters
Possible values: >= 10
and <= 50
Default value: 10
Possible values: [text
, shape
, sticky_note
, image
, document
, card
, app_card
, preview
, frame
, embed
]
Responses
- 200
- 400
- 404
- 429
Items retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
- TextData
- EmbedData
- CardData
- AppCardData
- ImageData
- DocumentData
- ShapeData
- FrameData
- StickyNoteData
Array [
]
]
data
object[]
Contains the result data.
Date and time when the item was created.
Format: UTC, adheres to ISO 8601, includes a trailing Z offset.
createdBy
object
Contains information about the user who created the item.
Unique identifier (ID) of the user.
Indicates the type of object returned. In this case, type
returns user
.
data
object
Contains the item data, such as the item title, content, or description.
oneOf
The actual text (content) that appears in the text item.
Type of the embedded item's content.
Short description of the embedded item.
Html code of the embedded item.
Possible values: [inline
, modal
]
Defines how the content in the embed item is displayed on the board.
inline
: The embedded content is displayed directly on the board.
modal
: The embedded content is displayed inside a modal overlay on the board.
The URL to download the resource. You must use your access token to access the URL.
The URL contains the redirect
parameter and the format
parameter to control the request execution as described in the following parameters:
format
parameter: By default, the image format is set to the preview image. If you want to download the original image, set the format
parameter in the URL to original
.
redirect
: By default, the redirect
parameter is set to false
and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.
If the redirect
parameter is set to true
, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned can be image/png
, 'image/svg', or 'image/jpg', depending on the original image type.
Name of the content's provider.
Url of the content's provider.
Title of the embedded item.
A valid URL pointing to the content resource that you want to embed in the board. Possible transport protocols: HTTP, HTTPS.
Unique user identifier. In the GUI, the user ID is mapped to the name of the user who is assigned as the owner of the task or activity described in the card. The identifier is numeric, and it is automatically assigned to a user when they first sign up.
A short text description to add context about the card.
The date when the task or activity described in the card is due to be completed. In the GUI, users can select the due date from a calendar. Format: UTC, adheres to ISO 8601, includes a trailing Z offset.
A short text header for the card.
A short text description to add context about the app card.
fields
object[]
Array where each object represents a custom preview field. Preview fields are displayed on the bottom half of the app card in the compact view.
Hex value representing the color that fills the background area of the preview field, when it's displayed on the app card.
Possible values: [round
, square
]
Default value: round
The shape of the icon on the preview field.
A valid URL pointing to an image available online. The transport protocol must be HTTPS. Possible image file formats: JPG/JPEG, PNG, SVG.
Hex value representing the color of the text string assigned to value
.
A short text displayed in a tooltip when clicking or hovering over the preview field.
The actual data value of the custom field. It can be any type of information that you want to convey.
Defines whether the card is owned by the application making the call.
Possible values: [disconnected
, connected
, disabled
]
Status indicating whether an app card is connected and in sync with the source. When the source for the app card is deleted, the status returns disabled
.
A short text header to identify the app card.
The URL to download the resource. You must use your access token to access the URL.
The URL contains the redirect
parameter and the format
parameter to control the request execution as described in the following parameters:
format
parameter: By default, the image format is set to the preview image. If you want to download the original image, set the format
parameter in the URL to original
.
redirect
: By default, the redirect
parameter is set to false
and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.
If the redirect
parameter is set to true
, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned can be image/png
, 'image/svg', or 'image/jpg', depending on the original image type.
A short text header to identify the image.
The URL to download the resource. You must use your access token to access the URL. The URL contains the redirect
parameter to control the request execution.
redirect
: By default, the redirect
parameter is set to false
and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.
If the redirect
parameter is set to true
, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned is application/octet-stream
.
A short text header to identify the document.
The text you want to display on the shape.
Possible values: [rectangle
, round_rectangle
, circle
, triangle
, rhombus
, parallelogram
, trapezoid
, pentagon
, hexagon
, octagon
, wedge_round_rectangle_callout
, star
, flow_chart_predefined_process
, cloud
, cross
, can
, right_arrow
, left_arrow
, left_right_arrow
, left_brace
, right_brace
]
Default value: rectangle
Defines the geometric shape of the item when it is rendered on the board.
Possible values: [custom
, desktop
, phone
, tablet
, a4
, letter
, ratio_1x1
, ratio_4x3
, ratio_16x9
]
Default value: custom
Only custom frames are supported at the moment.
Title of the frame. This title appears at the top of the frame.
Possible values: [freeform
, heap
, grid
, rows
, columns
]
Default value: freeform
Only free form frames are supported at the moment.
The actual text (content) that appears in the sticky note item.
Possible values: [square
, rectangle
]
Default value: square
Defines the geometric shape of the sticky note and aspect ratio for its dimensions.
geometry
object
Contains geometrical information about the item, such as its width or height.
Height of the item, in pixels.
Rotation angle of an item, in degrees, relative to the board. You can rotate items clockwise (right) and counterclockwise (left) by specifying positive and negative values, respectively.
Width of the item, in pixels.
Unique identifier (ID) of an item.
Date and time when the item was last modified.
Format: UTC, adheres to ISO 8601, includes a trailing Z offset.
modifiedBy
object
Contains information about the user who last modified the item.
Unique identifier (ID) of the user.
Indicates the type of object returned. In this case, type
returns user
.
parent
object
Contains information about the parent frame for the item.
Unique identifier (ID) of the parent frame for the item.
position
object
Contains location information about the item, such as its x coordinate, y coordinate, and the origin of the x and y coordinates.
Possible values: [center
]
Default value: center
Area of the item that is referenced by its x and y coordinates. For example, an item with a center origin will have its x and y coordinates point to its center. The center point of the board has x: 0 and y: 0 coordinates. Currently, only one option is supported.
Possible values: [canvas_center
, parent_top_left
]
X-axis coordinate of the location of the item on the board.
By default, all items have absolute positioning to the board, not the current viewport. Default: 0.
The center point of the board has x: 0
and y: 0
coordinates.
Y-axis coordinate of the location of the item on the board.
By default, all items have absolute positioning to the board, not the current viewport. Default: 0.
The center point of the board has x: 0
and y: 0
coordinates.
Type of item that is returned.
Total number of results available. If the value of the total
parameter is higher than the value of the size
parameter, this means that there are more results that you can retrieve. To retrieve more results, you can make another request and set the offset
value accordingly. For example, if there are 30
results, and the request has the offset
set to 0
and the limit
set to 20
, the size
parameter will return 20
and the total
parameter will return 30
. This means that there are 9 more results to retrieve (as the offset is zero-based).
Number of results returned in the response considering the cursor
and the limit
values sent in the request. For example, if there are 20
results, the request does not have a cursor
value, and the limit
set to 10
, the size
of the results will be 10
.
In this example, the response will also return a cursor value that can be used to retrieve the next set of 10 remaining results in the collection.
A cursor-paginated method returns a portion of the total set of results based on the limit
specified and a cursor
that points to the next portion of the results. To retrieve the next set of results of the collection, set the cursor
parameter in your next request to the value returned in this parameter.
Maximum number of results returned based on the limit
specified in the request. For example, if there are 20
results, the request has no cursor
value, and the limit
is set to 20
,the size
of the results will be 20
. The rest of the results will not be returned. To retrieve the rest of the results, you must make another request and set the appropriate value for the cursor
parameter value that you obtained from the response.
links
object
Contains pagination links for the collection.
Link to retrieve information in the first page of the collection.
Link to the retrieve information in the last page of the collection.
Link to retrieve information in the next page of the collection.
Link to retrieve information in the previous page of the collection.
Link to retrieve information in the current page of the collection.
{
"data": [
{
"createdAt": "2022-03-30T17:26:50.000Z",
"createdBy": {
"id": "3458764517517852417",
"type": "user"
},
"data": {},
"geometry": {
"height": 60,
"rotation": 0,
"width": 320
},
"id": "3458764517517819000",
"modifiedAt": "2022-03-30T17:26:50.000Z",
"modifiedBy": {
"id": "3458764517517852417",
"type": "user"
},
"parent": {
"id": "3074457362577955300"
},
"position": {
"origin": "center",
"relativeTo": "canvas_center",
"x": 100,
"y": 100
},
"type": "sticky_note"
}
],
"total": 0,
"size": 1,
"cursor": "MzQ1ODc2NDUyMjQ5MDA4Mjg5NX4=",
"limit": 20,
"links": {
"first": "http://api.miro.com/v2/boards/o9J_lJWSHdg=/items?limit=10&cursor=MzQ1ODc2NaSDN&#RDMDA3MzYyOX==",
"last": "http://api.miro.com/v2/boards/o9J_lJWSHdg=/items?limit=10&cursor=MzQ1ODc2NDUyNDUyMDA3MzYyOX==",
"next": "http://api.miro.com/v2/boards/o9J_lJWSHdg=/items?limit=10&cursor=MzQ1ODc2NDUyNDsdgsFEwfFJCw==",
"prev": "http://api.miro.com/v2/boards/o9J_lJWSHdg=/items?limit=10&cursor=",
"self": "http://api.miro.com/v2/boards/o9J_lJWSHdg=/items?limit=10&cursor=MzQ1OD1245643FWUyMDA3MzYyOX=="
}
}
Malformed request
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}
Too many requests
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}