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.
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.
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
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
Module 1Getting connected
- Reading: Keys, scopes and authentication
- Reading: Reading records and tasks
Module 2Changing data
- Reading: Writing safely: idempotency and versions
- Reading: Errors, limits and running in production
Module 3Practice and check
- Practical exercise: Practical: build a small, safe sync
- Assessment: Check your understanding
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.