> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.levrage.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.levrage.ai/_mcp/server.

# Get campaign

GET https://api.levrage.ai/v1/campaigns/{campaign_id}

Get details of a specific campaign.

Reference: https://docs.levrage.ai/api-reference/campaigns/get-campaign

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `campaign_id` (string, required)

## Response

### 200

Successful Response

- `data` (CampaignData, required) — Campaign data inside response envelope.
- `request_id` (string, required)
- `timestamp` (datetime, required)
- `success` (boolean, optional, default: true)
- `from_file` (CampaignResponseFromFile, optional, nullable) — With contacts_upload_id: the file, the rows called (first_row–last_row), rows left out for having no phone number, and rows with a number left for another campaign (over 10,000)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CampaignData

Campaign data inside response envelope.

- `id` (string, required) — Campaign ID
- `name` (string, required) — Campaign name
- `status` (string, required) — pending, in_progress, completed, stopped, paused
- `description` (string, optional, nullable) — Campaign description
- `total_contacts` (integer, optional, default: 0) — Total calls in campaign
- `valid_contacts` (integer, optional, default: 0) — Valid contacts processed
- `skipped_contacts` (integer, optional, default: 0) — Skipped contacts
- `completed` (integer, optional, default: 0) — Completed calls
- `failed` (integer, optional, default: 0) — Failed calls
- `no_answer` (integer, optional, default: 0) — No answer calls
- `voicemail` (integer, optional, default: 0) — Voicemail calls
- `start_time` (datetime, optional, nullable) — Campaign start time
- `end_time` (datetime, optional, nullable) — Campaign end time
- `daily_start_time` (string, optional, nullable) — Daily calling start HH:MM
- `daily_end_time` (string, optional, nullable) — Daily calling end HH:MM
- `retry_enabled` (boolean, optional, default: false) — Whether retries are enabled
- `max_retries` (integer, optional, nullable) — Max retry attempts
- `pending_retries` (integer, optional, default: 0) — Calls pending retry
- `max_concurrent_calls` (integer, optional, default: 1) — Parallel calls
- `pickup_rate` (double, optional, nullable) — Pickup rate %
- `collection_rate` (double, optional, nullable) — Data collection rate %
- `created_at` (datetime, optional, nullable) — Creation timestamp
- `updated_at` (datetime, optional, nullable) — Last update timestamp

### CampaignResponseFromFile

With contacts_upload_id: the file, the rows called (first_row–last_row), rows left out for having no phone number, and rows with a number left for another campaign (over 10,000)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

- string
- integer

## Examples

**Response**

```json
{
  "data": {
    "id": "c9f0c9e2-4d3a-4b7a-9f1e-2a3b4c5d6e7f",
    "name": "January Sales Outreach",
    "status": "in_progress",
    "description": null,
    "total_contacts": 500,
    "valid_contacts": 485,
    "skipped_contacts": 15,
    "completed": 350,
    "failed": 15,
    "no_answer": 80,
    "voicemail": 25,
    "start_time": "2026-01-10T09:00:00+05:30",
    "end_time": null,
    "daily_start_time": "09:00",
    "daily_end_time": "21:00",
    "retry_enabled": true,
    "max_retries": 3,
    "pending_retries": 25,
    "max_concurrent_calls": 5,
    "pickup_rate": 73.5,
    "collection_rate": 65.3,
    "created_at": "2026-01-10T08:00:00+05:30",
    "updated_at": "2026-01-15T15:45:00+05:30"
  },
  "request_id": "req_a1b2c3d4e5f6",
  "timestamp": "2026-01-15T15:45:00+05:30",
  "success": true
}
```

**SDK Code**

```python
import requests

url = "https://api.levrage.ai/v1/campaigns/campaign_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.levrage.ai/v1/campaigns/campaign_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.levrage.ai/v1/campaigns/campaign_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.levrage.ai/v1/campaigns/campaign_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.levrage.ai/v1/campaigns/campaign_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.levrage.ai/v1/campaigns/campaign_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.levrage.ai/v1/campaigns/campaign_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.levrage.ai/v1/campaigns/campaign_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```