create

Generates a PURL (personalised URL) on the Campaign for one ACTIVE User in the same Organisation. Requires an Organisation Admin session or token, or the Campaign private key as Authorization: Bearer raisely-sk-…; Houston, permission-limited tokens, and non-Organisation-Admin roles get 403. Requires the opaque_purls feature flag. The returned purlUrl contains a bearer credential: store and send it as a secret. Send an optional Idempotency-Key header to make retries safe: the same request with the same key returns the original PURL (200, IDEMPOTENT_REPLAY) with its original URL, expiry, and status, even when it has since expired or been revoked; a request without the header always creates a new PURL. Expiry follows the Campaign's PURL expiry policy (six months when none is configured). Each Organisation has a single-generation budget of 300 requests per minute and 50,000 per day by default (contact Support to change it); an invalid destination or field policy is rejected with 400 before spending it. When exceeded, the 429 carries a Retry-After header in seconds. Errors: 400 with subcode invalid_purl_generation_request for a malformed request, destination, or field policy, or subcode invalid_idempotency_key for an invalid Idempotency-Key header; errors[0] includes field and reason, where reason is one of required, unrecognized_key, invalid_type, invalid_format, too_small, too_big, too_many_fields, duplicate_field, field_not_eligible, unsupported_field_type, private_acknowledgement_required, value_type_mismatch, invalid_value, value_pattern_mismatch, field_pattern_unusable, or invalid_destination. 401 without authentication; 403 when the caller is not an Organisation Admin or Campaign private key; 404 when the Campaign or User is not in the caller's Organisation or PURL generation is not enabled.

For custom components:

RaiselyComponents.api.one('campaigns', '{campaign}').all('purls').post(data = {}, params = {}, headers = {}) => Promise<{result}>

See Restie Response Data for a more detailed overview of responses through the client wrapper

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The uuid, path or domain of the campaign to associate with the request

Body Params
data
object
required
Headers
string
length between 1 and 128

1-128 visible ASCII characters (no spaces). Never stored or echoed.

Responses

409

A PURL already stored under this request's derived idempotency key has a different payload; retry without the Idempotency-Key header

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json