List splits
GET
/api/mailboxes/{mailboxId}/splits
const url = 'https://app.docstosheets.com/api/mailboxes/example/splits';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.docstosheets.com/api/mailboxes/example/splits \ --header 'Authorization: Bearer <token>'Returns the mailbox’s splits with extraction counts, newest/highest split value first. A mailbox without split keys returns a single entry with a null split value.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” mailboxId
required
string
Responses
Section titled “ Responses ” Media type application/json
object
hasSplitKeys
required
False when the mailbox has no split keys (single “All data” entry).
boolean
splits
required
Array<object>
object
splitValue
The raw split value used in queries (e.g. “Year_2025”); null for an unsplit mailbox.
string
displayLabel
required
Friendly label for the selector (e.g. “2025” or “2025 · TX”).
string
count
required
Number of extracted documents in the split.
integer format: int32
spreadsheetUrl
The split’s workbook link, when it has been exported.
string
Example generated
{ "hasSplitKeys": true, "splits": [ { "splitValue": "example", "displayLabel": "example", "count": 1, "spreadsheetUrl": "example" } ]} Media type application/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}