Getting Started #
The eCardWidget API lets you send eCards and keep your team-member directory in sync from your own systems (HR/CRM, donation platforms, internal tools). The same endpoints power the official Zapier integration, so you can build directly or use Zapier.
Which plans include the API #
The API and the MCP server work on every plan. Customer support for the API comes with Enterprise. The Zapier integration comes with Enterprise and the Directory plan from 51 people; accounts that already had Zapier connected or an API key keep it.
Plan limits apply through the API exactly as in the dashboard: eCards a month, Directory seats (422 Seat limit reached), and open group cards, boards and RSVP events.
Base URL #
https://app.ecardwidget.com
All API paths below are relative to this host (e.g. /v2/api/pub/ecard-actions/send-ecard).
Authentication #
Every request authenticates with your account API key, sent as a Bearer token:
Authorization: Bearer <YOUR_API_KEY>
Find and manage keys in the dashboard under Settings → Developers → API Keys
(https://app.ecardwidget.com/s/settings/developers). Notes:
- A key is shown in full only once, at creation. After that only the first/last 4 characters are displayed — store it somewhere safe.
- Keys are labeled so you can tell integrations apart; deleting a label/key revokes it immediately.
- Every call is scoped to the account that owns the key (tenant-isolated). You can only access your own eCard Forms, eCards, and directory.
- Keys can additionally be scoped per feature area (eCards, Directory, Gift Cards, …) at
manage/view/none. An unscoped key has full account access; a request outside a key's scope returns403naming the blocked area. Creating keys and rotating the webhook signing secret are dashboard-only — they can't be done with an API key. The key list also shows each key's Last used time.
curl https://app.ecardwidget.com/v2/api/pub/team-member-actions/departments \
-H "Authorization: Bearer $ECW_API_KEY"
Response format #
Most endpoints return a standard envelope:
{
"success": true,
"data": { },
"messages": []
}
success— boolean.data— object or array, endpoint-specific. Some list endpoints also include ametaobject (pagination cursors etc.).messages— array of human-readable strings; populated with error/info messages.
Exception: POST /v2/api/pub/ecard-actions/send-ecard returns a flat object (no data
wrapper) — the result fields are at the top level. See send-ecard.md.
Errors #
Errors use standard HTTP status codes with success: false and a messages array:
| Status | Meaning |
|---|---|
400 |
Bad request — missing/invalid parameter (details in messages) |
401 |
Missing or invalid API key |
403 |
Authenticated, but not allowed for this account |
404 |
Resource not found, or not owned by your account |
422 |
Validation failed (e.g. required custom fields missing) |
429 |
Rate limited — retry after a short delay |
{ "success": false, "data": null, "messages": ["Missing or invalid recipientEmail parameter"] }
Rate limiting #
Each API key is limited to 120 requests per minute (fixed 1-minute windows). If you exceed it you
receive 429 with a Retry-After header (seconds to wait) — back off for that long, then retry.
Higher limits are available per account on request. For large initial loads (e.g. importing an entire
employee base), prefer the in-app spreadsheet importer and use the API for ongoing deltas — see
directory-sync.md.
IDs are vanity IDs #
eCards, eCard Forms, and sent/share records are identified by short opaque vanity IDs (e.g.
e4xgrzltk), not numeric DB IDs. Treat them as opaque strings.
Versioning & stability #
The API is URL-major-versioned (/v2/). Within a major version we make only additive,
backward-compatible changes — new endpoints, new optional request params, and new response fields.
We will not, within /v2/, remove or rename a field, change its type/meaning, or make an
optional field required. Ignore unknown response fields so additions never break your integration.
Each endpoint in the reference carries an x-stability marker:
stable— backed by the additive-only guarantee above (the default).preview— newer / actively evolving; may change without notice (e.g. the eCard search).
When a breaking change is unavoidable we ship a new major version (/v3/) and keep /v2/ for at
least 18 months. Deprecated endpoints send Deprecation: true and a Sunset: <date> header.
Next steps #
- Developer Portal overview — keys, docs, webhooks
- Send an eCard · Search eCards
- Sync your directory
- Webhooks — eCard-shared + member-change
- JavaScript (eCard Form) events
- Errors & status codes
- Use Zapier instead of code
- Full endpoint reference:
reference/openapi.yaml