Fetches the folders of a mailbox linked to the extraction code's case live from the email provider, saves them on the mailbox and returns them. Returns 404 for a mailbox that is not linked to the caller's extraction code.
POST
/extraction/case/email-providers/{providerId}/folders
curl \
--request POST 'http://api.example.com/extraction/case/email-providers/{providerId}/folders' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "INBOX",
"name": "Inbox",
"isSystemFolder": true,
"backgroundColor": "string",
"metadata": {}
}
],
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}