List mailboxes
Mailboxes your FreeScout account can open, with their IDs and email addresses.
GET https://cotlet.dev/api/v1/freescout/mailboxes
read
Returns the mailboxes your login has access to. mailbox_id is the number at the end of the mailbox settings address, and the other tools take it. An admin sees all mailboxes; other agents see the ones they were given.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/freescout/mailboxes \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freescout", "list_mailboxes") const result = await cotlet.call('freescout', 'list_mailboxes'); cotlet call freescout list_mailboxes Example response
{
"mailboxes": [
{
"mailbox_id": 1,
"name": "Support",
"email": "support@yourcompany.com"
},
{
"mailbox_id": 2,
"name": "Sales",
"email": "sales@yourcompany.com"
}
]
}