- Zapmail Docs
- users
- workspaces
- billing
- mailbox
- payments & wallet
- export
- subscriptions
- domains
- Retrieve All Domains
- List Assignable Domains
- Add DMARC record
- Add Domain forwarding
- Get Name servers to connect domain
- Verify Name Server Propagation
- Connect Domain with Zapmail
- Enable email forwarding
- Remove email forwarding
- Enable catch all emails
- Remove catch all emails
- Check DNS records
- Remove unused domains
- Get available domains for registration
- Get domains purchase payment link
- Get domain connection requests
- Remove domain connection requests
- Connect Domain with Zapmail (New)
- dns
Create new workspace
POST
/v2/workspaces
Request
Header Params
x-auth-zapmail
string
required
Example:
{{x-auth-zapmail}}
Body Params application/json
name
string
required
billingDetails
object
required
company
string
required
firstName
string
required
lastName
string
required
addressLineOne
string
required
addressLineTwo
string
optional
addressLineThree
string
optional
city
string
required
state
string
required
country
string
required
postalCode
string
required
phoneCc
string
required
phone
string
required
languagePreference
string
required
Example
{
"name": "New Workspace",
"billingDetails": {
"company": "Tech Solutions Ltd.",
"firstName": "John",
"lastName": "Doe",
"addressLineOne": "1234 Elm Street",
"addressLineTwo": "Apt 567",
"addressLineThree": null,
"city": "San Francisco",
"state": "California",
"country": "USA",
"postalCode": "94107",
"phoneCc": "+1",
"phone": "4151234567",
"languagePreference": "en"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zapmail.ai/api/v2/workspaces' \
--header 'x-auth-zapmail: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "New Workspace",
"billingDetails": {
"company": "Tech Solutions Ltd.",
"firstName": "John",
"lastName": "Doe",
"addressLineOne": "1234 Elm Street",
"addressLineTwo": "Apt 567",
"addressLineThree": null,
"city": "San Francisco",
"state": "California",
"country": "USA",
"postalCode": "94107",
"phoneCc": "+1",
"phone": "4151234567",
"languagePreference": "en"
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"status": 200,
"message": "Workspace created successfully",
"data": {
"id": "f69cde69-ab43-4168-b78b-77a50a02b8dd",
"name": "New Workspace",
"userId": "fbf34af0-be3b-4add-bd97-462e2471f65d",
"updatedAt": "2024-08-09T06:10:04.855Z",
"createdAt": "2024-08-09T06:10:04.855Z",
"deletedAt": null
}
}
Modified at 2025-03-18 12:36:24