List users
Users of a workspace with their type, so you know who can approve a post.
GET https://cotlet.dev/api/v1/sendible/workspaces/{workspace_id}/users
read
Returns the users who have access to one workspace: id, name and type. The type is admin, team_member or client, the three user types Sendible has. Use a user_id from here as approver_id in send_for_approval. Adding or editing users stays in Sendible.
Parameters
| Name | Type | Description |
|---|---|---|
| workspace_id string required | string | Workspace from list_workspaces. |
| type enum | enum | admin, team_member or client. Default: all. |
Request
curl https://cotlet.dev/api/v1/sendible/workspaces/workspace_8c41d2/users \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("sendible", "list_users", {"workspace_id":"workspace_8c41d2"}) const result = await cotlet.call('sendible', 'list_users', {"workspace_id":"workspace_8c41d2"}); cotlet call sendible list_users --data '{"workspace_id":"workspace_8c41d2"}' Example response
{
"users": [
{
"user_id": "usr_12",
"name": "Priya Nair",
"type": "admin"
},
{
"user_id": "usr_88",
"name": "Mia Harbor",
"type": "client"
}
]
}