{
  "opencollection": "1.0.0",
  "info": {
    "name": "AhaSend API v2 Accounts Domains API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Domains",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "AhaSend Get Domains",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains",
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "dns_valid",
                "value": "true",
                "type": "query",
                "description": "Filter results by DNS validation status"
              },
              {
                "name": "limit",
                "value": "1",
                "type": "query",
                "description": "Maximum number of items to return (1-100)"
              },
              {
                "name": "after",
                "value": "example_value",
                "type": "query",
                "description": "Pagination cursor for the next page. Provide the value provided in `next_cursor` from the response."
              },
              {
                "name": "before",
                "value": "example_value",
                "type": "query",
                "description": "Pagination cursor for the previous page."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Returns a list of domains for the account"
        },
        {
          "info": {
            "name": "AhaSend Create Domain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": "user-12345-create-domain-20240101"
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a new domain"
        },
        {
          "info": {
            "name": "AhaSend Get Domain",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains/:domain",
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "domain",
                "value": "mail.example.com",
                "type": "path",
                "description": "Domain name"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Returns a specific domain by name"
        },
        {
          "info": {
            "name": "AhaSend Update Domain",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains/:domain",
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "domain",
                "value": "mail.example.com",
                "type": "path",
                "description": "Domain name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates DNS domain settings such as custom subdomains and DKIM rotation interval."
        },
        {
          "info": {
            "name": "AhaSend Delete Domain",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains/:domain",
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "domain",
                "value": "mail.example.com",
                "type": "path",
                "description": "Domain name"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes a domain"
        },
        {
          "info": {
            "name": "AhaSend Check Domain DNS",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ahasend.com/v2/accounts/:account_id/domains/:domain/check-dns",
            "params": [
              {
                "name": "account_id",
                "value": "500123",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "domain",
                "value": "mail.example.com",
                "type": "path",
                "description": "Domain name"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Triggers a DNS validation check for the domain. If the domain was checked within the last 60 seconds, the cached validation result is returned instead of performing a fresh lookup."
        }
      ]
    }
  ],
  "bundled": true
}