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.
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 →Request an access token
Send your client ID and secret to the token endpoint. The scope
mailer-apiis optional: without it, the token gets every scope your credentials have. Reuse the token across calls until it expires. How authentication worksMake your first call
Call
echoMessage. It returns the message you send, so a response means your credentials work.
APIs
Manage contacts and mailing lists, send newsletters and transactional mail, and read delivery reports and tracking events.
Documentation →Bring events and contacts from external systems, search and delete that data, export segments, manage channels and read automation reports.
Documentation →Manage products, variations, categories, prices and stock, and read and update orders and customer accounts.
Documentation →Read and edit the users, categories, news, events, products and contacts of a LianaCMS site, read form submissions, and import data in batches.
Documentation →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.