Automations
Create automation
Creates a new automation that triggers an action when an email matching the specified criteria is received.
POST
Create automation
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/vnd.mailcare.v1+json
Title of the automation
Example:
"Save pdf invoices"
Sender that should match (optional)
Example:
"shop@example.com"
Inbox that should match (optional)
Example:
"claire@example.com"
Subject that should match (optional)
Example:
"New invoice"
Email should have at least one attachment (optional)
Example:
true
URL that will be called (optional)
Example:
"https://example.com/webhooks/save-pdf-invoices"
Use this token to validate received payloads (optional)
Example:
"SECRET12345$"
Email should be deleted after processing (optional)
Example:
true
Payload format to use (optional)
Available options:
json
, raw
, json_with_bodies
Example:
"json"
Response
201
Automation successfully created.
Create automation