Workflow api elements — part 3
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
api/http
Section titled “api/http”Interact with an HTTP API.
Input ports: default (any; Input).
Output ports: default (any; Output), error (any; Error), status (any; Status).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
uri | text | null | not declared | URI |
params | recipes | [] | not declared | Parameters to send with the request. Dont use key “multipart” in combination with json or body |
method | text | null | not declared | Method |
json | recipes | [] | not declared | JSON data to send with the request. Dont use in combination with params.multipart or body |
body | recipes | [] | not declared | Body data to send with the request. Dont use in combination with params.multipart or json |
request | recipes | [] | not declared | Request options. See Guzzle . |
use_cookie | bool | false | not declared | Use Cookie |
validate_cookie | bool | true | not declared | Validate Cookie |
fresh_cookie | bool | false | not declared | Fresh Cookie |
follow_redirects | bool | true | not declared | Follow Redirects |
cookie_name | text | null | not declared | Cookie Name |
response_type | select | json | not declared | Response Type Values: json, xml, text. |
api/imapAdd
Section titled “api/imapAdd”Add a message to an remote IMAP folder.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
folder | text | null | not declared | Folder |
envelope | recipes | false | not declared | Envelope |
body | text | false | not declared | Body |
raw_message | recipes | false | not declared | Raw message |
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |
api/imapDelete
Section titled “api/imapDelete”Delete a message from an remote IMAP folder.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
message_id | recipes | null | not declared | Message ID |
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |
api/imapGet
Section titled “api/imapGet”Get a message from a remote IMAP folder. This element is intended for on-demand loading of a single message, e.g. when a user opens an email in the UI and the stored entity is still missing body or attachment data. Important behavior: - Attachment fetching is explicit via the `fetch_attachments` option. - If a local entity module is configured, the element first tries to find the existing mail entity by the configured id field plus folder. - Attachments are only hydrated when the server exposes more attachments than the stored entity already knows. - When attachment hydration persists changes back to an existing entity, this element only updates the narrow set of fields it owns in this context (`body`, `attachments`, `seen`). The last point is important because callers often use richer application-level mail entities whose fields may be mapped differently from the raw IMAP payload (for example `in_reply_to` may be a relation field instead of a plain string). Therefore `imapGet` intentionally does not push the full raw IMAP message array back through the entity persistence layer.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
message_id | recipes | null | not declared | Message ID |
fetch_attachments | bool | true | not declared | Fetch attachments |
storage_module | module | files | not declared | Storage module |
storage_path | recipes | null | not declared | Attachment storage path |
module | module | false | not declared | Module |
id_attribute | text | null | not declared | ID Attribute |
mark_flagged | bool | false | not declared | Mark message as flagged |
mark_answered | bool | false | not declared | Mark message as answered |
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |
api/imapGetFolders
Section titled “api/imapGetFolders”Get a list of folders from an remote IMAP account.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |
api/imapQuery
Section titled “api/imapQuery”Query messages from an remote IMAP folder.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
folders | text | null | not declared | Folders |
overview | bool | false | not declared | Fetch overview |
query | recipes | [] | not declared | Query |
limit | number | null | not declared | Limit |
page | number | null | not declared | Page |
chunk_size | number | null | not declared | If set, results are chunked and will run out of the ‘chunk’ port |
fetch_body | bool | false | not declared | Fetch body |
fetch_attachments | bool | true | not declared | Fetch attachments |
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |
api/imapSync
Section titled “api/imapSync”No help text declared in the source catalog.
Input ports: default (any; Input).
Output ports: exception (any; Exception), default (any; Output), new (any; New).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
folders | text | null | not declared | Folders |
overview | bool | false | not declared | Fetch overview |
module | module | false | not declared | Module |
map | recipes | false | not declared | Map attributes |
id_attribute | text | null | not declared | ID Attribute |
fetch_attachments | bool | true | not declared | Fetch attachments |
fetch_since | text | null | not declared | Coarse fallback timestamp. If empty, use mailbox sync cursor or start from the oldest mail. |
recent | bool | false | not declared | Recent |
fetch_body | bool | false | not declared | Fetch body |
progress_date_field | text | null | not declared | Progress date field |
update_entity | bool | false | not declared | Update Entities on fetch |
mailbox | recipes | null | not declared | Mailbox |
connection | recipes | [] | not declared | Connection |