Skip to content

List AI Blocks In Email Editor

Tool name: list-email-editor-ai-blocks

Reads the Smart Mail of an email: its AI context, every AI block with instruction, data fields, tags and the block uuid that shows it, whether the email supports AI blocks (automation emails only), whether the account has the Smart Mail add-on, the credits per recipient and the credit balance, plus the contentRevision writes need. Reads only.

Input schema

editorUrlstring, [ 12 .. 500 ] charactersrequired

Editor URL of the email, as a read returned it

accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "editorUrl": "stringstring", "accountId": null }

Output schema

accountIdintegerrequired
editorUrlstringrequired
contentRevisionstringrequired
supportsAiBlocksbooleanrequired
hasAddOnbooleanrequired
addOnUrlstringrequired
creditsPerRecipientintegerrequired
creditBalanceintegerrequired
contextobjectrequired
countintegerrequired
aiBlocksArray of objectsrequired
Output example
{ "accountId": 0, "editorUrl": "string", "contentRevision": "string", "supportsAiBlocks": true, "hasAddOn": true, "addOnUrl": "string", "creditsPerRecipient": 0, "creditBalance": 0, "context": { "prompt": "string", "fields": [ { "id": "string", "name": "string" } ], "tags": [ { "id": "string", "name": "string" } ] }, "count": 0, "aiBlocks": [ { "aiBlockId": "string", "blockUuid": "string", "name": "string", "prompt": "string", "fields": [ { "id": "string", "name": "string" } ], "tags": [ { "id": "string", "name": "string" } ] } ] }