Localytics Campaigns API (1.0.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