Send project campaign test
Required scopes (all): campaigns:manage · campaigns:read
Requires campaigns:manage and campaigns:read because the test can use stored recipient samples. Sends one copy of a draft campaign’s content to a seed recipient, through the same rendering, sending, and BanSafe checks as a launched campaign. The seed recipient must be a number connected to your team. A test is not a campaign recipient and is not counted in the campaign’s statistics or webhooks. A team can send 20 tests an hour, and at most 5 an hour to one seed recipient.
Authorizations
Polymorfa organization key (pmfa_ prefix), project token (pmfa_pt_ prefix) where supported, or short-lived client token (pmfa_ct_ prefix). Organization and project keys may be personal or service-account owned and enforce selected action scopes. Organization keys cover the team and its projects; project tokens stay inside one project. Client tokens stay inside their live project and session and enforce their client rules.
Headers
Unique key, 1 to 255 bytes of UTF-8, that makes this write safe to retry for 24 hours. A retry with the same key, credential, Polymorfa-Version, and request never runs the write again: it returns 409 idempotency_completed when the original succeeded, or the original server error, with Idempotent-Replayed: true. Reusing the key for a different request returns 409 idempotency_conflict; a retry while the original is still running returns 409 idempotency_in_progress, and a retry after an unrecorded outcome returns 409 idempotency_outcome_unknown.
Value constraints
1 - 255Path Parameters
Specifies project slug for this path parameter.
Identifier for this resource.
Body
The number to send the test from. It must be connected, on a plan that includes Campaigns, and, when the campaign selects numbers, one of them.
Value constraints
The seed recipient in international format. It must be the phone of a number connected to your team.
Value constraints
1 - 32"+5511999990000"
A recipient of this campaign whose variables fill the content. Without it and without variables, the campaign's first recipient, or its audience's first member, is the sample.
Value constraints
Variable values for the test, at most 50. They override the sample recipient's values; without sampleRecipientId, only these values are used.
Value constraints