Legacy Mailbox API 1.0 is deprecated
Legacy Mailbox API 1.0 was deprecated on November 20, 2019. Please use Mailbox API 2.0 going forward. If you have any questions or need help with the new API, please reach out.
Field Selectors
Each endpoint returns a default set of fields based upon the given request. However, you can override this behavior by supplying one or more field selectors to explicitly request the data you need.
Example 1
Instead of returning a complete mailbox object when requesting mailboxes, you could return just the mailbox ID and name.
- REST Method: GET
- URL: https://api.helpscout.net/v1/mailboxes.json?fields=id,name
Response
Response | Name | Type | Notes |
---|---|---|---|
Header | Status | Int | 200 if successful |
Body | page | Int | Current page that was passed in on the request |
pages | Int | Total number of pages available | |
count | Int | Total number of objects available | |
items | Collection | Collection of Mailbox fields that were requested. |
Example 2
Instead of returning a complete mailbox object when getting a mailbox, you could refine the response down to certain fields AND refine the list of folders returned as well.
- REST Method: GET
- URL: https://api.helpscout.net/v1/mailboxes.json?fields=id,name,folders:(id,name,type)
Response
Response | Name | Type | Notes |
---|---|---|---|
Header | Status | Int | 200 if successful |
Body | item | List of fields requested |