Sending Imports API
Data import and migration (ActiveCampaign).
Data import and migration (ActiveCampaign).
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/sending-dev:sending-dev-imports-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: Sending.dev Imports API
version: 1.0.0
description: 'Public REST API of Sending.dev (MCP-native orchestrator for email + WhatsApp + Telegram).
## Authentication
Every request requires `Authorization: Bearer sk_...` (workspace API key). The `tenantId` is always derived from the key.
## Idempotency
Sends require an `idempotencyKey` (min 8 characters) to prevent duplicates on retries.'
contact:
name: Sending.dev
url: https://sending.dev
servers:
- url: https://sending.dev/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Local development
security:
- bearerAuth: []
tags:
- name: Imports
description: Data import and migration (ActiveCampaign).
paths:
/imports/activecampaign:
post:
tags:
- Imports
summary: Start an ActiveCampaign import
description: 'Configures the credentials in the same call (`apiUrl`+`apiKey`, together) or uses the saved ones, then queues the import. Required scope: `contacts:write`.'
security:
- bearerAuth: []
x-required-scope:
- contacts:write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StartAcImportBody'
responses:
'202':
description: 'Import queued: job id.'
content:
application/json:
schema:
$ref: '#/components/schemas/Created'
'400':
description: Invalid AC credentials or connection failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'409':
description: State conflict (e.g. duplicate).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
operationId: postImportsActivecampaign
x-operation-id-source: derived
/imports:
get:
tags:
- Imports
summary: List imports
description: 'Required scope: `contacts:read`.'
security:
- bearerAuth: []
x-required-scope:
- contacts:read
responses:
'200':
description: Workspace imports.
content:
application/json:
schema:
$ref: '#/components/schemas/ListImportJobsResponse'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
operationId: getImports
x-operation-id-source: derived
/imports/{id}:
get:
tags:
- Imports
summary: Get an import
description: 'Required scope: `contacts:read`.'
security:
- bearerAuth: []
x-required-scope:
- contacts:read
parameters:
- schema:
type: string
description: Import job ID.
required: true
name: id
in: path
responses:
'200':
description: Import detail.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportJobResponse'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getImportsById
x-operation-id-source: derived
components:
schemas:
Created:
type: object
properties:
id:
type: string
format: uuid
required:
- id
StartAcImportBody:
type: object
properties:
apiUrl:
type: string
description: E.g. https://<account>.api-us1.com
apiKey:
type: string
description: ActiveCampaign API key (Settings › Developer).
entities:
type: object
properties:
fields:
type: boolean
tags:
type: boolean
lists:
type: boolean
contacts:
type: boolean
suppressions:
type: boolean
campaigns:
type: boolean
description: 'Campaigns: email content as a reusable template plus the history. Imported campaigns are never scheduled.'
automations:
type: boolean
description: 'Automations: always imported as DRAFTS to review, never active. The AC structure cannot be exported reliably, so the report lists for each automation what was not converted.'
options:
type: object
properties:
overwriteExisting:
type: boolean
description: 'Overwrites existing contacts'' attributes with the AC values (default: non-destructive merge).'
convertAutomationsWithAi:
type: boolean
description: Uses AI to translate automation blocks into our DAG (default true, consumes the plan's AI credits). With false only the deterministic mapping of known blocks is used.
ValidationError:
type: object
properties:
error:
type: object
properties:
formErrors:
type: array
items:
type: string
fieldErrors:
type: object
additionalProperties:
type: array
items:
type: string
required:
- formErrors
- fieldErrors
required:
- error
description: 'Zod validation failed: shape of `ZodError.flatten()`.'
Error:
type: object
properties:
error:
type: string
example: not_found
message:
type: string
required:
- error
description: 'Generic error: snake_case code in `error`.'
ImportJobResponse:
type: object
properties:
id:
type: string
format: uuid
provider:
type: string
status:
type: string
enum:
- pending
- running
- completed
- failed
- canceled
entities:
type: object
additionalProperties:
type: boolean
options:
type: object
additionalProperties: {}
phase:
type:
- string
- 'null'
progress:
type: object
additionalProperties: {}
error:
type:
- string
- 'null'
startedAt:
type:
- string
- 'null'
format: date-time
finishedAt:
type:
- string
- 'null'
format: date-time
createdAt:
type: string
format: date-time
required:
- id
- provider
- status
- entities
- options
- phase
- progress
- error
- startedAt
- finishedAt
- createdAt
ListImportJobsResponse:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
provider:
type: string
status:
type: string
enum:
- pending
- running
- completed
- failed
- canceled
entities:
type: object
additionalProperties:
type: boolean
options:
type: object
additionalProperties: {}
phase:
type:
- string
- 'null'
progress:
type: object
additionalProperties: {}
error:
type:
- string
- 'null'
startedAt:
type:
- string
- 'null'
format: date-time
finishedAt:
type:
- string
- 'null'
format: date-time
createdAt:
type: string
format: date-time
required:
- id
- provider
- status
- entities
- options
- phase
- progress
- error
- startedAt
- finishedAt
- createdAt
required:
- data
ForbiddenError:
type: object
properties:
error:
type: string
enum:
- forbidden
need:
type: string
example: contacts:write
required:
- error
description: Insufficient scope; `need` names the missing scope.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Workspace API key in the `sk_...` format, passed as `Authorization: Bearer sk_...`. The `tenantId` is always derived from the key, never from a request parameter.'