Get the email indicators of several entities
Scopeemails:readReturns, for each related entity id given, how many emails the history holds for it, the status of the most recent one and when it was sent. Lets you show the state of an entity's email without loading its full history.
last_status: carries whatever the latest attempt ended in,REJECTEDandQUEUEDincluded, so acountabove zero does not mean an email reached anyone.- Ids with no associated emails: omitted from the response rather than returned with
count0.
Closed catalogue. This collection is fixed and bounded by the request itself — at most
one indicator per id in related_entity_ids: it carries no pagination, it takes no
page/limit, and every response holds the whole set.
Keys are prefixed beel_sk_, and each one carries the scopes it was created with: a key
short of the scope an operation needs is answered 403. The scope an operation requires
is shown next to its title, and the full catalogue lives in the Scopes reference.
Keys are created from the BeeL dashboard. They are secret credentials: do not share them or commit them to source control.
In: header
Path Parameters
Your own account, or an account you provisioned. It — not the credential — decides which account the operation acts on; a 403 is returned when you do not reach it, the same response an account that does not exist gets.
uuidQuery Parameters
Comma-separated list of related entity ids (e.g. invoice ids)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.beel.es/api/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/email-indicators?related_entity_ids=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"success": true,
"data": {
"indicators": [
{
"related_entity_id": "e94907ff-519b-4a75-b3bc-05aaf47d6339",
"count": 2,
"last_status": "QUEUED",
"last_sent_at": "2019-08-24T14:15:22Z"
}
]
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The parameter 'invoice_id' has an invalid type. Expected: UUID.",
"details": {
"field": "invoice_id",
"invalid_value": "deliveries",
"expected_format": "UUID"
}
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource"
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The provided data is not valid",
"details": {
"field": "specific error message"
}
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
},
"type": "https://docs.beel.es/errors/INVOICE_NO_LINES",
"title": "INVOICE_NO_LINES",
"detail": "The invoice must have at least one line",
"instance": "/v1/invoices/abc-123"
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again in 60 seconds."
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"success": false,
"error": {
"code": "UNSUPPORTED_MEDIA_TYPE",
"message": "Unsupported media type: text/plain. Supported: application/json"
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Get an email of the history GET
Returns one recorded email with its message body (HTML and plain text), its attachments and, for batch emails, the invoices it carried. - **`body_available`:** the body is fetched live and is only available while the message has a provider message id and the provider still retains it; otherwise it is `false` and `html_body` / `text_body` are `null`. - **An email that never left:** `QUEUED` or `REJECTED`, it has no body for that reason.
List the email domains GET
Returns the domains the account sends its emails from, each with the DNS records to publish and the verification status of the domain and of every record. It only reads; it does not register or verify anything. - **Without the add-on:** the list is still returned, so you can see what the account holds, and `max_email_domains` is `0`. - **`max_email_domains`:** the maximum number of domains the custom email domain add-on allows the account; `null` when the add-on sets no explicit limit. The add-on is contracted with BeeL. - **`verified_at` and `last_checked_at`:** absent until the domain is verified or checked for the first time. - **Environment:** domains belong to the account and are the same in test and live. **Closed catalogue.** The domains of an account are a short, bounded set: the response carries no `pagination`, the operation takes no paging parameters, and every response holds the whole set.