Create. API

Mail Forwarding

Access Levels
Group: general, domains
Resource: mail_alias

List all mail alias

GET 	https://api.create.net/mail_alias

Input

GET 	https://api.create.net/mail_alias?domain_id=2672
Param Type Required Description
domain_id INT Optional The ID of the domain. See Domain Names

Response

Status: 200 OK
{ "mail_alias" :[ 
	{
		"ID" : 236,
		"domain_id" : 2672,
		"alias" : "help",
		"email" : "adam@create.net"
	}
]}

Get a single mail alias

GET 	https://api.create.net/mail_alias/:id

Response

Status: 200 OK
{ "mail_alias" : 
	{
		"ID" : 236,
		"domain_id" : 2672,
		"alias" : "help",
		"email" : "adam@create.net"
	}
}

Create a mail alias

POST 	https://api.create.net/mail_alias

Input

Param Type Required Description
domain_id INT Required The ID of the domain. See Domain Names
alias string Required The alias of the forwarding address
Example: info (Will become: info@mydomain.com)
email string Required The email address to forward to.
Example: adam@create.net

Response

Status: 201 Created
Location: http://api.create.net/mail_alias/236
{ "mail_alias" : 
	{
		"ID" : 236,
		"domain_id" : 2672,
		"alias" : "help",
		"email" : "adam@create.net"
	}
}

Update a mail alias

PUT 	https://api.create.net/mail_alias/:id

Input

Param Type Required Description
alias string Optional The alias of the forwarding address
Example: info (Will become: info@mydomain.com)
email string Optional The email address to forward to.
Example: adam@create.net

Response

Status: 200 OK

Delete a mail alias

DELETE 	https://api.create.net/mail_alias/:id

Response

Status: 200 OK