Mercoa entity > email-log API
The entity > email-log API from Mercoa — 2 operation(s) for entity > email-log.
The entity > email-log API from Mercoa — 2 operation(s) for entity > email-log.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mercoa:mercoa-entity-email-log-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference entity > email-log API
version: 1.0.0
servers:
- url: https://api.mercoa.com
description: Production
tags:
- name: entity > email-log
paths:
/entity/{entityId}/emailLogs:
get:
operationId: entity_emailLog_find
summary: Get all incoming email logs
description: Get all incoming invoice emails for an entity.
tags:
- entity > email-log
parameters:
- name: entityId
in: path
description: Entity ID or Entity ForeignID
required: true
schema:
$ref: '#/components/schemas/entityTypes_EntityId'
- name: startDate
in: query
required: false
schema:
type: string
format: date-time
- name: endDate
in: query
required: false
schema:
type: string
format: date-time
- name: limit
in: query
description: Number of logs to return. Limit can range between 1 and 100, and the default is 10.
required: false
schema:
type: integer
- name: startingAfter
in: query
description: The ID of the log to start after. If not provided, the first page of logs will be returned.
required: false
schema:
$ref: '#/components/schemas/entityTypes_EntityId'
- name: search
in: query
description: Search for logs by email address or subject
required: false
schema:
type: string
responses:
'200':
description: Response with status 200
content:
application/json:
schema:
$ref: '#/components/schemas/emailLogTypes_EmailLogResponse'
'400':
description: Error response with status 400
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- BadRequest
content:
type: string
required:
- errorName
- content
'401':
description: Error response with status 401
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Unauthorized
content:
type: string
required:
- errorName
- content
'403':
description: Error response with status 403
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Forbidden
content:
type: string
required:
- errorName
- content
'404':
description: Error response with status 404
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- NotFound
content:
type: string
required:
- errorName
- content
'409':
description: Error response with status 409
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Conflict
content:
type: string
required:
- errorName
- content
'500':
description: Error response with status 500
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- InternalServerError
content:
type: string
required:
- errorName
- content
'501':
description: Error response with status 501
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Unimplemented
content:
type: string
required:
- errorName
- content
security:
- default: []
/entity/{entityId}/emailLog/{logId}:
get:
operationId: entity_emailLog_get
summary: Get incoming email log
description: Get an email log by ID
tags:
- entity > email-log
parameters:
- name: entityId
in: path
description: Entity ID or Entity ForeignID
required: true
schema:
$ref: '#/components/schemas/entityTypes_EntityId'
- name: logId
in: path
required: true
schema:
$ref: '#/components/schemas/emailLogTypes_EmailLogId'
responses:
'200':
description: Response with status 200
content:
application/json:
schema:
$ref: '#/components/schemas/emailLogTypes_EmailLog'
'400':
description: Error response with status 400
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- BadRequest
content:
type: string
required:
- errorName
- content
'401':
description: Error response with status 401
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Unauthorized
content:
type: string
required:
- errorName
- content
'403':
description: Error response with status 403
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Forbidden
content:
type: string
required:
- errorName
- content
'404':
description: Error response with status 404
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- NotFound
content:
type: string
required:
- errorName
- content
'409':
description: Error response with status 409
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Conflict
content:
type: string
required:
- errorName
- content
'500':
description: Error response with status 500
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- InternalServerError
content:
type: string
required:
- errorName
- content
'501':
description: Error response with status 501
content:
application/json:
schema:
type: object
properties:
errorName:
type: string
enum:
- Unimplemented
content:
type: string
required:
- errorName
- content
security:
- default: []
components:
schemas:
emailLogTypes_EmailLogId:
type: string
title: EmailLogId
emailLogTypes_EmailLog:
type: object
properties:
id:
$ref: '#/components/schemas/emailLogTypes_EmailLogId'
status:
$ref: '#/components/schemas/emailLogTypes_IncomingEmailLogStatus'
description: The status of the email log. If the status is PENDING, the email has not been processed yet. If the status is PROCESSED, the email has been processed and the invoice has been created. If the status is FAILED, the email was not processed due to an error.
subject:
type: string
from:
type: string
to:
type: string
htmlBody:
type: string
textBody:
type: string
attachment:
$ref: '#/components/schemas/emailLogTypes_EmailLogAttachment'
createdAt:
type: string
format: date-time
invoiceId:
$ref: '#/components/schemas/invoiceTypes_InvoiceId'
required:
- id
- status
- subject
- from
- to
- htmlBody
- textBody
- createdAt
title: EmailLog
invoiceTypes_InvoiceId:
type: string
title: InvoiceId
emailLogTypes_EmailLogAttachment:
type: object
properties:
filename:
type: string
contentType:
type: string
required:
- filename
- contentType
title: EmailLogAttachment
entityTypes_EntityId:
type: string
title: EntityId
emailLogTypes_IncomingEmailLogStatus:
type: string
enum:
- PENDING
- PROCESSED
- FAILED
title: IncomingEmailLogStatus
emailLogTypes_EmailLogResponse:
type: object
properties:
count:
type: integer
description: Total number of logs for the given filters. This value is not limited by the limit parameter. It is provided so that you can determine how many pages of results are available.
hasMore:
type: boolean
description: True if there are more logs available for the given filters.
data:
type: array
items:
$ref: '#/components/schemas/emailLogTypes_EmailLog'
required:
- count
- hasMore
- data
title: EmailLogResponse
securitySchemes:
default:
type: http
scheme: bearer