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

Parameters: list_users
NameTypeDescription
workspace_id string required string Workspace from list_workspaces.
type enum enum admin, team_member or client. Default: all.

Request

cURL
curl https://cotlet.dev/api/v1/sendible/workspaces/workspace_8c41d2/users \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sendible", "list_users", {"workspace_id":"workspace_8c41d2"})
Node.js
const result = await cotlet.call('sendible', 'list_users', {"workspace_id":"workspace_8c41d2"});
CLI
cotlet call sendible list_users --data '{"workspace_id":"workspace_8c41d2"}'

Example response

JSON

{
  "users": [
    {
      "user_id": "usr_12",
      "name": "Priya Nair",
      "type": "admin"
    },
    {
      "user_id": "usr_88",
      "name": "Mia Harbor",
      "type": "client"
    }
  ]
}

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.