Skip to content
Sign in Create account

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

  • browser string
    Length: at most 64 characters
  • campaign_target_slug string required
    Length: at most 100 characters. Pattern: ^[a-z0-9][a-z0-9-]*$
  • email string (email) required
    Length: at most 254 characters
  • os string
    Length: at most 64 characters
  • utm_campaign string
    Length: at most 128 characters
  • utm_content string
    Length: at most 128 characters
  • utm_medium string
    Length: at most 64 characters
  • utm_source string
    Length: 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

  • message string required
  • ok boolean required

Generated sample

{
  "message": "string",
  "ok": true
}
404 Campaign target does not exist.

application/json object

  • error object required
    • code string required
    • fields object

      Other keys: array of string

    • message string
422 Email or target slug failed validation.

application/json object

  • error object required
    • code string required
    • fields object

      Other keys: array of string

    • message string
429 Request rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

500 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.