List assignable users

The people you can assign conversations to in one mailbox.

GET https://cotlet.dev/api/v1/freescout/mailbox/{mailbox_id}/users

read

Returns the names in the Assignee dropdown of the mailbox, with their user_id. A mailbox can hide admins from that list with its "Hide from Assign list" permission, so a hidden admin is not returned. Use user_id with assign_conversation.

Parameters

Parameters: list_users
NameTypeDescription
mailbox_id integer required integer Mailbox ID from list_mailboxes. It is the number at the end of the mailbox settings address.

Request

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

Example response

JSON

{
  "users": [
    {
      "user_id": 2,
      "name": "Maya Brown"
    },
    {
      "user_id": 3,
      "name": "Sam Okafor"
    }
  ]
}

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.