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

# List Job Campaigns

GET https://gradii.ai/api/v2/job-campaigns

Get all job campaigns for your company (no pagination - returns all campaigns)

Reference: https://docs.gradii.ai/api-reference/api-reference/job-campaigns/get-job-campaigns-job-campaigns-list-job-campaigns

## Authentication

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

## Servers

- `https://gradii.ai/api/v2` (Production, default)
- `http://localhost:3000/api/v2` (Local development)

## Request

### Query parameters

- `search` (string, optional) — Search in campaign name, job title, or description
- `department` (string, optional) — Filter by exact department
- `location` (string, optional) — Filter by location (partial match)
- `status` (string, optional) — Filter by status: draft|active|paused|closed
- `experienceLevel` (string, optional) — Filter by experience level
- `employeeType` (string, optional) — Filter by employee type
- `sortBy` (string, optional) — Sort by: campaignName|jobTitle|createdAt|updatedAt|applicationDeadline (default: createdAt)
- `sortOrder` (string, optional) — Sort order: asc|desc (default: desc)

## Response

### 200

Campaigns retrieved successfully

- `success` (boolean, optional)
- `data` (list of JobCampaignsGetResponsesContentApplicationJsonSchemaDataItems, optional)
- `timestamp` (string, optional)
- `version` (string, optional)

## Types

### JobCampaignsGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, optional)
- `campaignName` (string, optional)
- `jobTitle` (string, optional)
- `department` (string, optional)
- `location` (string, optional)
- `experienceLevel` (string, optional)
- `employeeType` (string, optional)
- `salaryMin` (integer, optional)
- `salaryMax` (integer, optional)
- `salaryNegotiable` (boolean, optional)
- `currency` (string, optional)
- `numberOfOpenings` (integer, optional)
- `status` (string, optional)
- `campaignType` (string, optional)
- `applicationDeadline` (string, optional)
- `targetHireDate` (string, optional)
- `isRemote` (boolean, optional)
- `isHybrid` (boolean, optional)
- `totalApplicants` (integer, optional)
- `activeApplicants` (integer, optional)
- `autoSchedulingEnabled` (boolean, optional)
- `createdAt` (string, optional)
- `updatedAt` (string, optional)

## Examples

**Response**

```json
{
  "success": true,
  "data": [
    {
      "id": "campaign-uuid",
      "campaignName": "Senior Developer Hiring 2024",
      "jobTitle": "Senior Full Stack Developer",
      "department": "Engineering",
      "location": "Remote",
      "experienceLevel": "Senior Level (6–10 years)",
      "employeeType": "Full-time",
      "salaryMin": 100000,
      "salaryMax": 150000,
      "salaryNegotiable": true,
      "currency": "USD",
      "numberOfOpenings": 3,
      "status": "active",
      "campaignType": "specific",
      "applicationDeadline": "2024-12-31T23:59:59.000Z",
      "targetHireDate": "2025-01-15T00:00:00.000Z",
      "isRemote": true,
      "isHybrid": false,
      "totalApplicants": 45,
      "activeApplicants": 32,
      "autoSchedulingEnabled": true,
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-15T10:30:00.000Z"
    }
  ],
  "timestamp": "2024-01-28T10:30:00.000Z",
  "version": "2.0"
}
```

**SDK Code**

```python default
import requests

url = "https://gradii.ai/api/v2/job-campaigns"

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

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

print(response.json())
```

```javascript default
const url = 'https://gradii.ai/api/v2/job-campaigns';
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 default
package main

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

func main() {

	url := "https://gradii.ai/api/v2/job-campaigns"

	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 default
require 'uri'
require 'net/http'

url = URI("https://gradii.ai/api/v2/job-campaigns")

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 default
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://gradii.ai/api/v2/job-campaigns")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp default
using RestSharp;

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

```swift default
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://gradii.ai/api/v2/job-campaigns")! 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()
```