Skip to content
Sign in Create account

Create a custom privacy tier

POST /api/v1/privacy/tiers/custom

Creates a custom tier from the supplied name, optional description, and rules.

Authenticate with a portal session token.

Request body

application/json object

  • description string or null
    Length: at most 255 characters
  • name string required
    Length: at most 80 characters
  • rules object required
    Properties: at least 1 properties

    Other keys: string

Example

{
  "name": "Demo integration",
  "rules": {
    "email": "balanced"
  }
}

Responses

201 Created tier.

application/json PrivacyTierEnvelope

Generated sample

{
  "tier": {
    "created_at": "2026-01-01T00:00:00Z",
    "description": "string",
    "id": 0,
    "name": "string",
    "rules": {
      "email": "balanced",
      "phone": "max"
    },
    "updated_at": "2026-01-01T00:00:00Z",
    "user_id": 0
  }
}
401 Authentication is required.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
403 The authenticated principal lacks the required permission.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
422 The request failed validation.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
429 The request rate limit was exceeded.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string

text/html string