200 means accepted, not connected. Poll GET /onebox/connected-mailboxes to see when a mailbox becomes active.ACTIVE, sitting on an ACTIVE domain, under a subscription that is ACTIVE or RENEWING. Anything else is rejected with 400.{ "userId": "K5PF9Y068AMDGENV5BTCNJJZK55F", "email": "andrew.lawyer@aurumlawyer.com" }{ "userId": "K5PF9Y068AMDGENV5BTCNJJZK55F", "connectAll": true }connectAllmust be a real JSON boolean. The string"true"is rejected.
curl --location 'https://customers.coldmailreseller.com/api/v1/integration/onebox/connect' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "K5PF9Y068AMDGENV5BTCNJJZK55F",
"email": "andrew.lawyer@aurumlawyer.com",
"connectAll": false
}'{
"status": 200,
"message": "1 mailbox connection(s) queued",
"data": {
"queued": true,
"count": 1,
"mailboxes": [
{
"email": "andrew.lawyer@aurumlawyer.com",
"provider": "GMAIL",
"jobId": "onebox-connect-andrew.lawyer@aurumlawyer.com",
"connectionId": "bec102ab-d0d1-42b5-9d5d-feda42893ef3"
}
]
}
}