List Teams.

GET /api/teams

Query parameters

  • include string

    Comma-separated list of relationships to include in the response.

  • sort string

    Field to sort by. Defaults to 'id'.

  • page integer

    Page number to return.

  • per_page integer

    Number of items to return in a page. Defaults to 15.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data array[object]
      Hide data attributes Show data attributes object
      • id string
      • type string
      • attributes object
        Hide attributes attributes Show attributes attributes object
        • id integer
        • name string
        • events_count integer
        • experiments_count integer
        • participants_count integer
        • is_free boolean
        • api_requests integer
        • created object
          Hide created attributes Show created attributes object
          • human string
          • string string
        • updated object
          Hide updated attributes Show updated attributes object
          • human string
          • string string
  • 403 application/json
    Hide response attribute Show response attribute object
    • message string
  • 404 application/json
    Hide response attribute Show response attribute object
    • message string
GET /api/teams
curl \
 -X GET https://checkmango.com/api/teams \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": "1",
      "type": "teams",
      "attributes": {
        "id": 1,
        "name": "Waters, Toy and Oberbrunner",
        "events_count": 0,
        "experiments_count": 0,
        "participants_count": 0,
        "is_free": false,
        "api_requests": 0,
        "created": {
          "human": "1 second ago",
          "string": "2024-04-08 10:42:02"
        },
        "updated": {
          "human": "1 second ago",
          "string": "2024-04-08 10:42:02"
        }
      },
      "links": {
        "self": {
          "href": "http://checkmango.com/api/teams/1"
        }
      }
    },
    {
      "id": "2",
      "type": "teams",
      "attributes": {
        "id": 2,
        "name": "Jones Group",
        "events_count": 0,
        "experiments_count": 0,
        "participants_count": 0,
        "is_free": false,
        "api_requests": 0,
        "created": {
          "human": "1 second ago",
          "string": "2024-04-08 10:42:02"
        },
        "updated": {
          "human": "1 second ago",
          "string": "2024-04-08 10:42:02"
        }
      },
      "links": {
        "self": {
          "href": "http://checkmango.com/api/teams/2"
        }
      }
    }
  ]
}
Response examples (403)
{
  "message": "Unauthenticated."
}
Response examples (404)
{
  "message": "Not Found"
}