# FormHam developer documentation - [API guide](https://formham.co.uk/docs/agency-api) - [Agency API OpenAPI 3.1](https://app.formham.co.uk/api-docs/agency-api.yaml) - [Hooks API and webhooks OpenAPI 3.1](https://app.formham.co.uk/api-docs/hooks-api.yaml) - [Registered endpoint index](https://app.formham.co.uk/api-docs/endpoints.json) API base: https://app.formham.co.uk/api/agency/v1 Use an agency bearer token scoped to one business. Never ask a user to paste a real key into a public chat or browser documentation. GET /api/agency/v1/app/businesses — Businesses. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/business/members — Business Members. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/business/members — Add Business Member. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/business/members/{userId} — Remove Business Member. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/business/members/{userId} — Update Business Member Role. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/dashboard — Dashboard. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/onboarding-progress — Onboarding Progress. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/setup — Show. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/forms — Forms. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/forms/{id} — Show Form. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/forms/{id}/webhook-secret — Webhook Secret. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/forms/{id}/notifications — Form Notifications. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/submissions — Submissions. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/submissions/{id} — Show Submission. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/submissions/{id}/notes — Notes. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/logs — Logs. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/logs/failed-count — Logs Failed Count. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/business — Business. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/billing — Billing. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/sending-domain — Sending Domain. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/tokens — Tokens. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/customer-api — Customer Api. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/mailing-lists — Mailing Lists. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/mailing-list-destination-providers — Mailing List Destination Providers. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/mailing-lists/{id}/subscribers — Mailing List Subscribers. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/billing/sites — Sites. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms — Create Form. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/forms/{id} — Update Form. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms/{id}/test — Test Form. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/forms/{id} — Destroy Form. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms/{id}/duplicate — Duplicate Form. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms/{id}/webhook-secret/rotate — Rotate Webhook Secret. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms/{id}/notifications — Create Form Notification. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/forms/{id}/notifications/{notificationId} — Update Form Notification. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/forms/{id}/notifications/{notificationId} — Delete Form Notification. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/logs/{id}/retry — Retry Log. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/{id}/notes — Add Note. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/submissions/{id}/notes/{noteId} — Delete Note. Uses the same fields, validation and role permissions as the app. PUT /api/agency/v1/app/submissions/{id}/lead-status — Set Status. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/bulk/lead-status — Bulk Lead Status. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/{id}/release — Release. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/business — Update Business. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/setup — Update. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/notification-recipients/replace — Replace Recipient. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/tokens — Create Token. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/tokens/{id} — Revoke Token. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/customer-api — Update Customer Api. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/mailing-lists — Create Mailing List. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/mailing-lists/{id} — Update Mailing List. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/mailing-lists/{id} — Delete Mailing List. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/mailing-lists/{id}/destinations — Create Mailing List Destination. Uses the same fields, validation and role permissions as the app. PATCH /api/agency/v1/app/mailing-lists/{id}/destinations/{destinationId} — Update Mailing List Destination. Uses the same fields, validation and role permissions as the app. DELETE /api/agency/v1/app/mailing-lists/{id}/destinations/{destinationId} — Delete Mailing List Destination. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/mailing-lists/{id}/destinations/{destinationId}/backfill — Backfill Mailing List Destination. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/mailing-lists/{id}/destinations/test — Test Unsaved Mailing List Destination. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/mailing-lists/{id}/destinations/{destinationId}/test — Test Mailing List Destination. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/billing/client-workspaces — Create Client Workspace. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/billing/checkout — Start Checkout. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/billing/close-workspace — Close Workspace. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/account/delete — Delete Account. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/submissions/export — Export Submissions. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/forms/{id}/export/panel — App\ Http\ Controllers\ Panel Submission Export Controller. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/erase-by-email — Erase By Email. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/{id}/erase — Erase Submission. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/submissions/bulk/delete — Bulk Delete. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/mailing-lists/{id}/export — Export Mailing List. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/mailing-lists/{id}/export/all — Export Panel Mailing List. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/sending-domain — Provision Sending Domain. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/sending-domain/verify — Verify Sending Domain. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/forms/{id}/webhook-test — Test Webhook. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/plugin-token — Issue Plugin Token. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/app/submission-files/{submissionFile} — Attachment. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/download-plugin — Plugin. Uses the same fields, validation and role permissions as the app. POST /api/agency/v1/app/billing/portal — Billing Portal. Uses the same fields, validation and role permissions as the app. GET /api/agency/v1/me — Who this token is, which businesses it covers, and why any of yours are missing. GET /api/agency/v1/businesses — Every client business this token can reach. GET /api/agency/v1/usage — Submission counts per business for a month. Takes ?month=YYYY-MM. GET /api/agency/v1/forms — Forms across every reachable business. Filter with ?business_id= and ?is_active=. POST /api/agency/v1/forms — Create a form on one of your businesses. Needs business_id and name; fields are optional. GET /api/agency/v1/forms/{uuid} — One form, with its field list. PATCH /api/agency/v1/forms/{uuid} — Rename a form, pause it, or change where it notifies. Use /app/forms/{id} for the full app settings. GET /api/agency/v1/submissions — Leads across every reachable business. Cursor-paginated; filter with ?since=, ?until=, ?form_uuid=, ?business_id=. GET /api/agency/v1/submissions/{receiptId} — One lead by its receipt id, with the delivery attempts made for it. DELETE /api/agency/v1/submissions/{receiptId} — Permanently delete one lead with its files and delivery logs (owner/admin). 204 when gone, also on repeat; 404 if unknown or out of scope.