List teams
GET/v2/orgs/:org_id/teams
Retrieves list of teams in an existing organization.
Required scope
organizations:teams:readRate limiting
Level 1Enterprise only
This API is available only for Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin. You can request temporary access to Enterprise APIs using this form.
Request
Path Parameters
The id of the Organization.
Query Parameters
Possible values: >= 1
and <= 100
Default value: 100
An indicator of the position of a page in the full set of results. To obtain the first page leave it empty. To obtain subsequent pages set it to the value returned in the cursor field of the previous request.
Name query. Filters teams by name using case insensitive partial match. A value "dev" will return both "Developer's team" and "Team for developers".
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Page of teams that match the search query.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: >= 1
and <= 100
Default value: 100
The maximum number of results to return per call. If the number of project in the response is greater than the limit specified, the response returns the cursor parameter with a value.
Possible values: <= 100
Default value: 100
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.
data
object[]
required
List of teams
Team id
Team name
picture
object
Id of the picture
Url of the picture
Original team picture url for icon generation
Default value: picture
Type of the object returned.
Default value: team
Type of the object returned.
Indicator of the position of the next page of the result. To retrieve the next page, make another query setting its cursor field to the value returned by the current query. If the value is empty, there are no more pages to fetch.
Default value: cursor-list
Type of the object returned.
{
"limit": 100,
"size": 87,
"data": [
{
"id": "3074457345618265000",
"name": "My Team",
"picture": {
"id": 3074457345618261500,
"imageURL": "https://miro.images/5252525252/125252/266/144/1/size210.jpg",
"originalUrl": "https://miro.com/original-image.jpg",
"type": "picture"
},
"type": "team"
}
],
"cursor": "3074457345821140946",
"type": "cursor-list"
}
Malformed request
- application/json
- Schema
- Example (from schema)
Schema
Default value: 400
HTTP status code.
Default value: invalidParameters
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 400,
"code": "invalidParameters",
"message": "string",
"type": "error"
}
Invalid authentication credentials
- application/json
- Schema
- Example (from schema)
Schema
Default value: 401
HTTP status code.
Default value: tokenNotProvided
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 401,
"code": "tokenNotProvided",
"message": "string",
"type": "error"
}
Invalid access
- application/json
- Schema
- Example (from schema)
Schema
Default value: 403
HTTP status code.
Default value: forbiddenAccess
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 403,
"code": "forbiddenAccess",
"message": "string",
"type": "error"
}
Invalid access
- application/json
- Schema
- Example (from schema)
Schema
Default value: 404
HTTP status code.
Default value: notFound
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 404,
"code": "notFound",
"message": "string",
"type": "error"
}
Too many requests
- application/json
- Schema
- Example (from schema)
Schema
Default value: 429
HTTP status code.
Default value: tooManyRequests
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 429,
"code": "tooManyRequests",
"message": "string",
"type": "error"
}