Skip to main content
GET
List messages in an Outlook mail folder

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

folderId
string
required

Folder ID or a well-known folder name: inbox, drafts, sentitems, deleteditems, archive or junkemail.

Required string length: 1 - 512

Query Parameters

unreadOnly
enum<string>

Set to true to return only unread messages.

Available options:
true,
false
pageToken
string

nextPageToken from the previous page of the same list

Required string length: 1 - 4096
maxResults
integer
default:10

Maximum per page (default 10).

Required range: 1 <= x <= 25

Response

Microsoft 365 data returned.

ok
boolean
required
messages
object[]
required
nextPageToken
string | null
required
hasMore
boolean
required