curl --location --request POST 'https://api.inboxkit.com/v1/api/prewarm/buy-domain' \
--header 'X-Workspace-Id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"domains": [
{
"domain_id": "507f1f77bcf86cd799439011",
"consent_screen_url": "https://example.com/consent",
"mailboxes": [
{
"mailbox_id": "507f191e810c19729de860ea",
"username": "john.smith",
"first_name": "John",
"last_name": "Smith",
"profile_picture": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA..."
},
{
"mailbox_id": "507f191e810c19729de860eb",
"username": "jane.wilson",
"first_name": "Jane",
"last_name": "Wilson",
"profile_picture": "https://example.com/images/jane.jpg"
}
]
},
{
"domain_name": "another-domain.com",
"mailboxes": [
{
"username": "admin",
"first_name": "Admin",
"last_name": "User"
}
]
}
],
"sequencer_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}'
{
"error": false,
"message": "Prewarm order created successfully and queued for processing",
"data": {
"order_uid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"order_id": "674a5b8c9d1e2f3a4b5c6d7e",
"status": "pending",
"total_domains": 2,
"total_mailboxes": 3,
"total_price": 24,
"domains": [
{
"domain_id": "507f1f77bcf86cd799439011",
"domain_name": "example.com",
"mailboxes_count": 2,
"consent_screen_url": "https://example.com/consent"
},
{
"domain_id": "507f1f77bcf86cd799439013",
"domain_name": "another-domain.com",
"mailboxes_count": 1,
"consent_screen_url": null
}
],
"sequencer_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"buyer": {
"team_uid": "77659233-b0ba-4b17-8b07-1df219de1ef9",
"workspace_uid": "workspace-abc-def-ghi"
}
}
}