Skip to content

Moraph Apps and the Work API

Integrating with the Work API

Connect other systems to Moraph Apps with the Work API: keys and scopes, reading and writing records and tasks, webhooks, pagination, concurrency, idempotency, errors and limits.

Advanced1 hr 51 min6 lessonsFor Implementation partnersCertificate of completion

About this course

The Work API lets other systems read and change the records and tasks in a Moraph Apps product: for example, creating a record when a form is submitted elsewhere, or keeping a reporting database up to date.

This course is for implementation partners and client technical teams. It follows the API as built in version v1. Writes through the API go through the same rules as the screens in Apps: the same validation, the same workflow moves, the same activity log and notifications.

Note

Besides the API calls, product administrators can add webhooks, so Moraph tells your system when records and tasks change instead of it having to poll (lesson 2).

What you’ll be able to do

  • Create a Work API key with the least scopes and a sensible expiry, and store it safely
  • Authenticate requests and read a product's record types, stages and allowed moves
  • List records and tasks with filters and cursor pagination, and sync changes with updated_since
  • Receive webhooks: check each delivery's signature, answer quickly, and handle retries and duplicates
  • Create and update records and tasks without duplicates or lost updates, using Idempotency-Key and version
  • Handle every error code, the rate limit and read-only products correctly
  • Rotate and revoke keys without downtime, and use request IDs when working with Moraph Support

Skills you’ll gain

  • API authentication
  • Cursor pagination
  • Optimistic concurrency
  • Idempotent writes
  • Webhook signature verification
  • Error handling and retries
  • Key rotation

Before you start

  • The Product administrator role in a Moraph Apps product (to create keys and webhook endpoints), or a colleague who has it
  • Comfortable with HTTP, JSON and a command line or HTTP client
  • Recommended first: Using Moraph Apps day to day

Syllabus

3 modules · 4 readings · 1 practical exercise · 1 assessment

  1. Module 1Getting connected

    1. Reading: Keys, scopes and authenticationReading · 10 min
    2. Reading: Reading records and tasksReading · 16 min
  2. Module 2Changing data

    1. Reading: Writing safely: idempotency and versionsReading · 15 min
    2. Reading: Errors, limits and running in productionReading · 10 min
  3. Module 3Practice and check

    1. Practical exercise: Practical: build a small, safe syncPractical exercise · 45 min
    2. Assessment: Check your understandingAssessment · 15 min

What completion gives you

Complete every lesson and pass each assessment to complete the course. You then get a completion record in My learning, and a certificate of completion you can print or share, with a code anyone can check at academy.moraph.com/verify.

Completion is not certification

Course completion records and certificates of completion show that a person completed a Moraph Academy course. They are not a Moraph certification (which needs the certification exam), a professional license or an accreditation, and they do not authorize anyone to configure, operate, resell or support Moraph products on Moraph’s or anyone else’s behalf.

Course updates

  • Version 4 · · Webhooks added (lesson 2), with two new knowledge check questions; text search, record history (lesson 2), deleting and restoring records, editing and deleting comments (lesson 3) and their error codes (lesson 4).
  • Version 3 · · Updated course content.
  • Version 2 · · Updated course content.
  • Version 1 · · First published.