Skip to content

Management API 2.0.0

Base URL: https://api.sendamatic.net

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}". You can manage your tokens from the Profile menu in the app dashboard.


Delivery score

Receiving a bounce with a reputation_score flag is a strong indicator that you should consider removing the recipient from your lists. But what about recipients with ongoing deliverability problems who don't generate hard bounces?

To uncover these issues, Sendamatic calculates a delivery score by comparing delivery attempts to failures. This helps you pinpoint:

  • Abandoned addresses - Consistently over quota, and not accepting mail
  • Misconfigured addresses, servers and domains - Constantly rejecting messages due to mail loops and similar issues
  • Expired domains - Messages never deliver; they only defer before eventually being discarded

Addresses with delivery scores at or near zero warrant further investigation, as this likely signals an ongoing deliverability issue.

Notes

  • Considers address delivery history from the past 30 days
  • Scores based solely on your account's own delivery history to each address
  • Cached delivery scores may be up to 5 minutes old
  • Rate limited to 86,400 API calls per day per account

Get delivery score

GET /v2/delivery_score/{email}

URL parameters

email string 

Email address Example: user@example.com

Responses

200 success
{
    "data": {
        "attempts": 1439,
        "bounces": 1426,
        "rejections": 1,
        "total_failures": 1427,
        "complaints": 0,
        "days": 31,
        "deferrals": 3,
        "deliveries": 1435,
        "score": 0.01
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "attempts": 1439,
            "bounces": 1426,
            "rejections": 1,
            "total_failures": 1427,
            "complaints": 0,
            "days": 31,
            "deferrals": 3,
            "deliveries": 1435,
            "score": 0.01
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "attempts": {
                    "type": "integer",
                    "example": 1439,
                    "description": "The total number of delivery attempts to the address"
                },
                "bounces": {
                    "type": "integer",
                    "example": 1426,
                    "description": "The number of bounce messages received after delivery"
                },
                "rejections": {
                    "type": "integer",
                    "example": 1,
                    "description": "Messages not accepted for delivery"
                },
                "total_failures": {
                    "type": "integer",
                    "example": 1427,
                    "description": "The sum of bounces and rejections"
                },
                "complaints": {
                    "type": "integer",
                    "example": 0,
                    "description": "The number of abuse complaints received for the address"
                },
                "days": {
                    "type": "integer",
                    "example": 31,
                    "description": "The number of days the data covers"
                },
                "deferrals": {
                    "type": "integer",
                    "example": 3,
                    "description": "How many times messages to this address were deferred"
                },
                "deliveries": {
                    "type": "integer",
                    "example": 1435,
                    "description": "The number of messages accepted by the recipient mail server"
                },
                "score": {
                    "type": "number",
                    "example": 0.01,
                    "description": "(deliveries - bounces) / attempts"
                }
            }
        }
    }
}
400 Invalid email address
{
    "error": "Invalid email address"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "error": "Invalid email address"
    },
    "properties": {
        "error": {
            "type": "string",
            "example": "Invalid email address"
        }
    }
}

Mail credentials


List credentials

GET /v2/mail_credentials

Responses

200 OK
{
    "data": [
        {
            "id": 216,
            "name": "Test Rem ducimus.",
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z"
        },
        {
            "id": 217,
            "name": "Test Et rem nihil.",
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z"
        }
    ]
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": [
            {
                "id": 216,
                "name": "Test Rem ducimus.",
                "created_at": "2024-04-19T11:30:57.000000Z",
                "updated_at": "2024-04-19T11:30:57.000000Z"
            },
            {
                "id": 217,
                "name": "Test Et rem nihil.",
                "created_at": "2024-04-19T11:30:57.000000Z",
                "updated_at": "2024-04-19T11:30:57.000000Z"
            }
        ]
    },
    "properties": {
        "data": {
            "type": "array",
            "example": [
                {
                    "id": 216,
                    "name": "Test Rem ducimus.",
                    "created_at": "2024-04-19T11:30:57.000000Z",
                    "updated_at": "2024-04-19T11:30:57.000000Z"
                },
                {
                    "id": 217,
                    "name": "Test Et rem nihil.",
                    "created_at": "2024-04-19T11:30:57.000000Z",
                    "updated_at": "2024-04-19T11:30:57.000000Z"
                }
            ],
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "example": 216
                    },
                    "name": {
                        "type": "string",
                        "example": "Test Rem ducimus."
                    },
                    "created_at": {
                        "type": "string",
                        "example": "2024-04-19T11:30:57.000000Z"
                    },
                    "updated_at": {
                        "type": "string",
                        "example": "2024-04-19T11:30:57.000000Z"
                    }
                }
            }
        }
    }
}

Create a new credential

POST /v2/mail_credentials

Request body

{
    "name": "MyApp"
}
Schema of the request body
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Credential name",
            "example": "MyApp"
        }
    }
}

Responses

201 Operation successful
{
    "data": {
        "id": "123",
        "name": "MyApp",
        "created_at": "2024-04-19T10:52:11.000000Z",
        "updated_at": "2024-04-19T10:52:11.000000Z"
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "id": "123",
            "name": "MyApp",
            "created_at": "2024-04-19T10:52:11.000000Z",
            "updated_at": "2024-04-19T10:52:11.000000Z"
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "example": "123"
                },
                "name": {
                    "type": "string",
                    "example": "MyApp"
                },
                "created_at": {
                    "type": "string",
                    "example": "2024-04-19T10:52:11.000000Z"
                },
                "updated_at": {
                    "type": "string",
                    "example": "2024-04-19T10:52:11.000000Z"
                }
            }
        }
    }
}

Update a credential

PUT /v2/mail_credentials/{id}

Request body

{
    "name": "MyApp"
}
Schema of the request body
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Credential name",
            "example": "MyApp"
        }
    }
}

Responses

201 Operation successful
{
    "data": {
        "id": "1",
        "name": "MyApp",
        "created_at": "2024-04-19T10:52:11.000000Z",
        "updated_at": "2024-04-19T10:52:11.000000Z"
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "id": "1",
            "name": "MyApp",
            "created_at": "2024-04-19T10:52:11.000000Z",
            "updated_at": "2024-04-19T10:52:11.000000Z"
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "example": "1"
                },
                "name": {
                    "type": "string",
                    "example": "MyApp"
                },
                "created_at": {
                    "type": "string",
                    "example": "2024-04-19T10:52:11.000000Z"
                },
                "updated_at": {
                    "type": "string",
                    "example": "2024-04-19T10:52:11.000000Z"
                }
            }
        }
    }
}

Delete a credential

DELETE /v2/mail_credentials/{id}

URL parameters

id integer 

ID Example: 123

Responses

200 Operation successful
{
    "msg": "Credential deleted"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "msg": "Credential deleted"
    },
    "properties": {
        "msg": {
            "type": "string",
            "example": "Credential deleted"
        }
    }
}

Mail identities


List mail identities

GET /v2/mail_identities

Responses

200 OK
{
    "data": [
        {
            "id": 131,
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z",
            "domain_name": "ducimus.example.com",
            "dkim_signing_enabled": true,
            "bounce_email": "foo@sendamatic.net",
            "complaint_email": "foo@sendamatic.net",
            "unsubscribe_email": "foo@sendamatic.net",
            "feedback_webhook_headers": null,
            "feedback_webhook_url": null,
            "list_unsubscribe_default": true
        },
        {
            "id": 132,
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z",
            "domain_name": "nostrum.example.com",
            "dkim_signing_enabled": true,
            "bounce_email": "foo@sendamatic.net",
            "complaint_email": "foo@sendamatic.net",
            "unsubscribe_email": "foo@sendamatic.net",
            "feedback_webhook_headers": null,
            "feedback_webhook_url": null,
            "list_unsubscribe_default": true
        }
    ]
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": [
            {
                "id": 131,
                "created_at": "2024-04-19T11:30:57.000000Z",
                "updated_at": "2024-04-19T11:30:57.000000Z",
                "domain_name": "ducimus.example.com",
                "dkim_signing_enabled": true,
                "bounce_email": "foo@sendamatic.net",
                "complaint_email": "foo@sendamatic.net",
                "unsubscribe_email": "foo@sendamatic.net",
                "feedback_webhook_headers": null,
                "feedback_webhook_url": null,
                "list_unsubscribe_default": true
            },
            {
                "id": 132,
                "created_at": "2024-04-19T11:30:57.000000Z",
                "updated_at": "2024-04-19T11:30:57.000000Z",
                "domain_name": "nostrum.example.com",
                "dkim_signing_enabled": true,
                "bounce_email": "foo@sendamatic.net",
                "complaint_email": "foo@sendamatic.net",
                "unsubscribe_email": "foo@sendamatic.net",
                "feedback_webhook_headers": null,
                "feedback_webhook_url": null,
                "list_unsubscribe_default": true
            }
        ]
    },
    "properties": {
        "data": {
            "type": "array",
            "example": [
                {
                    "id": 131,
                    "created_at": "2024-04-19T11:30:57.000000Z",
                    "updated_at": "2024-04-19T11:30:57.000000Z",
                    "domain_name": "ducimus.example.com",
                    "dkim_signing_enabled": true,
                    "bounce_email": "foo@sendamatic.net",
                    "complaint_email": "foo@sendamatic.net",
                    "unsubscribe_email": "foo@sendamatic.net",
                    "feedback_webhook_headers": null,
                    "feedback_webhook_url": null,
                    "list_unsubscribe_default": true
                },
                {
                    "id": 132,
                    "created_at": "2024-04-19T11:30:57.000000Z",
                    "updated_at": "2024-04-19T11:30:57.000000Z",
                    "domain_name": "nostrum.example.com",
                    "dkim_signing_enabled": true,
                    "bounce_email": "foo@sendamatic.net",
                    "complaint_email": "foo@sendamatic.net",
                    "unsubscribe_email": "foo@sendamatic.net",
                    "feedback_webhook_headers": null,
                    "feedback_webhook_url": null,
                    "list_unsubscribe_default": true
                }
            ],
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "example": 131
                    },
                    "created_at": {
                        "type": "string",
                        "example": "2024-04-19T11:30:57.000000Z"
                    },
                    "updated_at": {
                        "type": "string",
                        "example": "2024-04-19T11:30:57.000000Z"
                    },
                    "domain_name": {
                        "type": "string",
                        "example": "ducimus.example.com"
                    },
                    "dkim_signing_enabled": {
                        "type": "boolean",
                        "example": true
                    },
                    "bounce_email": {
                        "type": "string",
                        "example": "foo@sendamatic.net"
                    },
                    "complaint_email": {
                        "type": "string",
                        "example": "foo@sendamatic.net"
                    },
                    "unsubscribe_email": {
                        "type": "string",
                        "example": "foo@sendamatic.net"
                    },
                    "feedback_webhook_headers": {
                        "type": "string",
                        "example": null
                    },
                    "feedback_webhook_url": {
                        "type": "string",
                        "example": null
                    },
                    "list_unsubscribe_default": {
                        "type": "boolean",
                        "example": true
                    }
                }
            }
        }
    }
}

Create a new identity

POST /v2/mail_identities

Request body

{
    "domain_name": "example.com",
    "mail_credential_ids": [],
    "mail_from_domain_name": "myapp.example.com",
    "bounce_email": "feedback@example.com",
    "complaint_email": "feedback@example.com",
    "unsubscribe_email": "feedback@example.com",
    "feedback_webhook_url": null,
    "feedback_webhook_headers": [
        "quo"
    ],
    "dkim_signing_enabled": true,
    "list_unsubscribe_default": true
}
Schema of the request body
{
    "type": "object",
    "properties": {
        "domain_name": {
            "type": "string",
            "description": "Must match the regex /^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$/. Must not be greater than 253 characters.",
            "example": "example.com"
        },
        "mail_credential_ids": {
            "type": "object",
            "description": "",
            "example": [],
            "properties": {}
        },
        "mail_from_domain_name": {
            "type": "string",
            "description": "This field is required when mail_from_domain_enabled is 1.  Must match the regex /(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/.",
            "example": "myapp.example.com"
        },
        "bounce_email": {
            "type": "string",
            "description": "Must be a valid email address. This field is required when feedback_webhook_url is not present.",
            "example": "feedback@example.com"
        },
        "complaint_email": {
            "type": "string",
            "description": "Must be a valid email address. This field is required when feedback_webhook_url is not present.",
            "example": "feedback@example.com"
        },
        "unsubscribe_email": {
            "type": "string",
            "description": "Must be a valid email address. This field is required when feedback_webhook_url is not present.",
            "example": "feedback@example.com"
        },
        "feedback_webhook_url": {
            "type": "string",
            "description": "",
            "example": null
        },
        "feedback_webhook_headers": {
            "type": "array",
            "description": "",
            "example": [
                "quo"
            ],
            "items": {
                "type": "string"
            }
        },
        "dkim_signing_enabled": {
            "type": "boolean",
            "description": "",
            "example": true
        },
        "list_unsubscribe_default": {
            "type": "boolean",
            "description": "",
            "example": true
        }
    },
    "required": [
        "domain_name",
        "mail_credential_ids"
    ]
}

Responses

200 OK
{
    "data": {
        "id": 134,
        "created_at": "2024-04-19T11:30:57.000000Z",
        "updated_at": "2024-04-19T11:30:57.000000Z",
        "domain_name": "example.com",
        "dkim_signing_enabled": true,
        "bounce_email": "foo@sendamatic.net",
        "complaint_email": "foo@sendamatic.net",
        "unsubscribe_email": "foo@sendamatic.net",
        "feedback_webhook_headers": null,
        "feedback_webhook_url": null,
        "list_unsubscribe_default": true,
        "mail_credential_ids": [
            219
        ],
        "mail_from_domain": {
            "domain_name": "foo.example.com",
            "verification_status_text": "new",
            "is_verified": false,
            "verified_at": null,
            "dns_records": [
                {
                    "name": "foo.example.com",
                    "type": "TXT",
                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                },
                {
                    "name": "foo.example.com",
                    "type": "MX",
                    "value": "return.smtp.sendamatic.net"
                }
            ]
        },
        "dkim_keys": [
            {
                "alias": "153480b30467f9530a11-1._domainkey.example.com",
                "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            }
        ]
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "id": 134,
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z",
            "domain_name": "example.com",
            "dkim_signing_enabled": true,
            "bounce_email": "foo@sendamatic.net",
            "complaint_email": "foo@sendamatic.net",
            "unsubscribe_email": "foo@sendamatic.net",
            "feedback_webhook_headers": null,
            "feedback_webhook_url": null,
            "list_unsubscribe_default": true,
            "mail_credential_ids": [
                219
            ],
            "mail_from_domain": {
                "domain_name": "foo.example.com",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null,
                "dns_records": [
                {
                    "name": "foo.example.com",
                    "type": "TXT",
                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                },
                {
                    "name": "foo.example.com",
                    "type": "MX",
                    "value": "return.smtp.sendamatic.net"
                }
            ]
            },
            "dkim_keys": [
                {
                    "alias": "153480b30467f9530a11-1._domainkey.example.com",
                    "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                    "verification_status_text": "new",
                    "is_verified": false,
                    "verified_at": null
                }
            ]
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "example": 134
                },
                "created_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:57.000000Z"
                },
                "updated_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:57.000000Z"
                },
                "domain_name": {
                    "type": "string",
                    "example": "example.com"
                },
                "dkim_signing_enabled": {
                    "type": "boolean",
                    "example": true
                },
                "bounce_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "complaint_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "unsubscribe_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "feedback_webhook_headers": {
                    "type": "string",
                    "example": null
                },
                "feedback_webhook_url": {
                    "type": "string",
                    "example": null
                },
                "list_unsubscribe_default": {
                    "type": "boolean",
                    "example": true
                },
                "mail_credential_ids": {
                    "type": "array",
                    "example": [
                        219
                    ],
                    "items": {
                        "type": "integer"
                    }
                },
                "mail_from_domain": {
                    "type": "object",
                    "properties": {
                        "domain_name": {
                            "type": "string",
                            "example": "foo.example.com"
                        },
                        "verification_status_text": {
                            "type": "string",
                            "example": "new"
                        },
                        "is_verified": {
                            "type": "boolean",
                            "example": false
                        },
                        "verified_at": {
                            "type": "string",
                            "example": null
                        },
                        "dns_records": {
                            "type": "array",
                            "example": [
                                {
                                    "name": "foo.example.com",
                                    "type": "TXT",
                                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                },
                                {
                                    "name": "foo.example.com",
                                    "type": "MX",
                                    "value": "return.smtp.sendamatic.net"
                                }
                            ],
                            "items": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "foo.example.com"
                                    },
                                    "type": {
                                        "type": "string",
                                        "example": "TXT"
                                    },
                                    "value": {
                                        "type": "string",
                                        "example": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                    }
                                }
                            }
                        }
                    }
                },
                "dkim_keys": {
                    "type": "array",
                    "example": [
                        {
                            "alias": "153480b30467f9530a11-1._domainkey.example.com",
                            "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                            "verification_status_text": "new",
                            "is_verified": false,
                            "verified_at": null
                        }
                    ],
                    "items": {
                        "type": "object",
                        "properties": {
                            "alias": {
                                "type": "string",
                                "example": "153480b30467f9530a11-1._domainkey.example.com"
                            },
                            "target": {
                                "type": "string",
                                "example": "153480b30467f9530a11-1.dkim.sendamatic.net"
                            },
                            "verification_status_text": {
                                "type": "string",
                                "example": "new"
                            },
                            "is_verified": {
                                "type": "boolean",
                                "example": false
                            },
                            "verified_at": {
                                "type": "string",
                                "example": null
                            }
                        }
                    }
                }
            }
        }
    }
}

Get an identity

GET /v2/mail_identities/{id}

URL parameters

id integer 

ID Example: 123

Responses

200 OK
{
    "data": {
        "id": 133,
        "created_at": "2024-04-19T11:30:57.000000Z",
        "updated_at": "2024-04-19T11:30:57.000000Z",
        "domain_name": "labore.example.com",
        "dkim_signing_enabled": true,
        "bounce_email": "foo@sendamatic.net",
        "complaint_email": "foo@sendamatic.net",
        "unsubscribe_email": "foo@sendamatic.net",
        "feedback_webhook_headers": null,
        "feedback_webhook_url": null,
        "list_unsubscribe_default": true,
        "mail_credential_ids": [
            218
        ],
        "mail_from_domain": {
            "domain_name": "foo.labore.example.com",
            "verification_status_text": "new",
            "is_verified": false,
            "verified_at": null,
            "dns_records": [
                {
                    "name": "foo.labore.example.com",
                    "type": "TXT",
                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                },
                {
                    "name": "foo.labore.example.com",
                    "type": "MX",
                    "value": "return.smtp.sendamatic.net"
                }
            ]
        },
        "dkim_keys": [
            {
                "alias": "3cef07c3-fcee-39e5-be38-0b2121f8cae7._domainkey.labore.example.com",
                "target": "3cef07c3-fcee-39e5-be38-0b2121f8cae7.",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            }
        ]
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "id": 133,
            "created_at": "2024-04-19T11:30:57.000000Z",
            "updated_at": "2024-04-19T11:30:57.000000Z",
            "domain_name": "labore.example.com",
            "dkim_signing_enabled": true,
            "bounce_email": "foo@sendamatic.net",
            "complaint_email": "foo@sendamatic.net",
            "unsubscribe_email": "foo@sendamatic.net",
            "feedback_webhook_headers": null,
            "feedback_webhook_url": null,
            "list_unsubscribe_default": true,
            "mail_credential_ids": [
                218
            ],
            "mail_from_domain": {
                "domain_name": "foo.labore.example.com",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null,
                "dns_records": [
                    {
                        "name": "foo.labore.example.com",
                        "type": "TXT",
                        "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                    },
                    {
                        "name": "foo.labore.example.com",
                        "type": "MX",
                        "value": "return.smtp.sendamatic.net"
                    }
                ],
            },
            "dkim_keys": [
                {
                    "alias": "3cef07c3-fcee-39e5-be38-0b2121f8cae7._domainkey.labore.example.com",
                    "target": "3cef07c3-fcee-39e5-be38-0b2121f8cae7.",
                    "verification_status_text": "new",
                    "is_verified": false,
                    "verified_at": null
                }
            ]
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "example": 133
                },
                "created_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:57.000000Z"
                },
                "updated_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:57.000000Z"
                },
                "domain_name": {
                    "type": "string",
                    "example": "labore.example.com"
                },
                "dkim_signing_enabled": {
                    "type": "boolean",
                    "example": true
                },
                "bounce_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "complaint_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "unsubscribe_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "feedback_webhook_headers": {
                    "type": "string",
                    "example": null
                },
                "feedback_webhook_url": {
                    "type": "string",
                    "example": null
                },
                "list_unsubscribe_default": {
                    "type": "boolean",
                    "example": true
                },
                "mail_credential_ids": {
                    "type": "array",
                    "example": [
                        218
                    ],
                    "items": {
                        "type": "integer"
                    }
                },
                "mail_from_domain": {
                    "type": "object",
                    "properties": {
                        "domain_name": {
                            "type": "string",
                            "example": "foo.labore.example.com"
                        },
                        "verification_status_text": {
                            "type": "string",
                            "example": "new"
                        },
                        "is_verified": {
                            "type": "boolean",
                            "example": false
                        },
                        "verified_at": {
                            "type": "string",
                            "example": null
                        },
                        "dns_records": {
                            "type": "array",
                            "example": [
                                {
                                    "name": "foo.labore.example.com",
                                    "type": "TXT",
                                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                },
                                {
                                    "name": "foo.labore.example.com",
                                    "type": "MX",
                                    "value": "return.smtp.sendamatic.net"
                                }
                            ],
                            "items": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "foo.labore.example.com"
                                    },
                                    "type": {
                                        "type": "string",
                                        "example": "TXT"
                                    },
                                    "value": {
                                        "type": "string",
                                        "example": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                    }
                                }
                            }
                        }
                    }
                },
                "dkim_keys": {
                    "type": "array",
                    "example": [
                        {
                            "alias": "3cef07c3-fcee-39e5-be38-0b2121f8cae7._domainkey.labore.example.com",
                            "target": "3cef07c3-fcee-39e5-be38-0b2121f8cae7.",
                            "verification_status_text": "new",
                            "is_verified": false,
                            "verified_at": null
                        }
                    ],
                    "items": {
                        "type": "object",
                        "properties": {
                            "alias": {
                                "type": "string",
                                "example": "3cef07c3-fcee-39e5-be38-0b2121f8cae7._domainkey.labore.example.com"
                            },
                            "target": {
                                "type": "string",
                                "example": "3cef07c3-fcee-39e5-be38-0b2121f8cae7."
                            },
                            "verification_status_text": {
                                "type": "string",
                                "example": "new"
                            },
                            "is_verified": {
                                "type": "boolean",
                                "example": false
                            },
                            "verified_at": {
                                "type": "string",
                                "example": null
                            }
                        }
                    }
                }
            }
        }
    }
}

Update an identity

PUT /v2/mail_identities/{id}

URL parameters

id integer 

ID Example: 123

Request body

{
    "mail_credential_ids": [],
    "mail_from_domain_name": "myapp.example.com",
    "bounce_email": "feedback@example.com",
    "complaint_email": "feedback@example.com",
    "unsubscribe_email": "feedback@example.com",
    "feedback_webhook_url": null,
    "feedback_webhook_headers": [
        "ab"
    ]
}
Schema of the request body
{
    "type": "object",
    "properties": {
        "mail_credential_ids": {
            "type": "object",
            "description": "",
            "example": [],
            "properties": {}
        },
        "mail_from_domain_name": {
            "type": "string",
            "description": "This field is required when mail_from_domain_enabled is 1.  Must match the regex /(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/.",
            "example": "myapp.example.com"
        },
        "bounce_email": {
            "type": "string",
            "description": "Must be a valid email address.",
            "example": "feedback@example.com"
        },
        "complaint_email": {
            "type": "string",
            "description": "Must be a valid email address.",
            "example": "feedback@example.com"
        },
        "unsubscribe_email": {
            "type": "string",
            "description": "Must be a valid email address.",
            "example": "feedback@example.com"
        },
        "feedback_webhook_url": {
            "type": "string",
            "description": "",
            "example": null
        },
        "feedback_webhook_headers": {
            "type": "array",
            "description": "",
            "example": [
                "ab"
            ],
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "mail_credential_ids"
    ]
}

Responses

200 OK
{
    "data": {
        "id": 135,
        "created_at": "2024-04-19T11:30:58.000000Z",
        "updated_at": "2024-04-19T11:30:58.000000Z",
        "domain_name": "example.com",
        "dkim_signing_enabled": true,
        "bounce_email": "foo@sendamatic.net",
        "complaint_email": "foo@sendamatic.net",
        "unsubscribe_email": "foo@sendamatic.net",
        "feedback_webhook_headers": null,
        "feedback_webhook_url": null,
        "list_unsubscribe_default": true,
        "mail_credential_ids": [
            220
        ],
        "mail_from_domain": {
            "domain_name": "myapp.example.com",
            "verification_status_text": "new",
            "is_verified": false,
            "verified_at": null,
            "dns_records": [
                {
                    "name": "myapp.example.com",
                    "type": "TXT",
                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                },
                {
                    "name": "myapp.example.com",
                    "type": "MX",
                    "value": "return.smtp.sendamatic.net"
                }
            ],
        },
        "dkim_keys": [
            {
                "alias": "153480b30467f9530a11-1._domainkey.example.com",
                "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            },
            {
                "alias": "153480b30467f9530a11-2._domainkey.example.com",
                "target": "153480b30467f9530a11-2.dkim.sendamatic.net",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            }
        ]
    }
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": {
            "id": 135,
            "created_at": "2024-04-19T11:30:58.000000Z",
            "updated_at": "2024-04-19T11:30:58.000000Z",
            "domain_name": "example.com",
            "dkim_signing_enabled": true,
            "bounce_email": "foo@sendamatic.net",
            "complaint_email": "foo@sendamatic.net",
            "unsubscribe_email": "foo@sendamatic.net",
            "feedback_webhook_headers": null,
            "feedback_webhook_url": null,
            "list_unsubscribe_default": true,
            "mail_credential_ids": [
                220
            ],
            "mail_from_domain": {
                "domain_name": "myapp.example.com",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null,
                "dns_records": [
                    {
                        "name": "myapp.example.com",
                        "type": "TXT",
                        "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                    },
                    {
                        "name": "myapp.example.com",
                        "type": "MX",
                        "value": "return.smtp.sendamatic.net"
                    }
                ],
            },
            "dkim_keys": [
                {
                "alias": "153480b30467f9530a11-1._domainkey.example.com",
                "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            },
            {
                "alias": "153480b30467f9530a11-2._domainkey.example.com",
                "target": "153480b30467f9530a11-2.dkim.sendamatic.net",
                "verification_status_text": "new",
                "is_verified": false,
                "verified_at": null
            }
            ]
        }
    },
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "example": 135
                },
                "created_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:58.000000Z"
                },
                "updated_at": {
                    "type": "string",
                    "example": "2024-04-19T11:30:58.000000Z"
                },
                "domain_name": {
                    "type": "string",
                    "example": "example.com"
                },
                "dkim_signing_enabled": {
                    "type": "boolean",
                    "example": true
                },
                "bounce_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "complaint_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "unsubscribe_email": {
                    "type": "string",
                    "example": "foo@sendamatic.net"
                },
                "feedback_webhook_headers": {
                    "type": "string",
                    "example": null
                },
                "feedback_webhook_url": {
                    "type": "string",
                    "example": null
                },
                "list_unsubscribe_default": {
                    "type": "boolean",
                    "example": true
                },
                "mail_credential_ids": {
                    "type": "array",
                    "example": [
                        220
                    ],
                    "items": {
                        "type": "integer"
                    }
                },
                "mail_from_domain": {
                    "type": "object",
                    "properties": {
                        "domain_name": {
                            "type": "string",
                            "example": "myapp.example.com"
                        },
                        "verification_status_text": {
                            "type": "string",
                            "example": "new"
                        },
                        "is_verified": {
                            "type": "boolean",
                            "example": false
                        },
                        "verified_at": {
                            "type": "string",
                            "example": null
                        },
                        "dns_records": {
                            "type": "array",
                            "example": [
                                {
                                    "name": "myapp.example.com",
                                    "type": "TXT",
                                    "value": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                },
                                {
                                    "name": "myapp.example.com",
                                    "type": "MX",
                                    "value": "return.smtp.sendamatic.net"
                                }
                            ],
                            "items": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "myapp.example.com"
                                    },
                                    "type": {
                                        "type": "string",
                                        "example": "TXT"
                                    },
                                    "value": {
                                        "type": "string",
                                        "example": "v=spf1 include:spf.smtp.sendamatic.net ~all"
                                    }
                                }
                            }
                        }
                    }
                },
                "dkim_keys": {
                    "type": "array",
                    "example": [
                        {
                            "alias": "153480b30467f9530a11-1._domainkey.example.com",
                            "target": "153480b30467f9530a11-1.dkim.sendamatic.net",
                            "verification_status_text": "new",
                            "is_verified": false,
                            "verified_at": null
                        }
                    ],
                    "items": {
                        "type": "object",
                        "properties": {
                            "alias": {
                                "type": "string",
                                "example": "153480b30467f9530a11-1._domainkey.example.com"
                            },
                            "target": {
                                "type": "string",
                                "example": "153480b30467f9530a11-1.dkim.sendamatic.net"
                            },
                            "verification_status_text": {
                                "type": "string",
                                "example": "new"
                            },
                            "is_verified": {
                                "type": "boolean",
                                "example": false
                            },
                            "verified_at": {
                                "type": "string",
                                "example": null
                            }
                        }
                    }
                }
            }
        }
    }
}

Delete an identity

DELETE /v2/mail_identities/{id}

URL parameters

id integer 

ID Example: 123

Responses

200 OK
{
    "msg": "Identity deleted"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "msg": "Identity deleted"
    },
    "properties": {
        "msg": {
            "type": "string",
            "example": "Identity deleted"
        }
    }
}

Verified emails


List verified emails

GET /v2/verified_emails

Responses

200 OK
{
    "data": [
        {
            "created_at": "2024-04-16T12:20:15.000000Z",
            "email": "foo@bar.com"
        },
        {
            "created_at": "2024-04-16T12:20:15.000000Z",
            "email": "foo@bar.com"
        }
    ]
}
Schema of the response body
{
    "type": "object",
    "example": {
        "data": [
            {
                "created_at": "2024-04-16T12:20:15.000000Z",
                "email": "foo@bar.com"
            },
            {
                "created_at": "2024-04-16T12:20:15.000000Z",
                "email": "foo@bar.com"
            }
        ]
    },
    "properties": {
        "data": {
            "type": "array",
            "example": [
                {
                    "created_at": "2024-04-16T12:20:15.000000Z",
                    "email": "foo@bar.com"
                },
                {
                    "created_at": "2024-04-16T12:20:15.000000Z",
                    "email": "foo@bar.com"
                }
            ],
            "items": {
                "type": "object",
                "properties": {
                    "created_at": {
                        "type": "string",
                        "example": "2024-04-16T12:20:15.000000Z"
                    },
                    "email": {
                        "type": "string",
                        "example": "foo@bar.com"
                    }
                }
            }
        }
    }
}

Create a new verified address request

POST /v2/verified_emails

Request body

{
    "email": "user@example.com"
}
Schema of the request body
{
    "type": "object",
    "properties": {
        "email": {
            "type": "string",
            "description": "Email address",
            "example": "user@example.com"
        }
    },
    "required": [
        "email"
    ]
}

Responses

201 Operation successful
{
    "msg": "Request accepted"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "msg": "Request accepted"
    },
    "properties": {
        "msg": {
            "type": "string",
            "example": "Request accepted"
        }
    }
}

Remove a verified email

DELETE /v2/verified_emails/{email}

URL parameters

email string 

Email address Example: user@example.com

Responses

200 Operation successful
{
    "msg": "Address deleted"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "msg": "Address deleted"
    },
    "properties": {
        "msg": {
            "type": "string",
            "example": "Address deleted"
        }
    }
}
422 Operation failed
{
    "msg": "Address in use"
}
Schema of the response body
{
    "type": "object",
    "example": {
        "msg": "Address in use"
    },
    "properties": {
        "msg": {
            "type": "string",
            "example": "Address in use"
        }
    }
}