Skip to content

Create a subscription form campaign

POST
/short_link_campaigns/subscribe

Creates a short link campaign that provides URL to a subscription form where users can subscribe to campaigns. The user phone number will be added to a user-defined group that you specify during campaign creation.

#!/usr/bin/env bash
curl -X POST https://api.lox24.eu/short_link_campaigns/subscription \
-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.