assets

Optimize Outbound Messages In A Batch

Queue many outbound drafts for the optimizer in one request and get a batch_id back at once. Use when a campaign has more drafts than the per-workspace limits on single optimizes allow, or nobody is waiting on each result. Items run later on spare capacity, behind interactive calls, and are never refused as busy. Poll the batch for counts, an estimated finish time and each result. Only items that succeed count as usage.

post/api/platform/v1/messages/optimize/batch

Request

  • Base URL: https://docs.amdahl.ai
  • URL: https://docs.amdahl.ai/api/platform/v1/messages/optimize/batch
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Request body

webhook_urlstring

Optional. An https URL that gets one signed POST when the batch completes, carrying the batch id and its counts, never a draft or a rewrite.

idempotency_keystring

Optional. Send the same key to retry a submit safely: the same key and body return the first batch and queue nothing new.

Response

Accepted

dataunknown

Changes

No recorded changes to this operation across all 1 revision of this API.