@taskmagic/apps-agencyhandy
v0.3.6
Published
Work with [AgencyHandy](https://www.agencyhandy.com) client portals — API docs: https://docs.agencyhandy.com/api/getting-started
Readme
AgencyHandy
Work with AgencyHandy client portals — API docs: https://docs.agencyhandy.com/api/getting-started
Create clients and leads, and start flows from AgencyHandy webhook events. Authentication takes
an API key from Workspace Settings → API Key (SuperAdmin/Admin only) plus a Company ID;
leave the Company ID blank and the piece resolves it from GET /accounts/companies on first use.
Scope: documented endpoints only
AgencyHandy's published API is small, and this piece is limited to it on purpose. The base URL is
https://api.agencyhandy.com/api/v1:
| Endpoint | Used by |
| --- | --- |
| GET /accounts/companies | connection test, List Companies |
| POST /members/bulk-client | Create Client |
| POST /members/bulk-lead | Create Lead |
| POST /webhooks/verify-signature | Verify Webhook Signature |
Where the docs and the live API disagree
Three points, each confirmed by probing the API with an invalid key — the shape of the rejection separates "no such route" from "route reached, request rejected", so no account is needed to establish them:
- The
/api/v1prefix is required, though the docs give the base as the bare host.POST /members/bulk-clientis404 "API not found"; the prefixed form reaches the app. - There is no company segment in the path.
/api/v1/company/{id}/members/bulk-*— what an earlier release used — is404 "API not found". That is why Create Client and Create Lead both reported "will not connect to the API". (/members/bulk-leaddoes exist, contrary to the swagger bundle an earlier analysis relied on.) - The
companyidheader is required, though both endpoint pages say you do not need to send a company ID. Omit it and a subscription-checker rejects the call with400 "Subscription-checker: companyId is required!"before validation runs.
Actions
- Create Client —
POST /members/bulk-client. Requires email, first and last name; status is alwaysClient, the only value this endpoint accepts. - Create Lead —
POST /members/bulk-lead. Requires email, type (individualorleadCompanyMember) and a pipeline status from the documented set. - List Companies — find the
_idto use as a Company ID. - Verify Webhook Signature — confirm a received webhook is authentic via the
x-ah-sigheader and your webhook secret.
Not shipped, and why
- Update Order —
PUT /orders?pid=is documented, but it authenticates withAuthorization: Bearer <a signed-in member's access token>rather than the workspace API key, and AgencyHandy publishes no way to obtain that token programmatically. Built on the API key it can only return403 PermissionError. - Create Invoice / Create Task — AgencyHandy documents no invoice or task endpoints. Earlier
releases inferred these from examples in a swagger bundle; the field shapes were guesses and
testers hit
400s on both.
Triggers
AgencyHandy has no public API to register a webhook, so every trigger uses the manual-URL
pattern: the trigger shows the flow's webhook URL, and you paste it into AgencyHandy
(Integrations → Webhooks Management → Create New Webhook) and select the matching event.
AgencyHandy delivers each event as a signed { id, type, data } JSON envelope.
Ships: New Order, Order Updated, New Task, Task Completed, Invoice Status Changed, New Client,
Proposal Accepted, Payment Received, plus New Event (Any) for events without a dedicated
trigger — branch on {{trigger.type}} inside the flow. Every one of these appears in
AgencyHandy's documented webhook event catalog.
Notes
No custom API call action: the shared helper accepts an absolute URL and merges the connection's auth headers into it, which would let a user-entered address receive the AgencyHandy API key.
