Launch campaign
Queue a run.
Queues the run named by run_id, else the earliest one waiting, else a
new one for now. Runs the pre-flight first and refuses with its reason.
Nothing is sent or charged yet: the worker prices and sends the run
when it comes due.
id*stringA UUID; anything else is 400 invalid_id.
uuidX-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
Idempotency-Key?stringA fresh value per request; retry with the same one. The same key and
request answers with the first response and Idempotency-Replayed: true; the same key on a different request is 409 idempotency_key_reused; while the first is still running, 409 idempotency_in_progress. A 5xx frees the key only when nothing
reached the provider; any other answer is replayed. Kept 24 hours,
per workspace.
1 <= length <= 255application/json- body
run_id?stringuuidcurl -X POST 'https://v3.ghala.io/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/launch' \ -H 'Content-Type: application/json' \ -d '{}'{ "run": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "campaign_id": "78614b6c-fe7c-41e2-8e25-c9b3a3c91904", "run_type": "single", "frequency": "daily", "timezone": "string", "scheduled_at": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "recurrence_group_id": "f3819c9e-b1af-4bb4-acc6-8230173e0108", "recurrence_index": 0, "status": "ready", "recipient_count": 0, "sent_count": 0, "failed_count": 0, "delivered_count": 0, "total_parts": 0, "retry_of_run_id": "9fc703b4-8839-4a3c-a90d-e3891befee83", "error": "string", "started_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" }, "validation": { "valid": true, "issues": [ { "code": "no_sender_id", "message": "string" } ], "recipients": 0, "parts": 0, "rate_minor_per_part": 0, "free": true, "estimated_cost_minor": 0, "available_minor": 0 }}