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

# List Logs by Campaign

> Retrieve every call log produced by a specific campaign, with outcome, duration, sentiment, and analysis fields.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
</Warning>

Returns every call log produced by a specific campaign, paginated. Each entry represents one call attempt against a campaign lead and includes the call `id`, the call `status`, the `duration_sec`, the `sentiment` classification, and any structured post-call `analysis` fields defined on the agent. Use this endpoint as the canonical source when reporting on a single campaign's outcomes, it is filtered server-side and avoids the per-call-log filtering you would otherwise pay for with [List Call Logs](/docs/api-reference/call-logs/list).

## When to use this

* **Campaign reporting**: calculate conversion rate, qualification rate, or any other analysis-derived metric across the campaign.
* **Follow-up identification**: filter calls where the analysis indicates a human follow-up is needed.
* **Data export**: paginate through every log to produce a spreadsheet or warehouse table for offline analysis.
* **Comparative analysis**: pull logs from two campaigns to compare agent variants or prompt variants.

For the full transcript and recording URL of any individual call, pass the call `id` to [Get Call Details](/docs/api-reference/call-logs/get-details). For lightweight call browsing without analysis fields, use [List Calls](/docs/api-reference/v1/calls/list) instead.

## Path parameters

| Parameter    | Description                                      |
| ------------ | ------------------------------------------------ |
| `campaignId` | The campaign ID, for example `cmp_5tw8vz2rnx1q`. |

## Query parameters

| Parameter | Description                                                         |
| --------- | ------------------------------------------------------------------- |
| `page`    | Page number, starting from 1.                                       |
| `limit`   | Results per page (max 100, default 20).                             |
| `status`  | Filter by call status (`completed`, `failed`, `no-answer`, `busy`). |

## Errors

* `404 Not Found` is returned when the campaign does not exist.

## Related endpoints

* [Get Call Details](/docs/api-reference/call-logs/get-details): full transcript and analysis for a single call.
* [Get Call Log](/docs/api-reference/call-logs/get): lightweight per-call log record.
* [Get Campaign](/docs/api-reference/campaigns/get): campaign configuration and live progress counters.
* [Post-call analysis](/docs/monitoring/post-call-analysis-results): how to design analysis fields for reporting.


## OpenAPI

````yaml GET /call-logs/campaign/{campaignId}
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /call-logs/campaign/{campaignId}:
    get:
      tags:
        - Call Logs
      summary: Get call logs by campaign ID
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: CallLogsController_findByCampaignId
      parameters:
        - name: campaignId
          required: true
          in: path
          schema:
            type: string
        - name: x-organization-id
          in: header
          description: RSA encrypted organization ID (base64 format)
          required: true
          schema:
            type: string
            example: BASE64_ENCRYPTED_ORG_ID_HERE
      responses:
        '200':
          description: Return call logs for the specified campaign
        '404':
          description: Campaign not found
      deprecated: true
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````