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

# List campaigns

> Retrieve all outbound calling campaigns for your account.

Returns a list of all campaigns belonging to the authenticated user.

## Endpoint

`GET /user/campaigns`

## Response

<ResponseField name="campaigns" type="array">
  Array of campaign objects.

  <Expandable title="Campaign properties">
    <ResponseField name="id" type="integer">Unique identifier of the campaign.</ResponseField>
    <ResponseField name="name" type="string">Name of the campaign.</ResponseField>
    <ResponseField name="status" type="string">Current status of the campaign (e.g., `draft`, `in-progress`, `stopped`, `completed`).</ResponseField>
    <ResponseField name="max_calls_in_parallel" type="integer">Maximum number of simultaneous calls.</ResponseField>
    <ResponseField name="mark_complete_when_no_leads" type="boolean">Whether the campaign is automatically marked complete when no leads remain.</ResponseField>
    <ResponseField name="allowed_hours_start_time" type="string">Start time of the allowed calling window.</ResponseField>
    <ResponseField name="allowed_hours_end_time" type="string">End time of the allowed calling window.</ResponseField>
    <ResponseField name="allowed_days" type="array">Days of the week when calls are allowed.</ResponseField>
    <ResponseField name="max_retries" type="integer">Maximum retry attempts for failed calls.</ResponseField>
    <ResponseField name="retry_interval" type="integer">Interval in minutes between retry attempts.</ResponseField>
    <ResponseField name="created_at" type="string">ISO 8601 timestamp when the campaign was created.</ResponseField>
    <ResponseField name="updated_at" type="string">ISO 8601 timestamp when the campaign was last updated.</ResponseField>
  </Expandable>
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://portal.intellixent.ai/api/user/campaigns" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://portal.intellixent.ai/api/user/campaigns', {
    headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
  });

  const data = await response.json();
  console.log(data); // Array of campaigns
  ```
</CodeGroup>

```json 200 Response theme={null}
[
  {
    "id": 1,
    "name": "Product Demo Campaign",
    "status": "draft",
    "max_calls_in_parallel": 3,
    "mark_complete_when_no_leads": true,
    "allowed_hours_start_time": "09:00:00",
    "allowed_hours_end_time": "17:00:00",
    "allowed_days": [
      "monday",
      "tuesday",
      "wednesday",
      "thursday",
      "friday"
    ],
    "max_retries": 3,
    "retry_interval": 60,
    "created_at": "2025-05-29T07:18:34.000000Z",
    "updated_at": "2025-05-29T07:18:34.000000Z"
  }
]
```
