Skip to main content
POST
/
email-watcher
/
fetch-all
Fetch all unread emails
curl --request POST \
  --url https://start.aiotic.ai/email-watcher/fetch-all \
  --header 'X-API-Key: <api-key>'
{
  "status": "success",
  "emails_queued": 123,
  "emails_total": 123,
  "message": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Required on all endpoints except /healthcheck. Customer and product endpoints also accept a customer-specific API key.

Response

Emails fetched and queued

status
string
required

Operation status

Example:

"success"

emails_queued
integer
required

Number of emails queued for processing

emails_total
integer
required

Total number of unread emails found

message
string
required

Human-readable status message