Create a Domain

Creates a Domain resource.

smtppy.createdomain(domain, isActive)

Parameters

  • isActive (boolean) - Domain activation status

  • domain (string) (required) - Domain name. Example: example.com

Response

{
  "@context": "string",
  "@id": "string",
  "@type": "string",
  "id": "string",
  "domain": "example.com",
  "isActive": true,
  "createdAt": "2025-04-01T00:00:00.000Z",
  "updatedAt": "2025-04-01T00:00:00.000Z"
}

Want to learn about writing content from scratch? Head to the Basics section to learn more.

Last updated