Capability Sources
List messages in an Outlook mail folder
Changed onLists message summaries, newest first, from a single folder. Can return only unread messages; does not load full message bodies. Pass nextPageToken as pageToken for the next page; hasMore with a null token means the list is partial.
get/v1/capabilities/microsoft-365/mail-folders/{folderId}/messages
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
folderId, string required
Folder ID or a well-known folder name: inbox, drafts, sentitems, deleteditems, archive or junkemail.
Query parameters
unreadOnly, 'true' | 'false'
Set to true to return only unread messages.
pageToken, string
nextPageToken from the previous page of the same list
maxResults, integer
Maximum per page (default 10).
Response
Microsoft 365 data returned.
object required
ok, true required
messages, object[] required
nextPageToken, string nullable required
hasMore, boolean required
Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info