> ## Documentation Index
> Fetch the complete documentation index at: https://docs.threetone.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a campaign lead

> Get one lead of an outbound campaign.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/convai/outbound-campaigns/campaigns/{campaign_id}/leads/{lead_id}
openapi: 3.1.0
info:
  title: Threetone API
  description: >-
    APIs for the Threetone Agents Platform and shared workspace resources.
    Authenticate programmatic requests with an API key in the x-api-key header.
  version: '1.0'
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/convai/outbound-campaigns/campaigns/{campaign_id}/leads/{lead_id}:
    get:
      tags:
        - Agents Platform
      summary: Get a campaign lead
      description: Get one lead of an outbound campaign.
      operationId: get_campaign_lead
      parameters:
        - name: campaign_id
          in: path
          required: true
          schema:
            type: string
            title: Campaign Id
        - name: lead_id
          in: path
          required: true
          schema:
            type: string
            title: Lead Id
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Your API key for programmatic access. Send it in the x-api-key
              header; you can create and manage keys from the Developers page.
            title: X-Api-Key
          description: >-
            Your API key for programmatic access. Send it in the x-api-key
            header; you can create and manage keys from the Developers page.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LeadDetailResponse:
      properties:
        lead_id:
          type: string
          title: Lead Id
        recipient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipient Id
          description: The `id` given to this recipient when the campaign was created.
        phone_number:
          type: string
          title: Phone Number
          description: >-
            The number the lead's next call dials. It changes when the lead
            moves on to another listed number or the contact asks to be called
            on a different one.
        phone_numbers:
          items:
            type: string
          type: array
          title: Phone Numbers
          description: The lead's listed numbers, in calling order.
        phone_numbers_index:
          type: integer
          title: Phone Numbers Index
          description: The position in `phone_numbers` of the number being called.
        timezone_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone Override
          description: >-
            The timezone the recipient's calling windows are read in; unset when
            the lead follows the campaign's.
        user_id:
          type: string
          title: User Id
          description: >-
            The contact's identity: the `user_id` submitted in
            `conversation_initiation_client_data`, else the lead's phone number.
        attempt_count:
          type: integer
          title: Attempt Count
          description: Calls placed, counted against the policy's `max_total_calls`.
        failure_count:
          type: integer
          title: Failure Count
          description: Failed calls to the current number; resets on a new number.
        callback_count:
          type: integer
          title: Callback Count
          description: Callbacks the contact asked for.
        redirect_count:
          type: integer
          title: Redirect Count
          description: Times the contact asked to be called on another number.
        do_not_call:
          type: boolean
          title: Do Not Call
          description: >-
            Set when the contact asked not to be called, the lead was removed,
            or the campaign stopped. The lead isn't called again.
        terminal_disposition:
          anyOf:
            - $ref: '#/components/schemas/TerminalDisposition'
            - type: 'null'
          description: Why the lead won't be called again; unset while it may be.
        created_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Created At Unix
          description: When the lead joined the campaign; unset on older leads.
        updated_at_unix:
          type: integer
          title: Updated At Unix
        dynamic_variables:
          additionalProperties: true
          type: object
          title: Dynamic Variables
          description: The dynamic variables submitted for the lead, with secrets redacted.
        overrides:
          $ref: '#/components/schemas/FlattenedConfigOverrides'
          description: The conversation overrides submitted for the lead.
        delivery:
          anyOf:
            - $ref: '#/components/schemas/LeadDeliveryView'
            - type: 'null'
          description: The lead's latest message delivery; set on message campaigns.
      type: object
      required:
        - lead_id
        - recipient_id
        - phone_number
        - phone_numbers_index
        - user_id
        - attempt_count
        - failure_count
        - callback_count
        - redirect_count
        - do_not_call
        - terminal_disposition
        - created_at_unix
        - updated_at_unix
        - dynamic_variables
        - overrides
      title: LeadDetailResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TerminalDisposition:
      type: string
      enum:
        - campaign_ended
        - removed
        - do_not_call
        - completed
        - cancelled
        - suppressed
        - attempt_ceiling_reached
        - callback_ceiling_reached
        - redirect_ceiling_reached
        - permission_not_granted
        - permission_declined
        - permission_request_blocked
        - permission_expired
        - callback_time_invalid
        - redirect_number_invalid
        - couldnt_process
      title: TerminalDisposition
    FlattenedConfigOverrides:
      properties:
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        first_message:
          anyOf:
            - type: string
            - type: 'null'
          title: First Message
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        voice_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Id
      type: object
      title: FlattenedConfigOverrides
    LeadDeliveryView:
      properties:
        status:
          $ref: '#/components/schemas/BatchCallRecipientStatus'
        stage:
          type: string
          enum:
            - queued
            - sent
            - delivered
            - read
            - replied
            - failed
          title: Stage
          description: The furthest the message got, or `failed` if sending it failed.
        sent_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sent At Unix
        delivered_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Delivered At Unix
        read_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Read At Unix
        replied_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replied At Unix
        failed_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed At Unix
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
          description: Why the message failed to reach the contact.
      type: object
      required:
        - status
        - stage
        - sent_at_unix
        - delivered_at_unix
        - read_at_unix
        - replied_at_unix
        - failed_at_unix
        - error_message
      title: LeadDeliveryView
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    BatchCallRecipientStatus:
      type: string
      enum:
        - pending
        - dispatched
        - initiated
        - in_progress
        - completed
        - failed
        - cancelled
        - voicemail
      title: BatchCallRecipientStatus

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.