Skip to content

Create a unsubscription form campaign

POST
/short_link_campaigns/unsubscribe

Creates a short link campaign that redirects users to a special unsubscription form where they can unsubscribe from SMS notifications and optionally provide a reason. You can optionally specify a phone group where the data will be collected. Even without specifying a group, the phone number will be added to the blocked numbers list with type 2 (unsubscribed).

#!/usr/bin/env bash
curl -X POST https://api.lox24.eu/short_link_campaigns/unsubscription \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"name": "test #2",
"group_id": 12345
}'

The new short_link_campaigns resource

Short link campaigns

object
name
required

Name of the short link campaign

string
<= 100 characters
group_id
required

Group ID of the short link campaign

integer | null

Short_link_campaigns resource created

Short link campaigns

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
string
type

Type of the short link campaign

integer
Allowed values: 1 2
id

Unique identifier of the short link campaign

string | null
name

Name of the short link campaign

string
<= 100 characters
url

URL of the short link campaign

string
created_at

Timestamp when the entity was added to the system by the user

integer
group_id

Group ID of the short link campaign

integer | null

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

The request was well-formed but was unable to be followed due to semantic errors

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.