{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new entry in the impersonation registry to protect against impersonation. Emails attempting to impersonate this identity will be flagged. Supports regex patterns for flexible email matching.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/email-security_identifier","description":"Account identifier tag."}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/email-security_CreateImpersonationRegistry"}},"required":["path","body"],"additionalProperties":false,"definitions":{"email-security_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"email-security_CreateImpersonationRegistry":{"description":"Create an impersonation registry entry.","allOf":[{"$ref":"#/definitions/email-security_ImpersonationRegistry"}],"required":["name","email","is_email_regex"]},"email-security_ImpersonationRegistry":{"description":"An impersonation registry entry.","type":"object","properties":{"comments":{"description":"Optional note describing the entry.","type":["string","null"]},"directory_id":{"description":"Identifier of the directory the entry was synced from, when directory-synced.","type":["integer","null"]},"directory_node_id":{"description":"Identifier of the directory node the entry was synced from, when directory-synced.","type":["integer","null"]},"email":{"description":"Email address (or pattern) of the protected identity.","type":"string","examples":["john.doe@example.com"]},"external_directory_node_id":{"description":"Deprecated. External identifier of the directory node.","type":["string","null"]},"is_email_regex":{"description":"Whether `email` is a regular expression instead of a literal address.","type":"boolean","examples":[false]},"name":{"description":"Display name of the protected identity.","type":"string","maxLength":1024,"examples":["John Doe"]},"provenance":{"description":"Source the entry was created from.","type":["string","null"],"allOf":[{"$ref":"#/definitions/email-security_Provenance"}]}}},"email-security_Provenance":{"type":"string","enum":["A1S_INTERNAL","SNOOPY-CASB_OFFICE_365","SNOOPY-OFFICE_365","SNOOPY-GOOGLE_DIRECTORY"]}}},"name":"Create impersonation registry entry","id":"cloudflare.email_security_create_impersonation_registry","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"John Doe","email":"john.doe@example.com","is_email_regex":false}},"maxRequests":1,"summary":false}}