{
  "openapi": "3.1.0",
  "info": {
    "title": "Autosend Domains API",
    "description": "Manage your domains associated with your Autosend project. Domains are used to send email via AutoSend. After adding a domain you must configure DNS records and trigger verification before it can be used for sending.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.autosend.com/v1",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/domains": {
      "get": {
        "summary": "List Domains",
        "description": "Returns all domains added to the project, including their current verification status and DNS record states."
      },
      "post": {
        "summary": "Add Domain",
        "description": "Adds a new domain to the project. After adding, configure the returned DNS records in your DNS provider and call the verify endpoint to trigger verification."
      }
    },
    "/domains/{domainId}": {
      "get": {
        "summary": "Get Domain",
        "description": "Returns a single domain by its ID, including its current verification status and DNS record states."
      },
      "delete": {
        "summary": "Delete Domain",
        "description": "Removes a domain from the project. This action cannot be undone. Any senders or campaigns using this domain may be affected."
      }
    },
    "/domains/{domainId}/verify": {
      "post": {
        "summary": "Verify Domain",
        "description": "Triggers a background check of the domain's DNS records and verification state."
      }
    }
  }
}
