Mailgun supports the creation, modification, and deletion of subaccounts. A subaccount is a child account of a parent account. The parent account can have multiple subaccounts. The subaccounts are created and managed by the parent account.
Create a subaccount
Successfully created a subaccount
Error response
{- "subaccount": {
- "id": "123",
- "name": "My subaccount",
- "status": "open"
}
}
Disable a subaccount
Subaccount disabled successfully
Subaccount is already disabled
Not found
{- "subaccount": {
- "id": "123",
- "name": "My subaccount",
- "status": "disabled"
}
}
Enable a subaccount
Subaccount enabled successfully
Cannot enable due to limit reached
Not found
{- "subaccount": {
- "id": "123",
- "name": "My subaccount",
- "status": "open"
}
}
Update subaccount feature
{- "features": {
- "validations": {
- "enabled": true
}
}
}