Create Email PolicyAsk AIpost https://{application_vanity_domain}/api/v1/email-policiesQuery ParamsupsertbooleanDefaults to falseBoolean indicating if the operation should be treated as an upserttruefalseBody ParamsEmail policy JSON objectidstringownerTypestringenumrequiredlength between 1 and 30[Required on Create and Upsert] The type of the owner of the resource.APPLICATIONAPPLICATIONTENANTAllowed:APPLICATIONTENANTownerIdstringrequiredlength between 1 and 26[Required on Create and Upsert] The ID of the owner of the resource.emailTypestringenumrequiredlength between 1 and 60[Required on Create and Upsert] The type of emailMAGIC_LINK_LOGINEMAIL_CHANGE_CONFIRMATIONEMAIL_VERIFICATIONEXISTING_USER_INVITATIONMAGIC_LINK_LOGINNEW_USER_INVITATIONPASSWORDLESS_EMAIL_CHANGE_CURRENT_EMAIL_CONFIRMATIONPASSWORD_RESETTENANT_DISAMBIGUATIONUSER_ACTIVATIONShow 9 enum valuesactionLinkUrlurilength between 1 and 2000Custom action link URL that users will be sent to for the associated email flow, if applicable.actionLinkLifetimeinteger1 to 10080The amount of time that an action link URL can stay alive, regardless if it is a custom URL or a default URL.actionLinkLifetimeUnitstringenumlength between 1 and 30Enum representing the units of time that apply to the value of the action link lifetime.MINUTESDAYSHOURSMINUTESAllowed:DAYSHOURSMINUTESmetadatastringResponses 200OK 201Created 400Bad Request 401Unauthorized 403Forbidden 405Method Not Allowed 406Not Acceptable 409Conflict 415Unsupported Media Type 500Internal Server Error 503Service UnavailableUpdated 6 months ago