Localytics Campaigns And Audience API (1.1.0)

Download OpenAPI specification:

Localytics is an enterprise-grade mobile intelligence platform for real-time analytics, personalized marketing, and customer lifecycle optimization.

  • Campaign Functionality - The platform supports comprehensive campaign creation and management through this API, enabling flexible configuration of goal, scheduling, and target audience.

    • Enables full campaign scheduling with A/B testing via multiple creatives, control-group weights, and advanced scheduling and delivery controls.

    • Upload creative assets (HTML/Javascript/CSS assets) via API for the supporting channels (In-App, Inbox)

    • Associate creatives with campaigns using standard formatting options from dashboard.

    • Supported channels: Push Messaging

Push Campaigns

Requests relating to push-channel campaigns

Create a new push campaign with the given parameters. Note that campaigns with `active` status will be sent to end users upon the configured schedule with no further confirmation.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

The organization id found in your Dashboard containing your app.

app_id
required
string

The App Key which will receive this message, which can be found under the settings page of your Dashboard.

Request Body schema: application/json
required

Provide the campaign details name, status, conversion attributes, goal, creative_attributes, audiences target_rules, schedule details etc

name
required
string

Give any campaign name.

status
required
string
Enum: "active" "draft"
goal
required
string
Enum: "activate" "drive_behavior" "nurture" "monetize" "reengage" "notify"
object

Optional object for campaign performance tracking based upon whether receiving users later trigger this event. If undefined, then this campaign will disable conversion tracking.

required
object or object or object
required
object or object or object or object (Schedule)
required
object (CreativesAttributes)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "status": "active",
  • "goal": "activate",
  • "conversion_event": {
    },
  • "audiences": {
    },
  • "schedule": {
    },
  • "creatives": {}
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "goal": "activate",
  • "conversion_event": {
    },
  • "audiences": {
    },
  • "schedule": {
    },
  • "creatives": {
    }
}

Get the push campaign's audience, creatives, schedule details.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

organization id

app_id
required
string
campaign_id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "goal": "activate",
  • "conversion_event": {
    },
  • "audiences": {
    },
  • "schedule": {
    },
  • "creatives": {
    }
}

Archive the push campaign.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

organization id

app_id
required
string
campaign_id
required
integer

Responses

Audiences

Requests relating to audiences

Create a new audience with the given definition.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

The organization id found in your Dashboard containing your app.

app_id
required
string

The App Key which will receive this message, which can be found under the settings page of your Dashboard.

Request Body schema: application/json
required

Provide the definition rules with behavior and profile conditions.

name
required
string
required
object or object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "target_rules": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "created_at": "string",
  • "target_rules": {
    },
  • "segmentation_count": {
    }
}

Retrieve all audiences for a given app_id

Returns the transformed audience list including profile rules, behavior rules, and segmentation counts.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

The organization id found in your Dashboard containing your app.

app_id
required
string

The App Key which will receive this message, which can be found under the settings page of your Dashboard.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Calculate size for a single audience id.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

The organization id found in your Dashboard containing your app.

app_id
required
string

The App Key which will receive this message, which can be found under the settings page of your Dashboard.

audience_id
required
integer

Responses

Response samples

Content type
application/json
{
  • "segmentation_id": 0,
  • "user_count": 0,
  • "has_push": 0,
  • "seen_last_thirty": 0,
  • "last_calculated_on": "2025-11-26T10:34:18Z"
}

Retrieve a specific audience

Returns segmentation metrics and the audience's targeting rules for the given audience ID. Includes counts such as total users, users with push tokens, and users seen in the last 30 days.

Authorizations:
BasicAuth
path Parameters
org_id
required
integer

The organization id found in your Dashboard containing your app.

app_id
required
string

The App Key which will receive this message, which can be found under the settings page of your Dashboard.

id
required
integer

Audience id

Responses

Response samples

Content type
application/json
{
  • "segmentation_id": "string",
  • "user_count": 0,
  • "has_push": 0,
  • "seen_last_thirty": 0,
  • "updated_at": "2019-08-24T14:15:22Z",
  • "target_rules": {
    }
}