Inbox-connect plumbing: fetches the folders of a linked mailbox from the provider, saves them on the mailbox and returns them. Folder ids can be passed as folderIds when starting an import. An extraction-code user may only name a mailbox linked to their own code (404 otherwise).
POST
/email-data/{caseId}/fetch-folders-for-email-provider/{providerId}
curl \
--request POST 'http://api.example.com/email-data/{caseId}/fetch-folders-for-email-provider/{providerId}' \
--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"
}