Zapier integration API
The endpoints behind the edaxu app on Zapier. Use them to understand what each Zap action and trigger does, or to call the same operations from your own system.
Last updated November 1, 2026Base URL
- Production:
https://api.edaxu.com - Testing portals:
https://api.edaxutest.com
All requests and responses use JSON over HTTPS. Timestamps in request bodies and enrollment responses are Unix seconds.
Authentication
Each Zap connects with a portal API key. An administrator creates the key in edaxu under Integrations › Zapier › New connection, chooses the permissions that Zap needs, and copies the key. The key is shown only once and can be revoked from the same page.
Send two headers with every request:
X-API-KEY: <your API key>
X-PORTAL-SUBDOMAIN: <your portal subdomain, for example "academy">In Zapier, the connection asks for api_url, api_key, and portal_subdomain, and tests them with GET /integrations/zapier/me. A key only works for the portal it was created in.
Permissions
Every key carries an explicit list of permissions. Requests outside that list return 403.
| Permission | Allows |
|---|---|
course:list | List published courses and Shopify course mappings |
course:read | View course details |
certificate:read_any | Receive certificate events |
enrollment:list | Receive enrollment and portal events |
enrollment:read | View enrollment details |
enrollment:create | Create enrollments and Shopify mappings |
enrollment:update | Update enrollments |
enrollment:delete | Remove enrollments |
portal:invite_user | Create and invite learners |
user:read_any | Find learners by email or your learner ID |
user:update_any | Update learner details, including your learner ID |
Using your own IDs
Courses and portal members can carry a customer_ref: your own identifier for the record, such as a course code (safety101) or the learner's ID in your CRM. Each ref is unique within a portal and up to 255 characters. Admins set it on courses and portal members in edaxu, and the Create Learner action can set it when it adds a learner.
Anywhere an action needs a course or learner, you can send the edaxu ID, your customer_ref, or both. In Zapier these appear as “Your Course ID” and “Your Learner ID”. Responses and trigger events include the ref (or null) so you can match records back to your system without storing edaxu IDs.
Endpoints
| Method | Path | Used by |
|---|---|---|
GET | /integrations/zapier/me | Connection test |
GET | /integrations/zapier/courses | Find Course search, course dropdowns |
GET | /integrations/zapier/users | Find Learner search |
POST | /integrations/zapier/users | Create Learner action |
POST | /integrations/zapier/enrollments | Enroll Learner in Course action |
GET | /integrations/zapier/shopify/course-mappings | Mapping lookups |
POST | /integrations/zapier/shopify/course-mappings | Link Shopify Variant to Course action |
POST | /integrations/zapier/shopify/enrollments | Enroll Shopify Purchase action |
POST | /integrations/zapier/subscriptions | All triggers |
DELETE | /integrations/zapier/subscriptions/{subscriptionId} | All triggers |
GET | /integrations/zapier/events | All triggers (sample data) |
GET /integrations/zapier/me
Test an API key and return its portal and enabled permissions.
Permission: Any active Zapier API key
Response
{
"integration_id": "7d1c3f0e-1b2a-4c55-9a0e-2f1e8a6b9c10",
"integration_name": "Shopify course purchases",
"portal_id": "<portal id>",
"portal_name": "edaxu Academy",
"portal_subdomain": "academy",
"permission_keys": ["course:list", "enrollment:create", "user:read_any", "portal:invite_user"]
}Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
GET /integrations/zapier/courses
List published courses available to the connection.
Permission: course:list
Query parameters
- page (integer, default 1)
- pageSize (integer, 1 to 100, default 100)
- search (string, optional, matches course name)
- customer_ref (string, optional, returns only the course with this exact ID of yours)
Response
{
"page": 1,
"page_size": 100,
"total_items": 1,
"items": [
{ "id": "92a96f1f-6de4-4c91-bd7c-cf29d4b4439f", "name": "Workplace Safety Essentials",
"description": "Annual safety training.", "published": true, "customer_ref": "safety101" }
]
}Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 403 The API key does not have course:list
GET /integrations/zapier/users
Find a learner by exact email address, your learner ID, or both. When both are sent the learner must match both. Returns zero or one match.
Permission: user:read_any
Query parameters
- email (string, optional)
- customer_ref (string, optional)
- Send at least one of email or customer_ref
Response
{
"items": [
{ "id": "4f0b2c8e-…", "email": "dee@example.com", "first_name": "Dee",
"last_name": "Demo", "created": false, "customer_ref": "dee-demo-1001" }
]
}Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Neither email nor customer_ref was sent
- 403 The API key does not have user:read_any
POST /integrations/zapier/users
Find or invite a learner. An existing learner in the portal is returned without a second invitation. If a learner in the portal already has the customer_ref you send, that learner is returned; otherwise the ref is assigned to the matched or invited learner.
Permission: portal:invite_user
Request body
{ "email": "dee@example.com", "first_name": "Dee", "last_name": "Demo",
"customer_ref": "dee-demo-1001" } // customer_ref is optionalResponse
200 existing learner, 201 learner created and invitation queued
{ "id": "4f0b2c8e-…", "email": "dee@example.com", "first_name": "Dee",
"last_name": "Demo", "created": true, "customer_ref": "dee-demo-1001" }Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 403 The API key does not have portal:invite_user
- 409 Email belongs to another portal in the hosted organization
POST /integrations/zapier/enrollments
Enroll an existing learner in a published course. Identify the course by course_id or course_customer_ref, and the learner by user_id or user_customer_ref. If you send both for either, they must point to the same record.
Permission: enrollment:create
Request body
{
"course_id": "92a96f1f-6de4-4c91-bd7c-cf29d4b4439f", // or "course_customer_ref": "safety101"
"user_id": "4f0b2c8e-…", // or "user_customer_ref": "dee-demo-1001"
"idempotency_key": "crm-deal-1042", // optional, makes retries safe
"enrollment_date_start": 1793500000, // optional, Unix seconds
"enrollment_date_end": null, // optional, Unix seconds
"notes": "Enrolled from CRM", // optional
"re_enrollment_mode": "restart" // optional: restart (default) or resume
}Response
200 earlier result for the same idempotency key, 201 learner enrolled
{ "id": "8c6c895b-…", "course_id": "92a96f1f-…", "user_id": "4f0b2c8e-…",
"status": "Enrolled", "enrollment_date_start": 1793500000, "enrollment_date_end": null,
"course_customer_ref": "safety101", "user_customer_ref": "dee-demo-1001",
"created": true, "idempotent_replay": false }Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Invalid enrollment input, or neither the ID nor customer_ref was sent for the course or learner
- 403 The API key does not have enrollment:create
- 404 Course or learner not found in the connected portal, including an unknown customer_ref
- 409 Enrollment conflicts with the current course or portal state
GET /integrations/zapier/shopify/course-mappings
List Shopify variant-to-course mappings for the portal.
Permission: course:list
Query parameters
- shopDomain (string, optional)
Response
{ "items": [ { "id": "84e637da-…", "shop_domain": "example.myshopify.com",
"variant_id": "44012345678901", "product_id": "8123456789012",
"course": { "id": "92a96f1f-…", "name": "Workplace Safety Essentials", "description": "…", "published": true, "customer_ref": "safety101" },
"created_at": 1793500000, "updated_at": 1793500000 } ] }Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 403 The API key does not have course:list
POST /integrations/zapier/shopify/course-mappings
Create or update the course linked to a Shopify variant. One variant per store maps to one course.
Permission: course:list and enrollment:create
Request body
{ "shop_domain": "example.myshopify.com", "variant_id": "44012345678901",
"product_id": "8123456789012",
"course_id": "92a96f1f-6de4-4c91-bd7c-cf29d4b4439f" } // or "course_customer_ref": "safety101"Response
200 with the saved mapping (same shape as the list items above)Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Invalid Shopify mapping
- 403 The API key lacks a required permission
- 404 Course not found in the connected portal, including an unknown course_customer_ref
POST /integrations/zapier/shopify/enrollments
Find or invite the customer from a Shopify order line, then enroll them in the mapped course. Retries for the same store, order, and line item return the original enrollment.
Permission: user:read_any, portal:invite_user, and enrollment:create
Request body
{
"shop_domain": "example.myshopify.com",
"order_id": "5432109876543",
"line_item_id": "13579246801357",
"variant_id": "44012345678901",
"email": "dee@example.com",
"first_name": "Dee",
"last_name": "Demo",
"enrollment_date_start": null, // optional
"enrollment_date_end": null, // optional
"notes": "Shopify order #1001", // optional
"re_enrollment_mode": "restart" // optional: restart (default) or resume
}Response
200 earlier result for the same order line, 201 customer enrolled
{ "enrollment": { …enrollment… }, "user": { …learner… }, "mapping": { …mapping… } }Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Invalid Shopify order data
- 403 The API key lacks a required permission
- 404 Shopify variant mapping or course not found
- 409 Enrollment conflicts with the current course or portal state
POST /integrations/zapier/subscriptions
Subscribe a Zap to a lifecycle event (REST Hook subscribe).
Permission: enrollment:list for enrollment and portal events, certificate:read_any for certificate events
Request body
{ "event_type": "com.edaxu.enrollment.completed.v1",
"target_url": "https://hooks.zapier.com/hooks/standard/…",
"zap_id": "123456789" }Response
200 matching subscription already exists, 201 subscription created
{ "id": "b3f1c2d4-…", "event_type": "com.edaxu.enrollment.completed.v1",
"created_at": "2026-11-01T16:20:00Z" }Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Unsupported event type or target URL
- 403 The API key lacks the permission required for the event type
DELETE /integrations/zapier/subscriptions/{subscriptionId}
Unsubscribe a Zap (REST Hook unsubscribe). Must use the key that created the subscription.
Permission: The API key that created the subscription
Response
204 subscription is inactiveErrors
- 401 Missing, invalid, or revoked API key
GET /integrations/zapier/events
List recent events of one type, newest first. Zapier uses this for trigger samples and the perform-list step.
Permission: Same as the matching subscription
Query parameters
- eventType (required, one of the event types below)
- pageSize (integer, 1 to 20, default 3)
Response
An array of event envelopes, described under Trigger events.Errors
- 401 Missing, invalid, or revoked API key
- 403 API key does not belong to the supplied portal subdomain
- 400 Unsupported event type
- 403 The API key lacks the permission required for the event type
Trigger events
Triggers use REST Hooks. When a Zap turns on, Zapier subscribes its hook URL with POST /integrations/zapier/subscriptions; when it turns off, Zapier removes it with DELETE /integrations/zapier/subscriptions/{id}. edaxu then posts each matching event to the hook as a CloudEvents 1.0 JSON document.
| Zapier trigger | Event type | Data included |
|---|---|---|
| Learner Enrolled | com.edaxu.enrollment.enrolled.v1 | portal, learner, course, enrollment |
| Course Completed | com.edaxu.enrollment.completed.v1 | portal, learner, course, enrollment |
| Certificate Issued | com.edaxu.certificate.issued.v1 | portal, learner, course, certificate |
| User Invited to Portal | com.edaxu.portal.user_invited.v1 | portal, user, invitation |
| User Joined Portal | com.edaxu.portal.user_joined.v1 | portal, user, invitation |
Event envelope
{
"specversion": "1.0",
"id": "0f8a1c2e-…",
"source": "urn:edaxu:portal:<portal id>",
"type": "com.edaxu.enrollment.completed.v1",
"time": "2026-11-01T16:20:00Z",
"subject": "/enrollments/<enrollment id>",
"datacontenttype": "application/json",
"data": {
"portal": { "id": "…", "name": "edaxu Academy", "subdomain": "academy" },
"learner": { "id": "…", "email": "dee@example.com", "first_name": "Dee", "last_name": "Demo",
"customer_ref": "dee-demo-1001" },
"user": null,
"course": { "id": "…", "name": "Workplace Safety Essentials", "customer_ref": "safety101" },
"enrollment": { "id": "…", "status": "completed", "occurrence": "completed",
"enrollment_date_start": "2026-10-01T00:00:00Z", "enrollment_date_end": null,
"completed_at": "2026-11-01T16:20:00Z" },
"certificate": null,
"invitation": null
}
}Every key in data is present on every event. Objects that don't apply to an event type are null. The subject is /enrollments/{id}, /certificates/{id}, or /portal-invitations/{id}.
- Enrollment events:
enrollment.occurrenceiscreated,resumed, orcompleted, andstatusis the lowercase enrollment status. - Certificate events:
certificateholdsid,status,issuance_type,issued_at,expires_at,verification_url, andenrollment_id;enrollmentisnull. learner.customer_ref,user.customer_ref, andcourse.customer_refhold your IDs for those records in the event's portal, ornullwhen none is set.- Portal events:
userandinvitationare filled (id,status,invited_at,expires_at,accepted_at,invited_by);learner,course, andenrollmentarenull.
Event timestamps are ISO 8601 in UTC.
Retries and duplicates
- Enrollment requests accept an
idempotency_key. Repeating a key returns the first result withidempotent_replay: true. - Shopify enrollments are deduplicated by store, order ID, and line item ID automatically.
- An active enrollment in the same course is returned unchanged. For a finished one,
restartcreates a new enrollment andresumereopens it. - Creating a learner who already belongs to the portal returns that learner with
created: falseand sends no new invitation.
Errors
Errors return a standard HTTP status with a short plain-text message, for example 401 Invalid Zapier API key or 403 API key does not belong to this portal subdomain.
Support
Questions about the API or the Zapier app: sales@edaxu.com.
