cURL
curl --request POST \ --url https://api.pocketflows.com/businesses/{id}/email_templates/ai \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "description": "<string>" }'
{ "id": "<string>", "name": "<string>", "subject": "<string>", "body": "<string>", "template_json": "<any>", "template_html": "<string>", "attachments": [ { "content": "<string>", "name": "<string>" } ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the business
An EmailTemplate object generated by AI
EmailTemplate
The response is of type object.
object