Leanplum User Behavior API

The User Behavior API from Leanplum — 9 operation(s) for user behavior.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Product Telemetry Instrumentation BC-4280.10

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api?action=advance Advance a user to the next state · advance #
Ask an LLM
“How do I move a user to the next state in the app?”
“Can I set info on a state advance?”
Tell an agent
Advance user {userId} to state {state}.
Move user {userId} to state {state} with info {info}.
POST /api?action=pauseState Pause a user's current state · pauseState #
Ask an LLM
“How do I pause a user's current state without ending the session?”
“Can I pause a state for a device I don't have a user ID for?”
Tell an agent
Pause the current state for user {userId}.
Pause state for device {deviceId}.
POST /api?action=resumeState Resume a user's paused state · resumeState #
Ask an LLM
“How do I resume a user's state after pausing it?”
“Can I resume a paused state for a device?”
Tell an agent
Resume the paused state for user {userId}.
Resume state for device {deviceId}.
POST /api?action=pauseSession Pause a user's session and state · pauseSession #
Ask an LLM
“How do I pause a user's session so it doesn't time out automatically?”
“Can I pause a session for a device without a user ID?”
Tell an agent
Pause the session and state for user {userId}.
Pause the session for device {deviceId}.
POST /api?action=resumeSession Resume a user's paused session · resumeSession #
Ask an LLM
“How do I resume a session that was paused?”
“Can I resume a session for a device that started in the background?”
Tell an agent
Resume the paused session for user {userId}.
Resume the session for device {deviceId}.
POST /api?action=heartbeat Send a heartbeat to keep a session alive · heartbeat #
Ask an LLM
“How do I keep a session from timing out after inactivity?”
“Can I send a heartbeat for a device without a user ID?”
Tell an agent
Send a heartbeat for user {userId}.
Keep the session alive for device {deviceId}.
POST /api?action=start Start a new session for a user · start #
Ask an LLM
“How do I start a new session for a user when the app launches?”
“Can I include device details and user attributes when starting a session?”
Tell an agent
Start a new session for user {userId}.
Start a session for user {userId} on device {deviceId} with attributes {userAttributes}.
POST /api?action=stop End a user's session · stop #
Ask an LLM
“How do I end a user's session?”
“Can I end a session for a device I don't have a user ID for?”
Tell an agent destructive · confirm first
End the session for user {userId}.
End the session for device {deviceId}.
POST /api?action=track Track an event for a user · track #
Ask an LLM
“How do I record a purchase or other event for a user?”
“Can I track an event with a value and currency code?”
Tell an agent
Track event {event} for user {userId}.
Record event {event} for user {userId} with value {value} in {currencyCode}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/leanplum:leanplum-user-behavior-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

leanplum-user-behavior-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1.0'
  title: User Behavior API
  description: An API to perform actions from a server or remote device.
servers:
- url: https://api.leanplum.com
- url: http://api.leanplum.com
security:
- appIdQuery: []
- clientKeyQuery: []
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/leanplum/openapi/leanplum-user-behavior-api-openapi.yml