---
updatedAt: 2026-03-01T17:28:25.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/domain-validation/llms.txt
---

# Invalidate a domain

Invalidates the specified domain. When you invalidate a domain, Akamai doesn't recognize you as its owner. The domain is then automatically deleted as part of a cleanup procedure. You can also [delete it manually](ref:delete-domain).

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Domain Ownership Manager API",
    "url": "https://techdocs.akamai.com/domain-validation/reference"
  },
  "info": {
    "contact": {
      "email": "monagara@akamai.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Domains",
    "version": "v1"
  },
  "openapi": "3.0.0",
  "paths": {
    "/domains/invalidate/{domainName}": {
      "post": {
        "description": "Invalidates the specified domain. When you invalidate a domain, Akamai doesn't recognize you as its owner. The domain is then automatically deleted as part of a cleanup procedure. You can also [delete it manually](ref:delete-domain).       ",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Domain Ownership Manager API",
          "url": "https://techdocs.akamai.com/domain-validation/reference/post-invalidate-domain"
        },
        "operationId": "post-invalidate-domain",
        "parameters": [
          {
            "description": "__Enum__ Validation scope of the domain. For `HOST`, the scope is only the exactly specified domain. For `WILDCARD`, the scope covers any hostname within one subdomain level. For `DOMAIN`, the scope covers any hostnames under the domain, regardless of the level of subdomains. Read more about [validation scopes](ref:api-workflow). ",
            "in": "query",
            "name": "validationScope",
            "required": true,
            "schema": {
              "enum": [
                "HOST",
                "DOMAIN",
                "WILDCARD"
              ],
              "example": "HOST",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/validation-scope-query.yaml"
            }
          },
          {
            "description": "Name of the domain.",
            "in": "path",
            "name": "domainName",
            "required": true,
            "schema": {
              "example": "example.com",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/domain-name-path.yaml"
            }
          },
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "domainName": "www.testsite.com",
                  "domainStatus": "INVALIDATED",
                  "validationScope": "HOST"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Represents a response to invalidating a domain.",
                  "properties": {
                    "domainName": {
                      "description": "Name of the domain.",
                      "type": "string"
                    },
                    "domainStatus": {
                      "description": "Status of the domain. The `INVALIDATED` status shows the operation was successful.  ",
                      "enum": [
                        "INVALIDATED"
                      ],
                      "type": "string"
                    },
                    "validationScope": {
                      "description": "Scope of the domain validation, either `HOST`, `WILDCARD`, or `DOMAIN`. Read more about [validation scopes](ref:api-workflow).",
                      "enum": [
                        "HOST",
                        "WILDCARD",
                        "DOMAIN"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "domainName",
                    "validationScope",
                    "domainStatus"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/invalidate-domain-response.yaml"
                  }
                }
              }
            },
            "description": "Domain successfully invalidated. "
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "detail": "Oops, something wasn't right. Please correct the errors.",
                  "errors": [
                    {
                      "detail": "Domain cannot be invalidated for the current status 'VALIDATION_IN_PROGRESS'.",
                      "field": "domainName",
                      "title": "Invalid Check",
                      "type": "error-types/invalid"
                    }
                  ],
                  "instance": "626d36bf-d01c-44f5-90ef-3a34d89fa9f4",
                  "status": 400,
                  "title": "Bad Request",
                  "type": "bad-request"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format of problem details.",
                  "properties": {
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "For errors with more than one detected problem, this represents each problem separately as a nested object of problem details.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "field": {
                            "description": "Field of object where the problem is located.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "title": {
                            "description": "A summary of an error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies an error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail",
                          "field"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Bad request](ref:400).",
            "x-akamai": {
              "file-path": "errors/400-invalidate-domain.yaml"
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "clientIp": "192.0.2.69",
                  "detail": "The signature does not match",
                  "instance": "2c319352-3c6c-41f9-8580-9d3ae52e3251",
                  "method": "GET",
                  "requestId": "a4c12bfd",
                  "requestTime": "2025-07-07T08:51:11Z",
                  "serverIp": "192.0.2.12",
                  "status": 401,
                  "title": "Not authorized",
                  "type": "unauthorized"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "clientIp": {
                      "description": "Client IP address.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "method": {
                      "description": "HTTP method of the request.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "requestId": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "requestTime": {
                      "description": "Timestamp of the request.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "serverIp": {
                      "description": "Server IP address.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-401.yaml"
                  }
                }
              }
            },
            "description": "[Unauthorized](ref:401).",
            "x-akamai": {
              "file-path": "errors/401.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You are not authorized to perform this operation.",
                  "instance": "ad83cdbf-2ffe-4004-b894-a500b402a3f6",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "forbidden"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format of problem details.",
                  "properties": {
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "For errors with more than one detected problem, this represents each problem separately as a nested object of problem details.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "field": {
                            "description": "Field of object where the problem is located.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "title": {
                            "description": "A summary of an error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies an error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail",
                          "field"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403).",
            "x-akamai": {
              "file-path": "errors/403.yaml"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Domain is not found.",
                  "instance": "55f55b02-bfac-4654-91f6-f72626839bb3",
                  "status": 404,
                  "title": "Not Found",
                  "type": "not-found"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format of problem details.",
                  "properties": {
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "For errors with more than one detected problem, this represents each problem separately as a nested object of problem details.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "field": {
                            "description": "Field of object where the problem is located.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "title": {
                            "description": "A summary of an error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies an error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail",
                          "field"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Not found](ref:404).",
            "x-akamai": {
              "file-path": "errors/404.yaml"
            }
          },
          "405": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request method 'PUT' is not supported",
                  "instance": "1720d8c0-b5dd-4a03-8bc0-bc02011f9180",
                  "status": 405,
                  "title": "method-not-supported",
                  "type": "method-not-supported"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format of problem details.",
                  "properties": {
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "For errors with more than one detected problem, this represents each problem separately as a nested object of problem details.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "field": {
                            "description": "Field of object where the problem is located.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "title": {
                            "description": "A summary of an error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies an error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail",
                          "field"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Method not allowed](ref:405).",
            "x-akamai": {
              "file-path": "errors/405.yaml"
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "An unexpected error occurred during request processing.",
                  "instance": "e10bea6f-2215-4b2a-a151-84a62c8907af",
                  "status": 500,
                  "title": "Internal Server Error",
                  "type": "internal-server-error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) format of problem details.",
                  "properties": {
                    "detail": {
                      "description": "Diagnostic instructions to locate and fix the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "For errors with more than one detected problem, this represents each problem separately as a nested object of problem details.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "field": {
                            "description": "Field of object where the problem is located.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "title": {
                            "description": "A summary of an error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies an error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail",
                          "field"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Unique value generated with each API call.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code that categorizes an error case.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "A summary of an error case.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "Identifies an error case.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Internal server error](ref:500).",
            "x-akamai": {
              "file-path": "errors/500.yaml"
            }
          }
        },
        "summary": "Invalidate a domain",
        "tags": [
          "Domains"
        ]
      },
      "parameters": [
        {
          "description": "Name of the domain.",
          "in": "path",
          "name": "domainName",
          "required": true,
          "schema": {
            "example": "example.com",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/domain-name-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/invalidate-domain.yaml",
        "path-info": "/domains/invalidate/{domainName}"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/domain-validation/v1"
    }
  ],
  "tags": [
    {
      "description": "Domains you can get, add, invalidate, and delete.",
      "name": "Domains"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "dom-operations.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List domains](https://techdocs.akamai.com/domain-validation/reference/get-domains.md)
* [Add domains](https://techdocs.akamai.com/domain-validation/reference/post-domains.md)
* [Get a domain](https://techdocs.akamai.com/domain-validation/reference/get-domain.md)
* [Validate pending domains](https://techdocs.akamai.com/domain-validation/reference/post-validate-domains.md)
* [Invalidate domains](https://techdocs.akamai.com/domain-validation/reference/post-invalidate-domains.md)
* [Delete a domain](https://techdocs.akamai.com/domain-validation/reference/delete-domain.md)
* [Batch-delete domains](https://techdocs.akamai.com/domain-validation/reference/delete-domains.md)