To get a list of all team members, use the following request:
GET https://api.woodpecker.co/rest/v2/users
Sample response:
{
    "content": [ {
        "id": 1234,
        "name": "Michael Scott",
        "email": "[email protected]",
        "role": "admin"
    },
    {
        "id": 1235,
        "name": "Jim Halpert",
        "email": "[email protected]",
        "role": "user"
    }],
    "pagination_data": {
        "total_elements": 2,
        "total_pages": 1,
        "current_page_number": 1,
        "page_size": 50
    }
}
Response data type:
content - JSON object, list of all users with access to the specific company.
id - number, user ID.
name - string, user name.
email - string, user email.
role - string, a user role. Available roles: admin, user.
pagination_data - JSON object, informations about total elements available to check, total pages etc.
Want to integrate with us?
If you're interested in building a native integration with Woodpecker, fill out this form and we'll get back to you.
