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

# Списък на кампании

> Списък на всички кампании

Този endpoint ви позволява да получите списък на всички кампании.

### Полета в отговора

<ResponseField name="campaigns" type="array">
  <Expandable title="свойства">
    <ResponseField name="id" type="integer">
      Идентификаторът на кампанията
    </ResponseField>

    <ResponseField name="name" type="string">
      Името на кампанията
    </ResponseField>

    <ResponseField name="status" type="string">
      Статусът на кампанията
    </ResponseField>

    <ResponseField name="max_calls_in_parallel" type="integer">
      Максимален брой обаждания, които могат да се извършват паралелно
    </ResponseField>

    <ResponseField name="mark_complete_when_no_leads" type="boolean">
      Дали да се маркира кампанията като завършена, когато няма leads
    </ResponseField>

    <ResponseField name="allowed_hours_start_time" type="string">
      Началното време за разрешените часове за обаждания
    </ResponseField>

    <ResponseField name="allowed_hours_end_time" type="string">
      Крайното време за разрешените часове за обаждания
    </ResponseField>

    <ResponseField name="allowed_days" type="array">
      Дните от седмицата, в които са разрешени обаждания
    </ResponseField>

    <ResponseField name="max_retries" type="integer">
      Максимален брой опити за повторно обаждане при неуспешни повиквания
    </ResponseField>

    <ResponseField name="retry_interval" type="integer">
      Интервал в секунди между опитите за повторно обаждане
    </ResponseField>

    <ResponseField name="created_at" type="string">
      Времевата отметка, когато кампанията е създадена
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      Времевата отметка, когато кампанията е била последно актуализирана
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 Response theme={null}
  [
    {
      "id": 1,
      "name": "Test campaing",
      "status": "draft",
      "max_calls_in_parallel": 3,
      "mark_complete_when_no_leads": true,
      "allowed_hours_start_time": "00:00:00",
      "allowed_hours_end_time": "23:59:00",
      "allowed_days": [
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday",
        "sunday"
      ],
      "max_retries": 3,
      "retry_interval": 60,
      "created_at": "2025-05-29T07:18:34.000000Z",
      "updated_at": "2025-05-29T07:18:34.000000Z"
    }
  ]
  ```
</ResponseExample>
