Build with Liana

Integrate email marketing, marketing automation and e-commerce into your own systems. One standard OAuth 2.0 flow works for every Liana API.

Quickstart

From credentials to your first API call in three steps.

  1. Create credentials

    In LianaAccount, open your LianaMailer application and create a client ID and secret. The secret is shown only once. Only organization admins can create credentials, so ask your admin if you're not one.

    Open LianaAccount →
  2. Request an access token

    Send your client ID and secret to the token endpoint. The scope mailer-api is optional: without it, the token gets every scope your credentials have. Reuse the token across calls until it expires. How authentication works

  3. Make your first call

    Call echoMessage. It returns the message you send, so a response means your credentials work.

# 1 · Request an access token (jq reads it or prints the error) TOKEN=$(curl -s -X POST https://tokens.lianacloud.com/token \ -d grant_type=client_credentials \ -d client_id=$CLIENT_ID \ -d client_secret=$CLIENT_SECRET \ -d scope=mailer-api | jq -r '.access_token // error(.)') # 2 · Make your first call curl -X POST $API_URL/echoMessage \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"msg":"hello"}' # Returns the message you send

APIs

LianaMailer

Manage contacts and mailing lists, send newsletters and transactional mail, and read delivery reports and tracking events.

Documentation →
LianaAutomation

Bring events and contacts from external systems, search and delete that data, export segments, manage channels and read automation reports.

Documentation →
LianaCommerce

Manage products, variations, categories, prices and stock, and read and update orders and customer accounts.

Documentation →
LianaCMS

Read and edit the users, categories, news, events, products and contacts of a LianaCMS site, read form submissions, and import data in batches.

Documentation →
Coming soon
LianaComms

Use your media monitoring and PR data in your own reports, dashboards and systems. Requires the API add-on.

What's coming →

Explore by use case

Common integrations and the docs to build them.

Platform at a glance

How every Liana API works, in one place.

Authentication
OAuth 2.0 client credentials. Works with any standard OAuth 2.0 library. Authentication guide
Tokens
JWT signed with RS256 by tokens.lianacloud.com (15-minute lifetime). Reusing tokens
Credentials
Per application, managed in LianaAccount. Rotate, set an expiry date, delete, and see when each was last used.
Permissions
Each set of credentials works with one product. A token for one product is rejected by the others.
Limits
Rate limits and restrictions are documented per product. LianaMailer restrictions
Format and updates
JSON over HTTPS, with OpenAPI specs for every API. Product updates are in the release notes.
Security and complianceISO/IEC 27001:2022 certified.