Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/lumail-io:lumail-io-subscribers-api"
All apis
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.
Get an API 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Lumail REST Subscribers API
version: 1.0.0
summary: Organization-scoped email operations for applications and agents.
description: Create and manage subscribers, tags, events, campaigns, and transactional email in Lumail. Every operation uses an organization API token as a Bearer credential.
contact:
name: Lumail support
email: contact@lumail.io
url: https://lumail.io/support
license:
name: Proprietary
url: https://lumail.io/legal/terms
servers:
- url: https://lumail.io
description: Lumail production API
tags:
- name: Subscribers
description: Subscriber records and tags.
paths:
/api/v1/subscribers:
get:
operationId: listSubscribers
summary: List subscribers
description: Returns a cursor-paginated list of subscribers in the authenticated organization.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: tag
in: query
required: false
description: Filter by tag name.
schema:
type: string
- name: status
in: query
required: false
description: Filter by subscription status.
schema:
type: string
enum:
- all
- SUBSCRIBED
- UNSUBSCRIBED
- PENDING_CONFIRMATION
- name: query
in: query
required: false
description: Search email, name, or phone fields.
schema:
type: string
- name: limit
in: query
required: false
description: Maximum records to return.
schema:
type: integer
minimum: 1
maximum: 100
default: 20
- name: cursor
in: query
required: false
description: Opaque pagination cursor.
schema:
type: string
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberListResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
operationId: upsertSubscriber
summary: Create or update a subscriber
description: Creates a subscriber or updates the matching organization subscriber and optional tags or custom fields.
tags:
- Subscribers
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberInput'
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/subscribers/{subscriber}:
get:
operationId: getSubscriber
summary: Get a subscriber
description: Returns one subscriber by organization-scoped ID or email address.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: subscriber
in: path
required: true
description: Subscriber ID or email address in the authenticated organization.
schema:
type: string
minLength: 1
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
patch:
operationId: updateSubscriber
summary: Update a subscriber
description: Updates the identified subscriber, including fields, tags, and subscription state options.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: subscriber
in: path
required: true
description: Subscriber ID or email address in the authenticated organization.
schema:
type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberInput'
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/subscribers/{subscriber}/unsubscribe:
post:
operationId: unsubscribeSubscriber
summary: Unsubscribe a subscriber
description: Marks the identified subscriber as unsubscribed and keeps the subscriber row and send history.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: subscriber
in: path
required: true
description: Subscriber ID or email address in the authenticated organization.
schema:
type: string
minLength: 1
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriberResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/subscribers/{subscriber}/tags:
post:
operationId: addSubscriberTags
summary: Add tags to a subscriber
description: Creates missing organization tags and attaches the requested tags to the subscriber.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: subscriber
in: path
required: true
description: Subscriber ID or email address in the authenticated organization.
schema:
type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TagsInput'
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
operationId: removeSubscriberTags
summary: Remove tags from a subscriber
description: Removes the JSON-encoded tag-name list supplied in the tags query parameter.
tags:
- Subscribers
security:
- bearerAuth: []
parameters:
- name: subscriber
in: path
required: true
description: Subscriber ID or email address in the authenticated organization.
schema:
type: string
minLength: 1
- name: tags
in: query
required: false
description: JSON array of tag names to remove.
schema:
type: string
examples:
- '["customer","trial"]'
responses:
'200':
description: The operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: The request could not be validated or completed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: The bearer token is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: The requested organization resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The organization API rate limit was exceeded.
headers:
Retry-After:
description: Seconds until another request should be attempted.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
TagsInput:
type: object
required:
- tags
properties:
tags:
type: array
minItems: 1
maxItems: 100
items:
type: string
minLength: 1
additionalProperties: false
SubscriberInput:
type: object
required:
- email
properties:
email:
type: string
format: email
name:
type:
- string
- 'null'
phone:
type:
- string
- 'null'
tags:
type: array
items:
type: string
maxItems: 100
fields:
type: object
additionalProperties: true
replaceTags:
type: boolean
default: false
resubscribe:
type: boolean
default: true
triggerWorkflows:
type: boolean
default: true
skipDoubleOptIn:
type: boolean
default: false
ipAddress:
type: string
country:
type: string
additionalProperties: false
ErrorResponse:
type: object
required:
- name
- message
- statusCode
properties:
name:
type: string
message:
type: string
statusCode:
type: integer
details:
type: object
additionalProperties: true
SubscriberResponse:
type: object
required:
- success
- subscriber
properties:
success:
type: boolean
const: true
subscriber:
$ref: '#/components/schemas/Subscriber'
warnings:
type: array
items:
type: string
Subscriber:
type: object
required:
- id
- email
- status
properties:
id:
type: string
email:
type: string
format: email
name:
type:
- string
- 'null'
phone:
type:
- string
- 'null'
status:
type: string
fields:
type: object
additionalProperties: true
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
additionalProperties: true
Tag:
type: object
required:
- id
- name
properties:
id:
type: string
name:
type: string
subscribersCount:
type: integer
minimum: 0
SuccessResponse:
type: object
additionalProperties: true
SubscriberListResponse:
type: object
required:
- success
- subscribers
- total
- limit
properties:
success:
type: boolean
const: true
subscribers:
type: array
items:
$ref: '#/components/schemas/Subscriber'
total:
type: integer
minimum: 0
limit:
type: integer
minimum: 1
nextCursor:
type:
- string
- 'null'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: Lumail organization API token
description: 'Create an organization API token in Lumail and send it as Authorization: Bearer lum_....'
externalDocs:
description: Lumail API and agent documentation
url: https://lumail.io/docs/api-reference