Submit a campaign enquiry
POST /api/v1/campaigns/intent
Stores an idempotent campaign enquiry for the supplied email and target slug. The operation returns the same confirmation response for suppressed addresses.
This operation needs no authentication.
Request body
application/json object
browserstringLength: at most 64 characterscampaign_target_slugstring requiredLength: at most 100 characters. Pattern:^[a-z0-9][a-z0-9-]*$emailstring (email) requiredLength: at most 254 charactersosstringLength: at most 64 charactersutm_campaignstringLength: at most 128 charactersutm_contentstringLength: at most 128 charactersutm_mediumstringLength: at most 64 charactersutm_sourcestringLength: at most 64 characters
Generated sample
{
"browser": "string",
"campaign_target_slug": "string",
"email": "user@example.com",
"os": "string",
"utm_campaign": "string",
"utm_content": "string",
"utm_medium": "string",
"utm_source": "string"
}Responses
200 Enquiry stored or suppressed address accepted without disclosure.
application/json object
messagestring requiredokboolean required
Generated sample
{
"message": "string",
"ok": true
}404 Campaign target does not exist.
application/json object
errorobject requiredcodestring requiredfieldsobjectOther keys: array of string
messagestring
422 Email or target slug failed validation.
application/json object
errorobject requiredcodestring requiredfieldsobjectOther keys: array of string
messagestring
429 Request rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
500 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.