Facebook
LinkedIn
YouTube
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API Documentation
Dialer SDK
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API Documentation
Dialer SDK
  1. Campaigns
  • Platform
    • Users
      • List Users
      • Create User
      • Get User Details
      • Update User
      • Partial Update User
      • Delete User
    • Groups
      • Get Group Tree
      • List Child Groups
      • Get Group Details
      • List Groups
      • Get Org Unit Hierarchy
      • Update Group
      • Partial Update Group
      • Delete Group
      • Create Group
    • Webhooks
      • Create Webhook
      • Get Webhook Details
      • List Webhooks
      • Update Webhook
      • Partial Update Webhook
      • Delete Webhook
    • Media Prompts
      • List Prompts
      • Get Prompt by ID
      • Upload Prompt
      • Delete Prompt
  • AI Voice Agents
    • List AI Voice Agents
      GET
    • Get Agent Details
      GET
    • Delete Agent
      DELETE
  • Phone Numbers
    • Assigned Numbers
      GET
    • Provisioned Numbers
      GET
    • Reserved Numbers
      DELETE
    • Phone Numbers
      POST
    • Available Numbers
      GET
  • Provisioned Routes
    • List Provisioned Routes
      GET
    • Create Provisioned Route
      POST
    • Get Provisioned Route Details
      GET
    • Delete Provisioned Route
      DELETE
    • Update Provisioned Route
      PUT
    • Partial Update Provisioned Route
      PATCH
  • SMS Broadcasts
    • List Broadcasts
      GET
    • Create Broadcast
      POST
    • Get Broadcast Details
      GET
    • Update Broadcast
      PUT
    • Partial Update Broadcast
      PATCH
    • Delete Broadcast
      DELETE
  • Conversation
    • Calls
      • Get Calls List
      • Get Call By ID
      • Email Call Data
      • Move Call to Another Group
      • Add Notes to Calls
      • Upload Call Recording
      • Add Tags to Call
    • SMS
      • Get SMS Conversations
      • Get SMS Conversation By ID
    • Opportunity Recovery
      • Get Conversations By Custom Insights
    • Agent Performance
      • Get Agent Performance Metrics
    • Attribution Engine
      • Get Marketing Attribution Data
  • Blacklist
    • List blacklisted numbers
    • Add numbers to blacklist
    • Delete numbers from blacklist
  • Call Action Templates
    • Create Call Action Template
    • Update Call Action Template
  • Campaigns
    • List Campaigns
      GET
    • Create Campaign
      POST
    • Get Campaign Details
      GET
    • Update Campaign
      PUT
    • Partial Update Campaign
      PATCH
    • Delete Campaign
      DELETE
  • Custom Insights
    • Get Custom Insights
    • Create New Custom Insight
    • Get Custom Insight By Id
    • Update Custom Insight
    • Partial Update Custom Insight
    • Delete Custom Insight
  • Custom Source
    • Get Custom Sources
    • Create Custom Source
    • Delete Custom Sources (Single or Multiple)
  • DNI
    • List DNI Settings
    • Update DNI Setting
    • Delete DNI Setting
    • Create DNI Setting
  • Geo Locations
    • List Geo Locations
    • Create Geo Location
    • Get Geo Location
    • Update Geo Location
    • Partially Update Geo Location
    • Delete Geo Location
    • List Geo Location Routes
    • Create Geo Location Route
    • Get Geo Location Route
    • Update Geo Location Route
    • Partially Update Geo Location Route
    • Delete Geo Location Route
    • Import Geo Location Routes from CSV
  • Insights
    • List Insights
    • Create Insight
    • Get Insight Details
    • Delete Insight
  • Scorecards
    • List Scorecards
    • Get Scored Calls Report
    • Create Scorecard
    • Add or Update Call Title
    • Duplicate Scorecard
    • Archive Scorecard
  • Miscellaneous
    • List Ad Sources
    • List Industries
    • List Tags
    • Create Tag
    • Update Tag
    • Delete Tag
  • Subscriptions
    • List Webhook Subscriptions
    • Create Webhook Subscription
    • Delete Webhook Subscription
  1. Campaigns

Create Campaign

POST
https://platform-api.convirza.com/v3/campaigns
Campaigns
Last modified:2026-07-24 13:10:44
Creates a new marketing campaign with tracking and spend settings.
Required Fields
campaign_name — must be unique within the organization
org_unit_id — must reference an existing, active organization unit
start_date — campaign start date/time (ISO 8601 format)
timezone — IANA timezone (e.g., "America/New_York")
owner_user_id — user ID who owns this campaign
campaign_spend — campaign budget amount
conversion_value — target conversion value
campaign_spend_frequency — "one_time" or "monthly"
Optional Fields
end_date — campaign end date/time (ISO 8601 format). Use null or "never" for campaigns with no end date
external_id — your own external/CRM identifier
status — defaults to "active" (options: active, inactive, deleted, suspended, referral)
referral_pnumber — referral phone number
Date/Time Handling
Dates are stored with timezone offset (e.g., "2026-06-01T09:00:00-04:00")
All date formats are interpreted in the specified timezone:
"2026-06-01T09:00:00" → treated as 9am in your timezone
"2026-06-01T09:00:00Z" → Z is stripped, treated as 9am in your timezone (NOT converted from UTC)
"2026-06-01T09:00:00-05:00" → offset stripped, treated as 9am in your timezone
DST (Daylight Saving Time) is handled automatically based on the date
Validation Rules
start_date cannot be before today (day-only check: same day with past time is allowed)
end_date must be >= start_date
Cannot create ACTIVE campaign with past end date/time
Auto-status behavior:
If start_date time is in the future → status automatically set to INACTIVE (campaign will auto-activate via scheduler)
If end_date time has already passed → status automatically set to INACTIVE
Both checks use datetime comparison (not just day)
Use status: "inactive" to create campaigns with past end dates (for historical tracking)
Business Rules
Future campaigns auto-activate on start_date/time via scheduled jobs
Trial accounts have campaign creation limits
Campaign creates both main record and spend tracking fields atomically
User must have access to the specified org_unit_id

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Campaign created successfully
Bodyapplication/json

🟠400
🟠401
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://platform-api.convirza.com/v3/campaigns' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "campaign_name": "Summer Sale 2026",
    "campaign_ext_id": 12345,
    "status": "active",
    "start_date": "2026-06-01T09:00:00",
    "end_date": "2026-08-31T17:00:00",
    "timezone": "America/New_York",
    "owner_user_id": 101,
    "org_unit_id": 1001,
    "campaign_spend": 5000,
    "conversion_value": 150,
    "campaign_spend_frequency": "one-time",
    "referral_pnumber": "1234567890"
}'
Response Response Example
201 - Example 1
{
    "code": 200,
    "message": "Success",
    "data": {
        "campaign_id": 1,
        "campaign_name": "Summer Sale 2026",
        "external_id": 12345,
        "status": "active",
        "start_date": "2026-06-01T09:00:00-04:00",
        "end_date": "2026-08-31T17:00:00-04:00",
        "timezone": "America/New_York",
        "owner_user_id": 101,
        "org_unit_id": 1001,
        "referral_pnumber": "1234567890",
        "campaign_spend": 5000,
        "conversion_value": 150,
        "campaign_spend_frequency": "one_time",
        "created_at": "2026-01-15T15:30:00.000Z",
        "modified_at": "2026-03-20T18:45:00.000Z"
    },
    "request_id": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2026-01-20T12:34:56.789Z"
}
Modified at 2026-07-24 13:10:44
Previous
List Campaigns
Next
Get Campaign Details
Built with