Skip to content

Your team

Get your team

GET https://changemap.co/api/1/team/

Returns the team owning the API token, including a list of team members.

Request

curl "https://changemap.co/api/1/team/" \
  -H "Authorization: Token [your_token]"
import requests

url = "https://changemap.co/api/1/team/"
requests.get(url,
    headers={'Authorization':'Token [your_token]'})

Response

{
    "name": "Hello Code",
    "slug": "hellocode",
    "url": "https://hellocode.co",
    "created": "2016-10-14T06:08:17.089263Z",
    "avatar": "http://changemap.athena.lan/media/avatars/t_hellocode1536145568.png",
    // list of team members
    "members": [
        {
            "user": {
                "id": 31,
                "first_name": "Belle",
                "last_name": "Cooper",
                "email": "test@changemap.co"
            },
            // can be admin or moderator
            "role": "Administrator",
            "created": "2018-10-10T04:01:06.999893Z"
        }
    // snip...
    ]
}