SendPanda Campaigns API
The Campaigns API from SendPanda, for campaigns.
The Campaigns API from SendPanda, for campaigns.
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/sendpanda-email:sendpanda-email-campaigns-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. 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: 3.2.0
info:
title: SendPanda Campaigns API
version: 1.0.0
description: Transactional email API. Secrets belong only on your server.
tags:
- name: Campaigns
paths:
/v1/campaigns:
get:
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Get campaigns
x-summary-source: derived
operationId: getV1Campaigns
x-operation-id-source: derived
post:
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
audience_id:
type: string
maxLength: 80
from:
type: string
maxLength: 320
subject:
type: string
minLength: 1
maxLength: 998
html:
type: string
maxLength: 240000
text:
type: string
maxLength: 240000
design:
allOf:
- $ref: '#/components/schemas/EmailDesignInput'
template_id:
type: string
maxLength: 80
variables:
default: {}
type: object
additionalProperties:
anyOf:
- type: string
maxLength: 10000
- type: number
- type: boolean
postal_address:
type: string
minLength: 10
maxLength: 500
reply_to:
type: string
maxLength: 320
segment_tag:
type: string
pattern: ^[a-zA-Z0-9_-]{1,64}$
required:
- name
- audience_id
- from
- subject
- postal_address
additionalProperties: false
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Create campaigns
x-summary-source: derived
operationId: postV1Campaigns
x-operation-id-source: derived
/v1/campaigns/{id}/content:
get:
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Get campaigns by id content
x-summary-source: derived
operationId: getV1CampaignsByIdContent
x-operation-id-source: derived
/v1/campaigns/{id}:
patch:
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
audience_id:
type: string
maxLength: 80
from:
type: string
maxLength: 320
subject:
type: string
minLength: 1
maxLength: 998
html:
type: string
maxLength: 240000
text:
type: string
maxLength: 240000
design:
allOf:
- $ref: '#/components/schemas/EmailDesignInput'
template_id:
type: string
maxLength: 80
variables:
default: {}
type: object
additionalProperties:
anyOf:
- type: string
maxLength: 10000
- type: number
- type: boolean
postal_address:
type: string
minLength: 10
maxLength: 500
reply_to:
type: string
maxLength: 320
segment_tag:
type: string
pattern: ^[a-zA-Z0-9_-]{1,64}$
required:
- name
- audience_id
- from
- subject
- postal_address
additionalProperties: false
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Update campaigns by id
x-summary-source: derived
operationId: patchV1CampaignsById
x-operation-id-source: derived
get:
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Get campaigns by id
x-summary-source: derived
operationId: getV1CampaignsById
x-operation-id-source: derived
/v1/campaigns/{id}/recipients:
get:
parameters:
- schema:
type: string
maxLength: 80
in: query
name: after
required: false
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Get campaigns by id recipients
x-summary-source: derived
operationId: getV1CampaignsByIdRecipients
x-operation-id-source: derived
/v1/campaigns/{id}/preview:
post:
requestBody:
required: true
content:
application/json:
schema:
type:
- object
- 'null'
properties:
share_preview:
type: boolean
additionalProperties: false
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Create campaigns by id preview
x-summary-source: derived
operationId: postV1CampaignsByIdPreview
x-operation-id-source: derived
/v1/campaigns/{id}/test:
post:
requestBody:
required: true
content:
application/json:
schema:
type:
- object
- 'null'
properties:
to:
type: string
maxLength: 320
format: email
pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
additionalProperties: false
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Create campaigns by id test
x-summary-source: derived
operationId: postV1CampaignsByIdTest
x-operation-id-source: derived
/v1/campaigns/{id}/schedule:
post:
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
scheduled_at:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
permission_confirmed:
type: boolean
enum:
- true
content_confirmed:
type: boolean
enum:
- true
required:
- permission_confirmed
additionalProperties: false
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Create campaigns by id schedule
x-summary-source: derived
operationId: postV1CampaignsByIdSchedule
x-operation-id-source: derived
/v1/campaigns/{id}/{action}:
post:
parameters:
- schema:
type: string
maxLength: 80
in: path
name: id
required: true
- schema:
type: string
enum:
- pause
- resume
- cancel
in: path
name: action
required: true
responses:
'200':
description: Default Response
tags:
- Campaigns
summary: Create campaigns by id by action
x-summary-source: derived
operationId: postV1CampaignsByIdByAction
x-operation-id-source: derived
components:
schemas:
EmailComponentInput:
oneOf:
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- heading
text:
type: string
maxLength: 10000
required:
- id
- type
- text
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- text
text:
type: string
maxLength: 10000
required:
- id
- type
- text
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- image
src:
type: string
maxLength: 2048
alt:
type: string
maxLength: 300
url:
type: string
maxLength: 2048
width:
type: integer
minimum: 40
maximum: 720
required:
- id
- type
- src
- alt
- url
- width
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- logo
src:
type: string
maxLength: 2048
alt:
type: string
maxLength: 300
url:
type: string
maxLength: 2048
width:
type: integer
minimum: 40
maximum: 720
required:
- id
- type
- src
- alt
- url
- width
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- button
text:
type: string
maxLength: 200
url:
type: string
maxLength: 2048
buttonColor:
type: string
pattern: ^#[0-9a-f]{6}$
radius:
type: integer
minimum: 0
maximum: 32
required:
- id
- type
- text
- url
- buttonColor
- radius
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- divider
height:
type: integer
minimum: 1
maximum: 8
required:
- id
- type
- height
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- spacer
height:
type: integer
minimum: 4
maximum: 160
required:
- id
- type
- height
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- hero
src:
type: string
maxLength: 2048
alt:
type: string
maxLength: 300
title:
type: string
maxLength: 10000
text:
type: string
maxLength: 10000
buttonText:
type: string
maxLength: 200
url:
type: string
maxLength: 2048
buttonColor:
type: string
pattern: ^#[0-9a-f]{6}$
required:
- id
- type
- src
- alt
- title
- text
- buttonText
- url
- buttonColor
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- product
src:
type: string
maxLength: 2048
alt:
type: string
maxLength: 300
title:
type: string
maxLength: 10000
text:
type: string
maxLength: 10000
price:
type: string
maxLength: 100
buttonText:
type: string
maxLength: 200
url:
type: string
maxLength: 2048
buttonColor:
type: string
pattern: ^#[0-9a-f]{6}$
required:
- id
- type
- src
- alt
- title
- text
- price
- buttonText
- url
- buttonColor
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- code
text:
type: string
maxLength: 10000
required:
- id
- type
- text
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- coupon
title:
type: string
maxLength: 10000
text:
type: string
maxLength: 10000
code:
type: string
maxLength: 100
url:
type: string
maxLength: 2048
buttonText:
type: string
maxLength: 200
buttonColor:
type: string
pattern: ^#[0-9a-f]{6}$
required:
- id
- type
- title
- text
- code
- url
- buttonText
- buttonColor
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- list
items:
minItems: 1
maxItems: 12
type: array
items:
type: string
maxLength: 1000
required:
- id
- type
- items
additionalProperties: false
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- social
links:
minItems: 1
maxItems: 6
type: array
items:
type: object
properties:
label:
type: string
minLength: 1
maxLength: 50
url:
type: string
maxLength: 2048
required:
- label
- url
additionalProperties: false
required:
- id
- type
- links
additionalProperties: false
EmailDesignInput:
type: object
properties:
version:
type: number
enum:
- 1
preheader:
type: string
maxLength: 200
showLogo:
type: boolean
theme:
type: object
properties:
background:
type: string
pattern: ^#[0-9a-f]{6}$
surface:
type: string
pattern: ^#[0-9a-f]{6}$
text:
type: string
pattern: ^#[0-9a-f]{6}$
accent:
type: string
pattern: ^#[0-9a-f]{6}$
font:
type: string
enum:
- Arial
- Georgia
- Verdana
- Trebuchet MS
width:
type: integer
minimum: 480
maximum: 720
radius:
type: integer
minimum: 0
maximum: 32
required:
- background
- surface
- text
- accent
- font
- width
- radius
additionalProperties: false
blocks:
minItems: 1
maxItems: 60
type: array
items:
$ref: '#/components/schemas/EmailSectionInput'
required:
- version
- preheader
- theme
- blocks
additionalProperties: false
EmailSectionInput:
anyOf:
- $ref: '#/components/schemas/EmailComponentInput'
- type: object
properties:
id:
type: string
pattern: ^[a-zA-Z0-9_-]{1,80}$
align:
default: left
type: string
enum:
- left
- center
- right
padding:
default: 24
type: integer
minimum: 0
maximum: 64
background:
default: '#ffffff'
type: string
pattern: ^#[0-9a-f]{6}$
color:
default: '#24382e'
type: string
pattern: ^#[0-9a-f]{6}$
fontSize:
default: 16
type: integer
minimum: 10
maximum: 64
bold:
default: false
type: boolean
italic:
default: false
type: boolean
type:
type: string
enum:
- columns
left:
maxItems: 12
type: array
items:
$ref: '#/components/schemas/EmailComponentInput'
right:
maxItems: 12
type: array
items:
$ref: '#/components/schemas/EmailComponentInput'
required:
- id
- type
- left
- right
additionalProperties: false
securitySchemes:
bearerAuth:
type: http
scheme: bearer