OpenAPI Specification
openapi: 3.1.0
info:
title: lemlist Campaigns API
version: '2.0'
description: 'REST API for lemlist''s cold email outreach and sales engagement
platform. All routes live at https://api.lemlist.com/api/. The full
URL pattern is https://api.lemlist.com/api/{endpoint}.
Authentication uses HTTP Basic with an empty username and the API
key as the password (`:YOUR_API_KEY` base64-encoded into the
Authorization header).
Source: https://developer.lemlist.com and the published
OpenAPI v2 spec at
https://developer.lemlist.com/api-reference/openapi/v2.json
'
servers:
- url: https://api.lemlist.com/api
description: lemlist production API
security:
- BasicAuth: []
tags:
- name: Campaigns
description: Campaign CRUD and lifecycle
paths:
/campaigns:
get:
operationId: listCampaigns
summary: List campaigns
tags:
- Campaigns
parameters:
- name: page
in: query
schema:
type: integer
- name: limit
in: query
schema:
type: integer
responses:
'200':
description: Paginated list of campaigns
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Campaign'
post:
operationId: createCampaign
summary: Create a campaign
tags:
- Campaigns
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
responses:
'200':
description: Created campaign
content:
application/json:
schema:
$ref: '#/components/schemas/Campaign'
/campaigns/{campaignId}:
get:
operationId: getCampaign
summary: Get a campaign by ID
tags:
- Campaigns
parameters:
- name: campaignId
in: path
required: true
schema:
type: string
responses:
'200':
description: Campaign object
content:
application/json:
schema:
$ref: '#/components/schemas/Campaign'
components:
schemas:
Campaign:
type: object
properties:
_id:
type: string
name:
type: string
status:
type: string
securitySchemes:
BasicAuth:
type: http
scheme: basic
description: 'HTTP Basic Authentication. The login is always empty and the
password is your lemlist API key. Send the header as
`Authorization: Basic ` followed by the base64 encoding of
`:YOUR_API_KEY`.
'