curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#OUTLOOK_GET_MESSAGES' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "OUTLOOK_GET_MESSAGES",
"parameters": {
"userId": "<string>",
"mailFolder": "<string>",
"messagesFilterFormula": {
"operator": "OR",
"conditions": [
{
"operator": "AND",
"conditions": [
{
"field": "subject",
"operator": "$stringExactlyMatches",
"value": "<string>"
}
]
}
]
},
"limitResults": "<string>"
}
}
'curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#OUTLOOK_GET_MESSAGES' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "OUTLOOK_GET_MESSAGES",
"parameters": {
"userId": "<string>",
"mailFolder": "<string>",
"messagesFilterFormula": {
"operator": "OR",
"conditions": [
{
"operator": "AND",
"conditions": [
{
"field": "subject",
"operator": "$stringExactlyMatches",
"value": "<string>"
}
]
}
]
},
"limitResults": "<string>"
}
}
'Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
User ID : Specify a user ID to perform this action if you are working with an application token. (example: "1b671a64-40d5-491e-99b0-da01ff1f3341")
Specify which mail folder to get messages from. Defaults to the user's primary mail folder if left blank
A filter in disjunctive normal form: OR of AND groups of single conditions
Show child attributes
Top-level operator must be OR (DNF enforced)
OR Each item is an AND group (a conjunction of single conditions)
Show child attributes
Each group is an AND of single conditions
AND List of single conditions (AND together)
Show child attributes
subject, sender/emailAddress/address, isDraft, isRead $stringExactlyMatches, $booleanTrue, $booleanFalse, $stringContains, $stringEndsWith, $stringStartsWith Value to compare against
Limit Results : Limit the maximum number of messages to return. Defaults to 10 if left blank. Maximum is 1,000.
Success
Was this page helpful?