Retrieve Campaign

GET

api.ziett.co/c/v1 /campaigns/{campaign_id}

Fetch comprehensive configuration specifics, execution status timestamps, and metadata configuration records for a single batch campaign pipeline instance. This is the foundational diagnostic endpoint used to safely poll asynchronous ingestion status states or fetch auditing data summaries right after completing massive distributions.

To review a chronological history index containing all of your workspace's campaigns simultaneously, navigate to List Campaigns.


Request

Required scope: apikey:campaign:read

Path Parameters

ParameterTypeDescription
campaign_iduuidThe unique tracker token reference assigned to the batch campaign pipeline resource.

Examples

import httpx

campaign_id = "019b4b56-e704-7c30-83a0-527df63c3e00"

response = httpx.get(
    f"https://api.ziett.co/c/v1/campaigns/{campaign_id}",
    headers={
        "X-API-KEY": "zk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    }
)

print(response.json())

Responses

200 OK — Campaign Details Retrieved

The target batch resource ledger was successfully analyzed and returned.

{
  "id": "019b4b56-e704-7c30-83a0-527df63c3e00",
  "name": "Black Friday Promo - Luanda",
  "status": "COMPLETED",
  "organization_id": "019b4b56-ab10-7210-81a1-527df63c3111",
  "billing_account_id": "019b4b56-bc20-7315-92b2-627df63c3222",
  "trigger_source": "API",
  "file_metadata_id": null,
  "channel_type": "SMS",
  "sms_remitter_id": "019b4b56-de40-7530-b4d4-827df63c3444",
  "sms_remitter": {
    "id": "019b4b56-de40-7530-b4d4-827df63c3444",
    "name": "InfoZiett"
  },
  "content": "Flash Sale! Enjoy 50% off on all items this weekend only.",
  "total_estimated_recipients": 3,
  "scheduled_at": null,
  "processed_at": "2026-06-02T14:00:02.000000+00:00",
  "completed_at": "2026-06-02T14:02:15.000000+00:00",
  "error_code": null,
  "status_note": "All recipient segments parsed, compiled, and handed over to carrier routing lines successfully.",
  "data": {
    "reason_of_pause": "string"
  },
  "created_at": "2026-06-02T14:00:00.000000+00:00",
  "updated_at": "2026-06-02T14:02:15.000000+00:00"
}

Response Fields

FieldTypeDescription
iduuidThe campaign's unique UUID v7 system resource tracking index.
namestringFriendly custom label identifying the batch distribution run.
statusenumActive workflow progress tracking status code. Values: DRAFT, SCHEDULED, PROCESSING, SENDING, COMPLETED, CANCELLED, FAILED, PAUSED.
organization_iduuidThe identity context token of the company space hosting this resource.
billing_account_iduuidThe ledger asset balance configuration identifier responsible for covering financial deductions.
trigger_sourceenumPipeline ingress context tracking vector pointing out how the job was submitted.
file_metadata_iduuid | nullRelational reference token indicating a dashboard uploaded list if the job originated from a manual CSV file ingest.
channel_typeenumThe communications medium system layer used for dispatch. Values: SMS
sms_remitter_iduuid | nullSender alphanumeric or numerical routing token configuration applied.
sms_remitterobject | nullComplex structured details containing alphanumeric sender masking tags or active configurations.
contentstringThe explicit payload blueprint template text body dispatched across all target numbers.
total_estimated_recipientsintegerCount summary metrics documenting the volume of target recipient variables ingested initially.
scheduled_atdatetime | nullISO standard datetime timestamp defining a future execution calendar date if the delivery was paused for automated submission.
processed_atdatetime | nullTimestamp documenting precisely when validation checks concluded and wallet balance calculations were finalized.
completed_atdatetime | nullTimestamp documenting when background workers finished queueing the last payload item onto carrier infrastructure networks.
error_codeenum | nullGlobal category failure code flagging operational issues that might have abruptly halted processing.
status_notestring | nullDescriptive system logging information detailing current tasks, optimization alerts, or execution warnings.
dataobjectAn embedded tracking payload that breaks down real-time metrics, accounting details, and transaction processing tallies.
created_atdatetimePrecise creation metadata pinpointing when the original request structure was stored.
updated_atdatetime |nullTracking marker documenting when internal database properties last changed state.

401 Unauthorized — Invalid API Key

The authentication security checks failed due to invalid token access keys.

{
  "code": "AUTH_INVALID_API_KEY",
  "message": "The provided API key is invalid or has been revoked.",
  "status": 401,
  "trace_id": "d4e5f644358a9e7011c123c831a1b2c3",
  "timestamp": "2026-06-02T14:00:00.000000+00:00",
  "service": "core"
}

404 Not Found — Campaign Not Found

The requested identifier reference pattern does not exist or belongs to a different organization block entirely.

{
  "code": "NOT_FOUND",
  "message": "The requested campaign resource tracking profile could not be found.",
  "status": 404,
  "trace_id": "e5f644358a9e7011c123c831a1b2c3d4",
  "timestamp": "2026-06-02T14:00:00.000000+00:00",
  "service": "core"
}

422 Unprocessable Entity — Validation Error

The validation layer dropped the execution flow because the path routing template variable syntax structure is malformed.

{
  "code": "VALIDATION_ERROR",
  "message": "One or more fields failed validation.",
  "status": 422,
  "trace_id": "f812a3bc91e044358a9e7011c456d901",
  "timestamp": "2026-06-02T14:00:00.000000+00:00",
  "service": "core",
  "fields": {
    "campaign_id": "Value must conform to a valid UUID v7 format rule pattern structure."
  }
}