Voice Logica Agentic - Campaign Leads API

The Agentic - Campaign Leads API from Voice Logica, for agentic - campaign leads.

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 4

POST /api/v1/agentic/campaign-leads Add leads to a campaign for automated outbound calling #
POST /api/v1/agentic/campaign-leads/caller-id-check Check lead caller IDs before adding leads #
POST /api/v1/agentic/campaign-leads/call-outcome/hang-up Hang up the person on a campaign call a team member answered #
POST /api/v1/agentic/campaign-leads/call-outcome Pick the outcome of a campaign call a team member answered #

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/voicelogica-ai:voicelogica-ai-agentic-campaign-leads-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

voicelogica-ai-agentic-campaign-leads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Voice Logica Agentic - Campaign Leads API
  version: 1.0.0
  description: 'Voice Logica API Reference


    ## 📚 Documentation


    For comprehensive guides, tutorials, and support documentation, visit docs.voicelogica.ai


    ## Authentication


    All API requests require authentication via the `x-api-key` header.


    ## Reseller Support


    If you are a reseller managing multiple companies, you can use the optional `x-company-id` header to specify which of your subsidiary companies the API request should operate on. When provided, the API will validate that your API key has access to the specified company and execute the request on behalf of that company.


    **Example:**

    - Without `x-company-id`: Request operates on your primary company (the company linked with your API key)

    - With `x-company-id`: Request operates on the specified subsidiary company (must be a company under your reseller account)'
servers:
- url: https://api.voicelogica.ai
tags:
- name: Agentic - Campaign Leads
paths:
  /api/v1/agentic/campaign-leads:
    post:
      summary: Add leads to a campaign for automated outbound calling
      description: 'Upload one or more leads to a campaign. Each lead represents a contact that will be called by the AI agent. You can upload leads in bulk by providing an array of lead objects.


        **Required Fields:**

        - `campaignId`: ID of the campaign to add leads to

        - `phoneNumber` OR `email`: At least one contact method is required


        **Optional Fields:**

        - `sipTrunkId`: SIP trunk for this lead (get from POST /phones/sip-trunks/query). Falls back to the campaign `sipTrunkIds` when omitted.

        - `status`: Initial status (default: "pending")

        - `dynamicVariables`: Merge tags for personalization (e.g., firstName, lastName, company)

        - `contextForAi`: Additional context to help the AI agent during the call

        - `welcomeInstructions`: How the AI should open the call for this lead, when the campaign writes the welcome for each call (empty = the campaign instructions)

        - `preferredChannel`: Preferred communication channel (phone, email, sms)

        - `timeZone`: Timezone for scheduling calls at appropriate times

        - `nextActionAt`: Schedule the first call attempt for a specific time


        **Dynamic Variables:**

        Dynamic variables are used for personalization in AI conversations. Common examples:

        - `firstName`, `lastName`: For addressing the lead by name

        - `company`: Company name for context

        - `productInterest`: Specific product or service they''re interested in

        - `lastInteraction`: Notes from previous interactions


        **Example:** send an array of leads, then activate the campaign so it starts dialing during its schedule.


        **Bulk Upload:**

        Send the full list in one request. The server drops duplicate phones in the list, matches against existing campaign numbers (including additional numbers), then writes in batches.'
      responses:
        '200':
          description: Leads added successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  count:
                    type: number
                  message:
                    type: string
                required:
                - success
                - count
                - message
        '400':
          description: Bad request - Invalid lead data
          content:
            application/json: {}
        '401':
          description: Unauthorized
          content:
            application/json: {}
        '403':
          description: Invalid CSRF
          content:
            application/json: {}
        '429':
          description: Rate limit exceeded
          content:
            application/json: {}
        '500':
          description: Internal Server Error
          content:
            application/json: {}
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
        description: Your API key for authentication. Required for all endpoints.
      - name: x-company-id
        in: header
        required: false
        schema:
          type: string
        description: Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  campaignId:
                    type: string
                    minLength: 1
                    description: ID of the campaign this lead belongs to
                  phoneNumber:
                    type: string
                    description: Phone number for the lead contact
                  additionalPhoneNumbers:
                    oneOf:
                    - oneOf:
                      - type: string
                      - type: number
                    - type: array
                      items:
                        oneOf:
                        - type: string
                        - type: number
                    description: Additional phone numbers for multi-number calling. Accepts a number, a string, or an array. Values may be comma- or space-separated; non-digit characters are stripped automatically.
                  email:
                    type: string
                    description: Email address for the lead contact (will be set to null if invalid)
                  sipTrunkId:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                    description: SIP trunk to use for this lead. Get IDs from POST /phones/sip-trunks/query. Must be one of the campaign sipTrunkIds when the campaign lists any. Falls back to the campaign sipTrunkIds when omitted.
                  callerId:
                    type: string
                    description: Caller ID (e.g. phone number or SIP identity) displayed to the lead when outbound calls are placed — overrides the SIP trunk default
                  prefix:
                    type: string
                    description: Prefix to use for the lead
                  status:
                    type: string
                    enum:
                    - pending
                    - running
                    - successful
                    - cancelled
                    - scheduled
                    - paused
                    - reachedMaxRetries
                    - failed
                    - askedToCallBackLater
                    - askedToNeverCallAgain
                    description: Current status of the campaign lead
                  statusUpdatedAt:
                    type: string
                    format: date-time
                    description: ISO 8601 date string
                  nextActionAt:
                    type: string
                    format: date-time
                    description: ISO 8601 date string
                  currentFollowUpCount:
                    type: number
                    minimum: 0
                    default: 0
                    description: Number of follow-up attempts made
                  currentStage:
                    type: string
                    maxLength: 80
                    description: Last campaign stage assigned after an attempt
                  preferredChannel:
                    type: string
                    enum:
                    - email
                    - phone
                    - sms
                    - whatsapp
                    description: Preferred communication channel for this lead
                  timeZone:
                    type: string
                    description: IANA time zone, e.g. Europe/Athens
                  dynamicVariables:
                    type: object
                    additionalProperties:
                      type: object
                      description: Any valid JSON value
                    description: Merge tags and dynamic variables for this lead
                  analysisResults:
                    type: object
                    additionalProperties:
                      oneOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - type: object
                        properties: {}
                    description: Analysis results - AI-generated analysis data from call processing
                  contextForAi:
                    type: string
                    description: Free-text prompt booster for AI interactions
                  language:
                    oneOf:
                    - type: string
                      enum:
                      - ar-AE
                      - ar-BH
                      - ar-EG
                      - ar-KW
                      - ar-OM
                      - ar-QA
                      - ar-SA
                      - ar-LB
                      - ar-MA
                      - el-GR
                      - en-US
                      - es-ES
                      - fr-FR
                      - el-CY
                      - en-DK
                      - he-IL
                      - bg-BG
                      - ru-RU
                      - de-DE
                      - it-IT
                      - pt-PT
                      - ru-RU
                      - tr-TR
                      - zh-CN
                      - ja-JP
                      - ko-KR
                      - ja-JP
                      - ar-SA
                      - hi-IN
                      - bn-BD
                      - pa-IN
                      - ta-IN
                      - te-IN
                      - ur-IN
                      - vi-VN
                      - th-TH
                      - id-ID
                      - ms-MY
                      - fil-PH
                      - nl-NL
                      - sv-SE
                      - no-NO
                      - da-DK
                      - fi-FI
                      - is-IS
                      - gl-ES
                      - ca-ES
                      - eu-ES
                      - pt-BR
                      - zh-TW
                      - zh-HK
                      - zh-MO
                      - zh-SG
                      - zh-CH
                      - zh-CHT
                      - zh-CHS
                      - zh-CHT
                      - ro-RO
                      - hu-HU
                      - pl-PL
                      - sr-RS
                      - mk-MK
                      - bg-BG
                      - uk-UA
                      - en-GB
                      - en-AU
                      - en-CA
                      - en-NZ
                      - en-ZA
                      - en-IN
                      - en-IE
                      - en-PH
                      - en-SG
                      - en-HK
                      - en-MO
                      - en-CN
                      - en-TW
                      - en-MY
                      - nl-BE
                      - de-AT
                      - de-CH
                      - sv-SE
                      - no-NO
                      - da-DK
                      - fi-FI
                      - is-IS
                      - gl-ES
                      - ca-ES
                      - eu-ES
                      - pt-BR
                      - zh-TW
                      - zh-HK
                      - cs-CZ
                      - sk-SK
                      - sl-SI
                      - hr-HR
                      - lt-LT
                      - lv-LV
                      - et-EE
                      - mt-MT
                      - lb-LU
                      - sq-AL
                      - bs-BA
                      - ca-AD
                      - fr-MC
                      - it-SM
                      - it-VA
                      - ur-PK
                      description: Locale code
                    - type: string
                      enum:
                      - ''
                    description: Locale code
                  welcomeInstructions:
                    type: string
                    maxLength: 8000
                    description: Greeting instructions for this lead when the campaign writes the welcome for each call; empty = the campaign instructions
                  viewUrl:
                    type: string
                    description: URL to view the lead in the campaign
                  assignedUserId:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                    description: Company user who last took this lead — later campaign dials and post-call work stay with this user
                required:
                - campaignId
                - additionalPhoneNumbers
                - status
                description: Request schema for creating or updating a campaign lead
                example:
                  campaignId: 507f1f77bcf86cd799439011
                  phoneNumber: '+306912345678'
                  email: john.doe@example.com
                  sipTrunkId: 507f1f77bcf86cd799439015
                  status: pending
                  dynamicVariables:
                    firstName: John
                    lastName: Doe
                    company: Acme Corp
                  contextForAi: John requested a callback about order ORD-123.
                  nextActionAt: '2026-09-16T09:00:00.000Z'
              description: Array of campaign leads to upload
              example:
              - campaignId: 507f1f77bcf86cd799439011
                phoneNumber: '+306912345678'
                email: john.doe@example.com
                sipTrunkId: 507f1f77bcf86cd799439015
                status: pending
                dynamicVariables:
                  firstName: John
                  lastName: Doe
                  company: Acme Corp
                  order_id: ORD-123
                contextForAi: John requested a callback about order ORD-123. Prefers Greek.
                nextActionAt: '2026-09-16T09:00:00.000Z'
              - campaignId: 507f1f77bcf86cd799439011
                phoneNumber: '+306987654321'
                email: jane.smith@example.com
                status: pending
                dynamicVariables:
                  firstName: Jane
                  lastName: Smith
                  quote_id: Q-567
                contextForAi: Follow up on the quote sent last week.
            example:
            - campaignId: 507f1f77bcf86cd799439011
              phoneNumber: '+306912345678'
              email: john.doe@example.com
              sipTrunkId: 507f1f77bcf86cd799439015
              status: pending
              dynamicVariables:
                firstName: John
                lastName: Doe
                company: Acme Corp
                order_id: ORD-123
              contextForAi: John requested a callback about order ORD-123. Prefers Greek.
              nextActionAt: '2026-09-16T09:00:00.000Z'
            - campaignId: 507f1f77bcf86cd799439011
              phoneNumber: '+306987654321'
              email: jane.smith@example.com
              status: pending
              dynamicVariables:
                firstName: Jane
                lastName: Smith
                quote_id: Q-567
              contextForAi: Follow up on the quote sent last week.
      security:
      - apiKey: []
      tags:
      - Agentic - Campaign Leads
      operationId: postApiV1AgenticCampaignLeads
      x-operation-id-source: derived
  /api/v1/agentic/campaign-leads/caller-id-check:
    post:
      summary: Check lead caller IDs before adding leads
      description: 'Send the caller IDs of leads about to be added. Returns the ones the campaign would refuse (they are dropped on add and the lead is called from the trunk number instead), each with the company trunk that owns it when there is one: add that trunk to the campaign `sipTrunkIds` to keep them.'
      responses:
        '200':
          description: Refused caller IDs
          content:
            application/json:
              schema:
                type: object
                properties:
                  refused:
                    type: array
                    items:
                      type: object
                      properties:
                        callerId:
                          type: string
                        reason:
                          type: string
                          description: Why adding the leads would drop this caller ID
                        trunk:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                          required:
                          - id
                          - name
                          description: 'Company trunk that owns the number: add it to the campaign to keep the caller ID'
                      required:
                      - callerId
                      - reason
                    description: Caller IDs the campaign would refuse; empty when all fit
                required:
                - refused
        '401':
          description: Unauthorized
          content:
            application/json: {}
        '403':
          description: Invalid CSRF
          content:
            application/json: {}
        '429':
          description: Rate limit exceeded
          content:
            application/json: {}
        '500':
          description: Internal Server Error
          content:
            application/json: {}
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
        description: Your API key for authentication. Required for all endpoints.
      - name: x-company-id
        in: header
        required: false
        schema:
          type: string
        description: Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                campaignId:
                  type: string
                  pattern: ^[0-9a-fA-F]{24}$
                  description: Campaign the leads go to
                callerIds:
                  type: array
                  items:
                    type: string
                    maxLength: 20
                  maxItems: 5000
                  description: Caller IDs of the leads about to be added
              required:
              - campaignId
              - callerIds
      security:
      - apiKey: []
      tags:
      - Agentic - Campaign Leads
      operationId: postApiV1AgenticCampaignLeadsCallerIdCheck
      x-operation-id-source: derived
  /api/v1/agentic/campaign-leads/call-outcome/hang-up:
    post:
      summary: Hang up the person on a campaign call a team member answered
      description: 'Ends only the line of the person the campaign called. The team member stays connected to the campaign extension and gets the next lead after the wrap-up time. No outcome is picked here: pick it with `call-outcome`, or send `hangUp: true` there to do both in one request. A call that already ended answers `endedLead: false` (a second click is fine). Needs the `campaign.manage_campaign_leads` API scope.'
      responses:
        '200':
          description: The person was hung up (or the call had already ended)
          content:
            application/json:
              schema:
                type: object
                properties:
                  callId:
                    type: string
                  leadId:
                    type: string
                  endedLead:
                    type: boolean
                    description: 'true: the person was on the line and was hung up now; false: the call had already ended'
                  seatKept:
                    type: boolean
                    description: 'Always true: the team member stays connected to the campaign'
                required:
                - callId
                - endedLead
                - seatKept
        '401':
          description: Unauthorized
          content:
            application/json: {}
        '403':
          description: Invalid CSRF
          content:
            application/json: {}
        '429':
          description: Rate limit exceeded
          content:
            application/json: {}
        '500':
          description: Internal Server Error
          content:
            application/json: {}
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
        description: Your API key for authentication. Required for all endpoints.
      - name: x-company-id
        in: header
        required: false
        schema:
          type: string
        description: Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                callId:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: The campaign call (its id, as in get_calls)
              required:
              - callId
      security:
      - apiKey: []
      tags:
      - Agentic - Campaign Leads
      operationId: postApiV1AgenticCampaignLeadsCallOutcomeHangUp
      x-operation-id-source: derived
  /api/v1/agentic/campaign-leads/call-outcome:
    post:
      summary: Pick the outcome of a campaign call a team member answered
      description: 'For the outcome buttons of your own app, by call id. `stage` is one of the stage names of the campaign (Campaign settings, Stages; `call-outcome/get` lists them): a closing stage (success, failed, other) ends the lead, a retry stage calls the person again after the wait of the stage, or at `callbackAt` when the person agreed a day and time. `hangUp: true` first ends the line of the person if they are still on it; the team member stays connected to the campaign and gets the next lead. `neverCallAgain: true` closes the lead for good and opts the contact out. The outcome can be changed until the lead is called again. Needs the `campaign.manage_campaign_leads` API scope.'
      responses:
        '200':
          description: The outcome was saved
          content:
            application/json:
              schema:
                type: object
                properties:
                  callId:
                    type: string
                  leadId:
                    type: string
                  campaignId:
                    type: string
                  campaignName:
                    type: string
                  timeZone:
                    type: string
                    description: Timezone the call-back time is shown in (lead, else campaign schedule)
                  leadStatus:
                    type: string
                    description: The lead status now
                  waiting:
                    type: boolean
                    description: The lead is held until someone picks the outcome of this call
                  canPick:
                    type: boolean
                    description: The outcome can still be picked or changed (the lead was not called again since)
                  refusal:
                    type: string
                    description: Why it cannot be picked any more
                  refusalCode:
                    type: string
                    enum:
                    - never_call_again
                    - call_in_progress
                    - newer_call
                    - machine_answer
                    description: 'The same reason as a code. call_in_progress passes once the call is closed. machine_answer: a voicemail or an operator message answered, the call was ended and counts as no answer'
                  picked:
                    type: object
                    properties:
                      callId:
                        type: string
                        description: The call the outcome is for
                      userId:
                        type: string
                        description: Who picked it
                      stage:
                        type: string
                        description: The stage picked
                      callbackAt:
                        type: string
                        format: date-time
                        description: ISO 8601 date string
                      neverCallAgain:
                        type: boolean
                        description: 'Picked with "never call again": the lead closed for good'
                      at:
                        type: string
                        format: date-time
                        description: When it was picked
                    required:
                    - callId
                    - stage
                    - at
                    description: The outcome a team member picked
                  endedLead:
                    type: boolean
                    description: 'With hangUp: true when the person was on the line and was hung up by this request'
                  suggestedStage:
                    type: string
                    description: The AI suggestion (never applied by itself)
                  suggestedCallbackAt:
                    type: string
                    format: date-time
                    description: ISO 8601 date string
                  stages:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        description:
                          type: string
                        nextAction:
                          type: string
                          enum:
                          - success
                          - failed
                          - other
                          - retry
                          description: success / failed / other close the lead; retry calls it again
                        defaultCallbackAt:
                          type: string
                          format: date-time
                          description: ISO 8601 date string
                      required:
                      - name
                      - nextAction
                required:
                - callId
                - leadId
                - campaignId
                - leadStatus
                - waiting
                - canPick
                - stages
        '401':
          description: Unauthorized
          content:
            application/json: {}
        '403':
          description: Invalid CSRF
          content:
            application/json: {}
        '429':
          description: Rate limit exceeded
          content:
            application/json: {}
        '500':
          description: Internal Server Error
          content:
            application/json: {}
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
        description: Your API key for authentication. Required for all endpoints.
      - name: x-company-id
        in: header
        required: false
        schema:
          type: string
        description: Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                callId:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: The campaign call (its id, as in get_calls)
                stage:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: 'The stage to put the lead on: one of the campaign stage names (call_outcome lists them)'
                callbackAt:
                  type: string
                  format: date-time
                  description: ISO 8601 date string
                hangUp:
                  type: boolean
                  description: 'true: if the person is still on the line, hang them up first. Only their line ends: the team member stays connected to the campaign and gets the next lead. For a button in your own app that closes the call and records the outcome in one step'
                neverCallAgain:
                  type: boolean
                  description: 'true: the person asked not to be called again. The lead closes for good (never-call-again), the contact is opted out and no campaign calls this number again'
              required:
              - callId
              - stage
      security:
      - apiKey: []
      tags:
      - Agentic - Campaign Leads
      operationId: postApiV1AgenticCampaignLeadsCallOutcome
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your API key for authentication. Required for all protected endpoints.