Get connectors
GET/v2/boards/:board_id/connectors
Retrieves a list of connectors for a specific board.
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 from which you want to retrieve a list of connectors.
Query Parameters
Possible values: >= 10
and <= 50
Default value: 10
Responses
- 200
- 400
- 404
- 429
Connectors retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
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.
data
object[]
Contains the result data.
captions
object[]
Blocks of text you want to display on the connector.
Possible values: <= 200 characters
The text you want to display on the connector. Supports inline HTML tags.
The relative position of the text on the connector, in percentage, minimum 0%, maximum 100%. With 50% value, the text will be placed in the middle of the connector line. Default: 50%
Possible values: [top
, middle
, bottom
]
The vertical position of the text on the connector. Default: middle
Date and time when the connector 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
.
endItem
object
The starting point of the connector.
Unique identifier (ID) of the item the connector is attached to.
links
object
Contains applicable links for the current object.
Link to obtain more information about the current object.
position
object
The relative position of the point on an item where the connector is attached. Position with x=0% and y=0% correspond to the top-left corner of the item, x=100% and y=100% correspond to the right-bottom corner.
X-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%.
Y-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%.
Unique identifier (ID) of a connector.
Indicates whether the connector is supported at the moment. If this parameter returns false
, we do not support the connector at the moment. We do not allow updates for unsupported connectors and we might not return all data about the connector, such as intermediate points and connection points to the canvas.
links
object
Contains applicable links for the current object.
Link to obtain more information about the current object.
Date and time when the connector 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
.
Possible values: [straight
, elbowed
, curved
]
Default value: curved
The path type of the connector line, defines curvature. Default: curved.
startItem
object
The starting point of the connector.
Unique identifier (ID) of the item the connector is attached to.
links
object
Contains applicable links for the current object.
Link to obtain more information about the current object.
position
object
The relative position of the point on an item where the connector is attached. Position with x=0% and y=0% correspond to the top-left corner of the item, x=100% and y=100% correspond to the right-bottom corner.
X-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%.
Y-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%.
style
object
Contains information about the style of a connector, such as the color or caption font size
Hex value representing the color for the captions on the connector. Default: #1a1a1a
Possible values: [none
, stealth
, diamond
, filled_diamond
, oval
, filled_oval
, arrow
, triangle
, filled_triangle
, erd_one
, erd_many
, erd_only_one
, erd_zero_or_one
, erd_one_or_many
, erd_zero_or_many
]
The decoration cap of the connector end, like an arrow or circle. Default: stealth.
Possible values: >= 10
and <= 288
Defines the font size, in dp, for the captions on the connector. Default: 14
Possible values: [none
, stealth
, diamond
, filled_diamond
, oval
, filled_oval
, arrow
, triangle
, filled_triangle
, erd_one
, erd_many
, erd_only_one
, erd_zero_or_one
, erd_one_or_many
, erd_zero_or_many
]
The decoration cap of the connector end, like an arrow or circle. Default: none.
Hex value of the color of the connector line. Default: #000000.
Possible values: [normal
, dotted
, dashed
]
The stroke pattern of the connector line. Default: normal.
Possible values: >= 1
and <= 24
The thickness of the connector line, in dp. Default: 1.0.
Possible values: [horizontal
, aligned
]
The captions orientation relatively to the connector line curvature. Default: aligned.
Type of board object that is returned.
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.
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.
{
"cursor": "MzQ1ODc2NDUyMjQ5MDA4Mjg5NX4=",
"data": [
{
"captions": [
{
"content": "<p>Caption text</p>",
"position": "50%",
"textAlignVertical": "top"
}
],
"createdAt": "2022-03-30T17:26:50.000Z",
"createdBy": {
"id": "3458764517517852417",
"type": "user"
},
"endItem": {
"id": "3458764517517818867",
"links": {
"self": "http://api.miro.com/v2/boards/o9J_koQspF4=/object_type/3074457349143649487"
},
"position": {
"x": "50%",
"y": "0%"
}
},
"id": "3458764517517818867",
"isSupported": true,
"links": {
"self": "http://api.miro.com/v2/boards/o9J_koQspF4=/object_type/3074457349143649487"
},
"modifiedAt": "2022-03-30T17:26:50.000Z",
"modifiedBy": {
"id": "3458764517517852417",
"type": "user"
},
"shape": "curved",
"startItem": {
"id": "3458764517517818867",
"links": {
"self": "http://api.miro.com/v2/boards/o9J_koQspF4=/object_type/3074457349143649487"
},
"position": {
"x": "50%",
"y": "0%"
}
},
"style": {
"color": "#9510ac",
"endStrokeCap": "none",
"fontSize": "15",
"startStrokeCap": "none",
"strokeColor": "#2d9bf0",
"strokeStyle": "normal",
"strokeWidth": "2.0",
"textOrientation": "horizontal"
},
"type": "string"
}
],
"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=="
},
"size": 1,
"total": 0
}
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"
}