Skip to content
Sign in Create account

Unsubscribe from a campaign

POST /api/v1/campaigns/unsubscribe

Processes an unsubscribe token. POST accepts the RFC 8058 one-click form token; GET returns an HTML confirmation page.

This operation needs no authentication.

Parameters

  • token string query

Request body

application/json object

  • token string

Generated sample

{
  "token": "string"
}

Responses

200 Unsubscribe confirmation or result.

text/html string

404 Unsubscribe token is invalid.

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.

422 Token is missing.

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