WarmySender Enrollments API

The Enrollments API from WarmySender, for enrollments.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /campaigns/{id}/enrollments Enroll prospects #
DELETE /campaigns/{id}/enrollments Unenroll prospects #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/warmysender-com:warmysender-com-enrollments-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

warmysender-com-enrollments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WarmySender Public Enrollments API
  version: 1.0.0
  description: 'The WarmySender Public REST API for Cold Email, Email Warmup, LinkedIn, Instagram and multichannel campaigns.


    **Authentication.** Every request (except `GET /me` and this spec) requires a Bearer API key in the `Authorization` header: `Authorization: Bearer ws_...`. Create keys in your workspace settings and grant each key only the scopes it needs.


    **Response envelope.** Successful responses wrap their payload in a `data` field. List endpoints add a `pagination` object (`{ has_more, next_cursor }`) for cursor-based paging, and most responses include a `meta.request_id`. Errors return `{ error: { code, message, ... } }` with the matching HTTP status. (`GET /me` is the one endpoint not wrapped in `data`.)


    **Rate limit.** 60–480 requests per minute, per workspace, depending on your plan (Pro 60 · Enterprise 240 · Ultimate 480). The limit is per WORKSPACE, not per API key — minting more keys does not raise it. Connection-test endpoints have an additional, stricter limit. When throttled you receive `429` with a `Retry-After` header.


    **Idempotency.** Write endpoints that create or mutate resources accept (and some require) a unique `Idempotency-Key` header so retries never duplicate work. Reusing a key returns the original result; reusing it with a different body returns `409`.


    **Webhooks.** WarmySender also delivers outbound webhooks (reply received, bounce, open, click, LinkedIn invite accepted, and more). Register endpoints with the Webhooks API; the available event types and their payloads are listed under the `x-webhook-events` extension of this document.'
  contact:
    name: WarmySender Support
    url: https://warmysender.com/support
servers:
- url: https://warmysender.com/api/v1
security:
- bearerAuth: []
tags:
- name: Enrollments
paths:
  /campaigns/{id}/enrollments:
    post:
      operationId: enrollments-create
      summary: Enroll prospects
      description: 'Adds prospects to a campaign by prospect id, audience list id, email, and/or WhatsApp number. Suppressed prospects are skipped and counted separately. Provide at least one of prospectIds, listIds, emails, whatsappPhones. Emails and numbers that match no existing lead are reported back rather than silently dropped. Enrolling new prospects into a completed campaign reopens it for them (campaignReopened: true) — prospects already in it, including those who finished, are skipped and never emailed again, and sending is paced by the scheduler as usual.


        Required scope: `enrollments:write`.


        Requires a unique `Idempotency-Key` request header so retries never duplicate.'
      tags:
      - Enrollments
      parameters:
      - name: id
        in: path
        required: true
        description: Campaign id (UUID).
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        description: A unique key (e.g. a UUID) that makes this write safe to retry. Reusing a key returns the original result; reusing it with a different body returns 409.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prospectIds:
                  type: array
                  items:
                    type: string
                  description: Prospect ids to enroll.
                listIds:
                  type: array
                  items:
                    type: string
                  description: Audience list ids — every prospect on each list is enrolled.
                emails:
                  type: array
                  items:
                    type: string
                  description: Prospect emails to enroll.
                whatsappPhones:
                  type: array
                  items:
                    type: string
                  description: WhatsApp numbers of existing leads to enroll. Any human format is accepted (+49 171 234 5678, 0049…, bare digits, a wa.me link) and normalized before matching.
            example:
              emails:
              - jane@acme.com
              listIds:
              - list_9f3a2b
              whatsappPhones:
              - +49 171 2345678
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  enrolledCount: 12
                  suppressedCount: 1
                  invalidCount: 0
                  alreadyEnrolledCount: 2
                  totalProcessed: 15
                  notFoundEmails: []
                  notFoundPhones: []
                  campaignStatus: running
                  campaignReopened: false
        '400':
          description: '`validation_error` — No targets given or body invalid.'
          content:
            application/json:
              example:
                error:
                  code: validation_error
                  message: No targets given or body invalid.
        '401':
          description: '`unauthorized` — Missing or invalid API key.'
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid API key.
        '403':
          description: '`insufficient_scope` — The campaign runs Instagram or WhatsApp steps and this key lacks that channel''s write permission. Nobody was enrolled.; `seat_required` — The campaign runs Instagram or WhatsApp steps and the workspace has no active seat for that channel.'
          content:
            application/json:
              example:
                error:
                  code: insufficient_scope
                  message: The campaign runs Instagram or WhatsApp steps and this key lacks that channel's write permission. Nobody was enrolled.
        '404':
          description: '`not_found` — Campaign not found.'
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Campaign not found.
        '429':
          description: '`rate_limited` — Too many requests — slow down and retry after the Retry-After delay.'
          content:
            application/json:
              example:
                error:
                  code: rate_limited
                  message: Too many requests — slow down and retry after the Retry-After delay.
    delete:
      operationId: enrollments-delete
      summary: Unenroll prospects
      description: 'Removes prospects from a campaign (soft-stop — their audit history is preserved and any pending sends are cancelled). Provide at least one of prospectIds, emails.


        Required scope: `enrollments:write`.'
      tags:
      - Enrollments
      parameters:
      - name: id
        in: path
        required: true
        description: Campaign id (UUID).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prospectIds:
                  type: array
                  items:
                    type: string
                  description: Prospect ids to unenroll.
                emails:
                  type: array
                  items:
                    type: string
                  description: Prospect emails to unenroll.
            example:
              emails:
              - jane@acme.com
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  unenrolledCount: 1
                  totalProcessed: 1
        '400':
          description: '`validation_error` — No targets given or body invalid.'
          content:
            application/json:
              example:
                error:
                  code: validation_error
                  message: No targets given or body invalid.
        '401':
          description: '`unauthorized` — Missing or invalid API key.'
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid API key.
        '403':
          description: '`insufficient_scope` — The API key lacks the scope this endpoint requires.'
          content:
            application/json:
              example:
                error:
                  code: insufficient_scope
                  message: The API key lacks the scope this endpoint requires.
        '404':
          description: '`not_found` — Campaign not found.'
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Campaign not found.
        '429':
          description: '`rate_limited` — Too many requests — slow down and retry after the Retry-After delay.'
          content:
            application/json:
              example:
                error:
                  code: rate_limited
                  message: Too many requests — slow down and retry after the Retry-After delay.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key (ws_...)
x-webhook-events:
- type: reply.received
  description: A prospect replied (email or LinkedIn). messageId is the Message-ID of the reply itself. For email, inReplyToMessageId is the messageId of the email it answered (the same value as in email.sent and GET /emails/sent), plus the stepIndex and stepNumber of that email; these three fields are left out when the reply does not name one of your emails. For email, bodyText is the full reply as it arrived (up to 4,000 characters, with bodyTruncated telling you when it was cut) and fromEmail is the address it came from. When known, an email reply also includes toEmail (the mailbox it arrived at), campaignName, prospectName, prospectCompany, and bodyTextStripped (only the words the person typed, without the quoted earlier email; empty when the reply is only that quote). Each of those is left out when unknown. GET /replies returns the same record for backfilling.
  payloadExample:
    prospectId: f3c4a2d1-...
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    campaignName: Q3 founders outreach
    mailboxId: 5bd50e20-...
    subject: 'Re: Quick question, Jane'
    messageId: <CAJx9f2k7Qp@mail.acme.com>
    receivedAt: '2026-06-10T11:00:00.000Z'
    channel: email
    inReplyToMessageId: <a1b2c3d4-5e6f-7a8b@yourdomain.com>
    stepIndex: 1
    stepNumber: 2
    fromEmail: jane@acme.com
    toEmail: alex@yourdomain.com
    prospectName: Jane Cooper
    prospectCompany: Acme
    bodyText: Hi Alex, yes, send me the details on Thursday.
    bodyTruncated: false
    bodyTextStripped: Hi Alex, yes, send me the details on Thursday.
- type: email.sent
  description: 'A campaign email was accepted by your sending mailbox server. This is not yet a delivery confirmation: problems found later arrive as email.bounced. Warmup emails and test sends are not included. Same fields as GET /emails/sent.'
  payloadExample:
    prospectId: f3c4a2d1-...
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    campaignName: Q3 founders outreach
    stepIndex: 1
    stepNumber: 2
    mailboxId: 5bd50e20-...
    fromEmail: alex@yourdomain.com
    subject: Quick question, Jane
    messageId: <a1b2c3d4-5e6f-7a8b@yourdomain.com>
    sentAt: '2026-06-10T10:42:00.000Z'
    channel: email
- type: email.bounced
  description: An outbound email bounced (hard or soft).
  payloadExample:
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    mailboxId: 5bd50e20-...
    bounceType: hard
    bounceReason: 550 user unknown
    bouncedAt: '2026-06-10T11:01:00.000Z'
- type: email.unsubscribed
  description: A prospect unsubscribed.
  payloadExample:
    prospectId: f3c4a2d1-...
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    unsubscribedAt: '2026-06-10T11:02:00.000Z'
- type: email.opened
  description: A tracked email was opened.
  payloadExample:
    prospectId: f3c4a2d1-...
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    stepIndex: 0
    openedAt: '2026-06-10T11:03:00.000Z'
- type: email.clicked
  description: A tracked link was clicked. likelyAutomated is true when it was probably a mail security system rather than a person.
  payloadExample:
    prospectId: f3c4a2d1-...
    prospectEmail: jane@acme.com
    campaignId: c1a2b3c4-...
    url: https://yourdomain.com/demo
    clickedAt: '2026-06-10T11:04:00.000Z'
    likelyAutomated: false
- type: prospect.suppressed
  description: A prospect was added to the suppression list.
  payloadExample:
    prospectId: f3c4a2d1-...
    email: jane@acme.com
    reason: manual opt-out
    suppressedAt: '2026-06-10T11:05:00.000Z'
- type: limit.hit
  description: A sending limit (mailbox/domain/prospect/cooldown) was reached.
  payloadExample:
    limitType: daily_mailbox
    mailboxId: 5bd50e20-...
    currentValue: 50
    limitValue: 50
    hitAt: '2026-06-10T11:06:00.000Z'
- type: linkedin.invite_accepted
  description: A LinkedIn connection invite was accepted. Sent once per person per campaign. lateAccept is true when the person accepted after their last step in the campaign had already run (for example on an invite-only campaign, or after the wait-for-acceptance window); lateAcceptObservedAt is when we saw it. Nothing extra is sent on LinkedIn because of this event.
  payloadExample:
    prospectName: Sam Rivera
    prospectLinkedinUrl: https://www.linkedin.com/in/samrivera
    campaignId: c1a2b3c4-...
    enrollmentId: enr_...
    linkedinAccountId: li_5a2b1c
    acceptedAt: '2026-06-10T11:07:00.000Z'
    lateAccept: false
    lateAcceptObservedAt: null
- type: linkedin.reply_received
  description: A LinkedIn message reply was received.
  payloadExample:
    prospectName: Sam Rivera
    prospectLinkedinUrl: https://www.linkedin.com/in/samrivera
    campaignId: c1a2b3c4-...
    enrollmentId: enr_...
    linkedinAccountId: li_5a2b1c
    messageText: Sure, let's talk
    threadId: th_...
    receivedAt: '2026-06-10T11:08:00.000Z'
- type: instagram.reply_received
  description: An Instagram DM reply was received.
  payloadExample:
    prospectName: Sam Rivera
    instagramProfileUrl: https://instagram.com/samrivera
    instagramUsername: samrivera
    campaignId: c1a2b3c4-...
    enrollmentId: enr_...
    instagramAccountId: ig_5a2b1c
    messageText: Sure, send it over
    threadId: th_...
    receivedAt: '2026-06-10T11:08:30.000Z'
- type: whatsapp.reply_received
  description: A WhatsApp reply was received.
  payloadExample:
    prospectName: Sam Rivera
    whatsappPhone: '491712345678'
    campaignId: c1a2b3c4-...
    enrollmentId: enr_...
    whatsappAccountId: wa_5a2b1c
    messageText: Yes, go ahead
    chatId: ch_...
    receivedAt: '2026-06-10T11:08:45.000Z'
- type: inbox.received
  description: Every new message that arrived, including a later reply, an automatic reply, and a bounce of one of your contacts (with failedRecipient). kind is reply, auto_reply, or bounce. Warmup mail is not included.
  payloadExample:
    channel: email
    kind: reply
    messageId: <sample.inbox@example.invalid>
    receivedAt: '2026-06-10T11:00:00.000Z'
    threadId: sample-thread-id
    text: Got it, let us talk next week.
    textTruncated: false
- type: webhook.test
  description: A manual test event sent from the test endpoint.
  payloadExample:
    webhookId: wh_2c1a9f
    timestamp: '2026-06-10T11:09:00.000Z'
    message: This is a test event from WarmySender