Skip to content
Changelog

API: write with your own model, new endpoints and events

Write with your own model

  • GET /v1/brands/{brandId}/writing-brief, POST …/content/check and POST …/content/save-draft.
  • Save drafts for email campaigns, email templates, automation emails and ad campaigns: …/campaigns/save-draft, …/email-templates/save-draft, …/automations/{id}/save-email, …/ads/campaigns/save-draft.

Saving never publishes, sends or spends. Approval stays with a person in Liro.

New endpoints

  • Alerts, watchers and watched targets: …/alerts, …/watchers, …/watch-targets.
  • Lessons: …/lessons.
  • Website: …/site/pages, …/site/sections, …/site/edits, …/site-content, …/page-checks.
  • Website fixes: …/site-fixes, with applied and skipped reports.

New webhook events

  • Email review: email_campaign.submitted, email_campaign.approved, email_campaign.changes_requested, email_campaign.failed.
  • Results: publication.results_available, change.readout_ready.
  • Memory: lesson.proposed, lesson.accepted, lesson.dismissed.
  • Alerts: alert.opened.
  • Website fixes: site_fix.approved, site_fix.applied, site_fix.confirmed.
  • Autopilot and automations: routine_run.finished, automation.activated, automation.paused.

Unexpected errors in the API and the connector now answer INTERNAL_ERROR in plain words, with the request id as a reference. The full reference is at api.getliro.com/docs.