Skip to main content
POST
/
campaigns
캠페인 생성
curl --request POST \
  --url https://client-api.tryvox.co/v2/campaigns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "550e8400-e29b-41d4-a716-446655440000",
  "agent_version": "production",
  "call_from": "01012345678",
  "call_time_window": {
    "auto_resume": true,
    "timezone": "Asia/Seoul",
    "windows": [
      {
        "days": [
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday"
        ],
        "end_min": 720,
        "start_min": 540
      },
      {
        "days": [
          "Monday",
          "Tuesday",
          "Wednesday"
        ],
        "end_min": 1200,
        "start_min": 780
      }
    ]
  },
  "concurrency": 10,
  "name": "고객 설문 캠페인",
  "presentation_number": "01099998888",
  "tasks": [
    {
      "call_to": "01023456789",
      "dynamic_variables": {
        "name": "홍길동"
      },
      "metadata": {
        "customer_id": "123"
      }
    },
    {
      "call_to": "01034567890",
      "dynamic_variables": {
        "name": "이몽룡"
      },
      "metadata": {
        "customer_id": "456"
      }
    }
  ]
}
'
{
  "active_concurrency": 0,
  "agent_id": "550e8400-e29b-41d4-a716-446655440000",
  "completed_calls": 0,
  "concurrency": 5,
  "created_at": "2024-01-15T10:00:00Z",
  "failed_calls": 0,
  "from_number": "01012345678",
  "id": "123",
  "name": "고객 설문 캠페인",
  "organization_id": "550e8400-e29b-41d4-a716-446655440001",
  "presentation_number": "01099998888",
  "status": "pending",
  "total_calls": 2
}

Documentation Index

Fetch the complete documentation index at: https://docs.tryvox.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API 키를 Authorization: Bearer <API_KEY> 헤더로 전달하세요. 대시보드 설정에서 발급받을 수 있습니다.

Body

application/json

새 캠페인 생성 요청 모델

name
string
required

캠페인 이름

call_from
string
required

발신 번호 (예: 01012345678)

agent_id
string
required

에이전트 ID

tasks
CampaignCallTask · object[]
required

실행할 발신 작업 목록

presentation_number
string | null

캠페인 기본 표시 발신번호

agent_version
string | null
default:production

사용할 에이전트 버전

scheduled_at
string | null

예약 실행 시간 (ISO 타임스탬프)

concurrency
integer
default:5

최대 동시 발신 수

Required range: 1 <= x <= 100
call_time_window
CallTimeWindowConfig · object

통화 허용 시간대 설정 (미입력시 기본값: 08:00~20:00, 매일)

Response

Successful Response

캠페인 생성 응답 모델 - 전체 캠페인 데이터 반환

id
string
required
name
string
required
status
enum<string>
required
Available options:
draft,
pending,
ongoing,
paused,
success,
fail,
canceled
agent_id
string
required
from_number
string
required
total_calls
integer
required
created_at
string
required
organization_id
string
required
agent_version
integer | null
presentation_number
string | null
completed_calls
integer
default:0
failed_calls
integer
default:0
scheduled_at
string | null
finished_at
string | null
paused_at
string | null
concurrency
integer
default:5

최대 동시 발신 수

active_concurrency
integer
default:0

현재 진행 중인 동시 발신 수

call_time_window
Call Time Window · object

통화 허용 시간대 설정

paused_by
enum<string> | null

일시정지 원인 (user: 수동, system: 시간대)

Available options:
user,
system