Partner APIs

The following endpoints can be used to interact with Mailazy Partner Services.


1. Check Account Status

Creates a Mailazy account if it does not already exist. Partner would be responsible for account validation/email verification.

MethodHTTP POST
Path/api/v1/account/status
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com"

}

Response

{

"domain": "",</p><p>"dnsrecords": null,

`"domainverified": false,

"access_key_generated": false,</p><p>"emailverified": false,

`"accountexist": false

}

2. Create Account

Creates a Mailazy account if it does not already exist. Partner would be responsible for account validation/email verification.

MethodHTTP POST
Path/api/v1/account/
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com"

}

Response

{

"created": true

}

3. Verify Account

Checks whether an account exists.

MethodHTTP POST
Path/api/v1/account/verify
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com","otp": "768655"

}

Response

{

"verified": true

}

4. Add Domain

Adds an email-sending domain to an account.

MethodHTTP POST
Path/api/v1/account/sender/domain
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com","domain": "example.com"

}

Response

{

"dnsrecords": [

{

"type": "CNAME",

"key": "mz1309.example.com",

"value": "uc2ciuh690pi414724nug.mailazy.net"

},

{

"type": "CNAME",

"key": "m1.\domainkey.example.com",

"value": "m1.domainkey.uc2ciuh690pi414724nug.mailazy.net"

},

{

"type": "CNAME",

"key": "m2._domainkey.example.com",

"value": "m2.domainkey.uc2ciuh690pi414724nug.mailazy.net"

}

]

}

Q1. Should disposable/free domain be barred?

5. Verify DNS Keys

Verified sender domain verification keys and auto-enable the account to limit and 100 emails per day.

MethodHTTP PUT
Path/api/v1/account/sender/verify
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com"

}

Response

{

"name": "testdefault",

"apikey": "vYdnfMtm8MEOhWqaJ0Ctcvg6uq8=",

"api_secret": "c2cjkdm90pi53q4ishmg.60937ff63b221a4b64"

}

6. Generate/Re-generate Access Keys

MethodHTTP PUT
Path/api/v1/account/sender/access_key
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "kunal.saini28@mail7.io"

}

Response

{

"name": "testdefault",

`"apikey": "vYdnfMtm8MEOhWqaJ0Ctcvg6uq8=",

"api_secret": "c2cjn8690pi3pg16db1g.60937ff63b221a4b6426a10f.NLm57CicH4ACHSOHloWSgmv5tnwdCuYotnjJiqW1"

}

7. Resend Verification Email

MethodHTTP POST
Path/api/v1/account/resendverificationemail
HeaderAuthorization: Bearer <partner_token>
Payload

{

"email": "example@example.com"

}

Response

{

"sent": true

}