List members

Members of an organization with user ID, name, email and role.

GET https://cotlet.dev/api/v1/hubstaff/organizations/{organization_id}/members

read

Lists the members of one organization with their user ID and role, as on People > Members. Use the user IDs in the tools that add time or put someone on a project.

Parameters

Parameters: list_members
NameTypeDescription
organization_id integer required integer Organization ID from list_organizations.
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/hubstaff/organizations/1/members \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("hubstaff", "list_members", {"organization_id":1})
Node.js
const result = await cotlet.call('hubstaff', 'list_members', {"organization_id":1});
CLI
cotlet call hubstaff list_members --data '{"organization_id":1}'

Example response

JSON

{
  "members": [
    {
      "user_id": 3011,
      "name": "Maria Silva",
      "email": "maria@example.com",
      "role": "user"
    },
    {
      "user_id": 3012,
      "name": "Tom Becker",
      "email": "tom@example.com",
      "role": "user"
    },
    {
      "user_id": 3014,
      "name": "Dana Whitfield",
      "email": "dana@example.com",
      "role": "manager"
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.