Skip to content
Last updated

Changelog

Changes to the Aiwyn Product API, newest first. Entries appear here when a release reaches production, so everything on this page is live and callable today.

Each release is grouped by the kind of change it contains:

  • ⚠️ Breaking changes — require action before you upgrade
  • Added — new endpoints, parameters, or response fields
  • Changed — behavior or response shape changed in a backward-compatible way
  • Deprecated — still works, but scheduled for removal
  • Removed — no longer available
  • Fixed — corrected behavior

Questions about a change? Email api-support@aiwyn.ai.

v9.12.0 — 2026-11-24

Added

  • POST /gql/v1/engagements, POST /gql/v1/engagements/search, GET /gql/v1/engagement/{id}, GET /gql/v1/engagement_documents/by_engagement/{engagementId}, POST /gql/v1/projects, POST /gql/v1/projects/search, GET /gql/v1/project/{id}, POST /gql/v1/jobs, GET /gql/v1/job/{id}, POST /gql/v1/job_templates — Engagements, engagement documents, projects, jobs, and job templates return the fields your Bulk Data Access export already carries, such as contacts, collaborators, internal notes, task and client request counts, budgeted and actual hours, and template offsets, and projects and jobs now return the same set of job fields.
  • POST /gql/v1/draft_invoice_histories, POST /gql/v1/draft_invoice_histories/search, GET /gql/v1/draft_invoice_history/{invoiceId}, POST /gql/v1/invoices, POST /gql/v1/invoices/search, GET /gql/v1/invoice/{id}, POST /gql/v1/payments, POST /gql/v1/payments/search, GET /gql/v1/payment/{id} — Draft invoices, invoices, their AR transactions and payments return the same fields as your Bulk Data Access export, including reviewer, sender and schedule details on drafts, posting, delivery and reversal details on invoices, and card, failure, source and fee details on payments.
  • POST /gql/v1/wip, POST /gql/v1/wips/search, GET /gql/v1/time/wip/{id}, POST /gql/v1/tasks/search, GET /gql/v1/task/{id}, GET /gql/v1/task-types, POST /gql/v1/task-types/search — WIP, task and task-type responses return more of their Bulk Data Access fields: WIP adds approval, posting, lock, staff, office, department, service line, work code, units, rates, pmsRef and customFieldValues; tasks add createdByStaffId, lastUpdatedByStaffId, taskSectionId, jobTemplateTaskId and task.active/task.customFieldValues; task types add both staff ids.
  • Webhook events for client requests are documented: RequestItem SENT, APPROVED, and REJECTED, and ClientRequest VIEWED, with what each carries. The webhook docs also describe retries correctly: a 5xx response or a connection error is retried up to two more times, with the same X-Aiwyn-Event-Id. Other failures, including timeouts, are not retried.
  • POST /api/v1/event-subscriptions, PATCH /api/v1/event-subscriptions/{id} — Subscribe to Engagement CONSENT_RECORDED to learn when a client agrees to or declines a consent document, as soon as they answer, with each signer's response in the event metadata.
  • POST /api/v1/time-entries, POST /api/v1/time-entries/batch, GET /api/v1/time-entries/{id}, POST /api/v1/expense-entries, POST /api/v1/expense-entries/batch, GET /api/v1/expense-entries/{id}, POST /api/v1/operational-entries, POST /api/v1/operational-entries/batch, GET /api/v1/operational-entries/{id}, POST /api/v1/pto-entries, POST /api/v1/pto-entries/batch, GET /api/v1/pto-entries/{id} — Time, expense, operational and PTO entries each get dedicated v1 endpoints: upsert entries without a per-record type, page through them and fetch one by its Aiwyn ID. The v1 reference groups each kind's code and entry endpoints under Time, Expenses, Operational and PTO in Time management.
  • POST /api/v1/time-codes, POST /api/v1/time-codes/batch, GET /api/v1/time-codes/{id}, POST /api/v1/expense-codes, POST /api/v1/expense-codes/batch, GET /api/v1/expense-codes/{id}, POST /api/v1/operational-codes, POST /api/v1/operational-codes/batch, GET /api/v1/operational-codes/{id}, POST /api/v1/pto-codes, POST /api/v1/pto-codes/batch, GET /api/v1/pto-codes/{id} — Time, expense, operational and PTO codes each get dedicated v1 endpoints: upsert records without a per-record type, page through them, and fetch one by its Aiwyn ID; each upsert documents its type's attributes.
  • GET /api/v1/files — List items include active and updatedAt, the same values GET /api/v1/files/{id} already returns, so you can track file changes without fetching each file.
  • POST /gql/v1/clients, POST /gql/v1/clients/search, GET /gql/v1/client/{id}, POST /gql/v1/client_types, POST /gql/v1/tax_regions, POST /gql/v1/client_groups, POST /gql/v1/client_business_entities, POST /gql/v1/contacts, POST /gql/v1/contacts/search, GET /gql/v1/contact/{id}, GET /gql/v1/contacts/by_client/{clientId}, POST /gql/v1/contact_clients, POST /gql/v1/contact_infos — Client, client type, tax region, client group, business entity, contact, contact-client and contact info responses return the fields your Bulk Data Access export already carries, such as custom field values, status, merge details, staff audit ids and contact names.
  • POST /gql/v1/staff, POST /gql/v1/staff/search, GET /gql/v1/staff/{id}, POST /gql/v1/departments, POST /gql/v1/offices, POST /gql/v1/orgs, POST /gql/v1/industries, POST /gql/v1/service_lines — Staff, department, office, organization, industry and service-line records return the remaining fields from your Bulk Data Access export, including custom field values, the created-by and last-updated-by staff ids, staff start and end dates, and office address and contact details.

Changed

  • POST /v1/auth/token, POST /v1/auth/refresh-token — Issuing or refreshing tokens in a loop for one API user can answer 429 Too Many Requests with a Retry-After header. A token exchange answered with the token already cached for its key does not count, so reusing a token until it answers 401, or requesting one before each call with the same key, stays within the limit.
  • Each per-type time management entry upsert documents its type's attributes, defaults, date format and failure codes, and a new Time-management entry page in the data dictionary lists them.
  • GET /api/v1/codes/types, GET /api/v1/codes/schema/{type}, POST /api/v1/codes, POST /api/v1/codes/batch/{type}, GET /api/v1/entries/types, GET /api/v1/entries/schema/{type}, POST /api/v1/entries, POST /api/v1/entries/batch/{type} — The time management code and entry endpoints are listed once, under Time management, instead of also appearing in a separate Expenses section; the endpoints themselves are unchanged.
  • GET /gql/v1/engagement/{id}, POST /gql/v1/engagements, POST /gql/v1/engagements/search, GET /gql/v1/engagement_documents/by_engagement/{engagementId}, GET /gql/v1/project/{id}, POST /gql/v1/projects, POST /gql/v1/projects/search — Reading engagements, engagement documents, and projects needs only the base API_ADMIN role; their reference pages listed ENG_C and PROJ_C, which apply only to creating and changing them.

Removed

  • GET /api/v1/event-subscriptions/catalog — The event catalog no longer lists events that were never sent: ContactInfo CREATED, UPDATED and DELETED, Engagement CANCELLED, and DELETED for Client, Contact, ContactClient and Job.

Fixed

  • GET /gql/v1/engagement_documents/by_engagement/{engagementId} — The engagement documents reference now links to its own data dictionary page and lists the document type IDs. Its example gives the consent document its real type ID, 4, instead of 2, and affirmativeStatus now says that a ONE_SIGNATURE_REQUIRED document still turns NEGATIVE on any decline, so use the CONSENT_RECORDED webhook for those.
  • Every endpoint page states the role it requires, the Authorization page lists every role with its Firm Portal name, and the Payment and Engagement data dictionaries match the fields the API returns.
  • POST /gql/v1/invoices, POST /gql/v1/invoices/search, GET /gql/v1/invoice/{id}, POST /gql/v1/payments, POST /gql/v1/payments/search, GET /gql/v1/payment/{id}, POST /gql/v1/wip, POST /gql/v1/wips/search, GET /gql/v1/time/wip/{id} — The reference now matches what these endpoints return: invoice dueDate, transaction dates and payment ar_transaction_date and estimated_deposit_date are local date-times with no time-zone offset, and WIP clientId and jobId can be null.

v9.11.0 — 2026-11-10

⚠️ Breaking changes

  • Sandbox and Staging are now behind Cloudflare Access and served from https://api.sandbox.aiwyn.app and https://api.staging.aiwyn.app: every request, including POST /v1/auth/token, must send the CF-Access-Client-Id and CF-Access-Client-Secret headers issued by Aiwyn, or Cloudflare rejects it before it reaches the API.
  • POST /api/v1/records/custom, PUT /api/v1/records/custom/{name} — New custom record type field names must be snake_case, and any other name returns 400; field names already on a type are kept as they are, so existing types can still be updated.
  • POST /api/v1/engagements/create — Engagement create returns 400 with field errors when a required field such as clientId is missing, instead of reading it as 0, and returns 400 instead of 401 when no template is given.
  • POST /gql/v1/task-types/search — Task-type search includes deactivated task types, so filtering on active: false works; the task-type list still returns active types only.

Added

  • POST /api/v1/entries, POST /api/v1/codes, GET /api/v1/entries/types, GET /api/v1/entries/schema/{type}, POST /api/v1/entries/batch/{type}, GET /api/v1/codes/types, GET /api/v1/codes/schema/{type}, POST /api/v1/codes/batch/{type} — Expenses are documented under their own section: upsert ExpenseEntry records via POST /api/v1/entries and ExpenseCode records via POST /api/v1/codes, with request examples that carry every schema-required field and a field mapping from the firm portal expense form.
  • GET /api/v1/event-subscriptions — Listing your own event subscriptions, active and deactivated, is now documented, so you can find a subscription's id to update, deactivate or reactivate it.
  • Production (https://api.aiwyn.app) is listed as a server, and every operation also accepts the bearer token without the Cloudflare Access headers, so "Try it" and the request samples work against Production.
  • A Quickstart guide walks through credentials, token exchange and a first request in cURL, Python and JavaScript, and the reference now explains the /v1/auth, /gql/v1 and /api/v1 path prefixes.
  • The webhook request Aiwyn sends to a subscription's deliveryUrl is documented under Webhooks: its body, its X-Signature and X-Aiwyn-* headers, and what happens when a delivery fails.

Changed

  • Expanded the API reference with field definitions, response schemas, authentication guidance, and request examples.
  • POST /v1/auth/token — The token endpoint's 401 and 403 bodies add code (UNAUTHORIZED or FORBIDDEN) and keep error as UnauthorizedException or ForbiddenException, so clients that match on error keep working; message is a generic sentence.
  • The Cloudflare Access headers Sandbox and Staging require are security schemes on every operation, so generated request samples and "Try it" send them, replacing the hand-written curl examples in endpoint descriptions.
  • API reference section names and the titles of the token, client onboarding, and contact upsert operations now use sentence case; no endpoint, request, or response changed.
  • POST /api/v1/clients/v1/onboard, POST /api/v1/records, PUT /api/v1/records — Values sent for read-only or hidden custom fields are ignored and the stored values kept; client onboarding lists those keys in ignoredCustomFields.

Fixed

  • GET /api/v1/event-subscriptions/catalog — The catalog's enabled filter now filters: enabled=true (the default) lists only the events you can subscribe to, and enabled=false lists only the disabled ones instead of every event.
  • POST /api/v1/event-subscriptions, PATCH /api/v1/event-subscriptions/{id} — Webhook delivery URLs must use https://, as documented: creating or updating a subscription with an http:// URL, or one that points at a private, link-local or cloud metadata address, is refused with 400.
  • Event subscription createdAt and updatedAt are documented as Unix epoch seconds (numbers), which is what update, reactivate and the catalog return. Webhook delivery history timestamp and createdAt are documented the same way.
  • An out-of-range pageSize or a negative page on a list or search endpoint returns 400 with only error (for example pageSize must be an integer from 1 to 1000); code and path are documented as present only on errors from the query itself.
  • The task endpoints are documented at their served paths, /gql/v1/task-types, /gql/v1/task-types/search, /gql/v1/task/{id} and /gql/v1/tasks/search, and the Hasura curl examples use /gql/v1/....
  • The POST /gql/v1/wip response keys are documented as tenant-specific: records under <tenant>_vw_wip_unified and totals under <tenant>_vw_wip_unified_aggregate.
  • GET /gql/v1/client/{id}, GET /gql/v1/contact/{id}, GET /gql/v1/engagement/{id}, GET /gql/v1/invoice/{id}, GET /gql/v1/payment/{id}, GET /gql/v1/project/{id}, GET /gql/v1/staff/{id} — Get-by-id responses are documented as returned: the record sits under its entity key (for example {"invoice": {...}}), an unknown id answers 200 with null or an empty list rather than 404, and a non-numeric id answers 400.
  • POST /gql/v1/clients/search, POST /gql/v1/contacts/search, POST /gql/v1/engagements, POST /gql/v1/engagements/search, POST /gql/v1/invoices, POST /gql/v1/invoices/search, POST /gql/v1/payments, POST /gql/v1/payments/search, POST /gql/v1/projects/search, POST /gql/v1/staff, POST /gql/v1/staff/search, POST /gql/v1/wip, POST /gql/v1/wips/search — List and search endpoints are documented with their real default pageSize of 50, and the paginated list endpoints accept only pageSize and page: to filter or sort, use the matching /search endpoint, which takes where and orderBy.
  • GET /gql/v1/draft_invoice_history/{id}, GET /gql/v1/time/wip/{id} — The draft invoice and WIP get-by-id endpoints are documented at the paths they are served on, /gql/v1/draft_invoice_history/{invoiceId} and /gql/v1/time/wip/{id}, with their real response bodies.
  • POST /gql/v1/clients, POST /gql/v1/engagements, POST /gql/v1/projects, POST /gql/v1/draft_invoice_histories, POST /api/v1/clients/v1/onboard, GET /api/v1/files — Response schemas match what the API returns: fields that can be null list 'null' among their types (OpenAPI 3.1 type: [string, 'null'], in place of nullable: true), every always-present field is listed as required, fields the API never returned are removed, and the engagement, project, file and onboarding bodies use their real field names and envelopes.
  • POST /api/v1/codes, POST /api/v1/entries, POST /api/v1/records/custom, POST /api/v1/staff/type/batch/create, DELETE /api/v1/event-subscriptions/{id}, PATCH /api/v1/event-subscriptions/{id} — Every status an endpoint really returns is documented, including 207 and 422 for partly or wholly failed code and entry upserts, 409 for a duplicate custom record type, the staff-type batch {succeeded, failed} body, and 200 with a body when deactivating an event subscription.
  • POST /v1/auth/token, POST /api/v1/webhook/test/generate, POST /api/v1/webhook/test/validate, GET /api/v1/event-subscriptions/catalog, GET /api/v1/event-subscriptions/webhook/secret — The token, webhook-test, catalog and webhook-secret endpoints document their real bodies and permissions: webhook-test responses are flat {payload, signature, secret} objects, event subscriptions need EVNT_SUB, the catalog needs no role, and entityType and operation are strings.
  • POST /api/v1/engagements/batch/create — Batch engagement create returns 400 instead of 500 when entries name unknown clients (listing every unknown id) or a client with no default partner or manager (naming the field to send instead), and 400 when an entry is missing a required field.
  • PUT /api/v1/records/custom/{name} — Updating a custom record type applies description on its own, without resending fields.
  • With a bearer token, Tenant and X-Tenant-ID headers are ignored; with X-Aiwyn-Api-Key, /gql/v1/... paths ignore a Tenant header but /api/v1/... paths answer 403 when one is sent (the message does not name the header), and X-Tenant-ID is no longer documented.
  • GET /api/v1/codes/schema/{type}, POST /api/v1/codes/batch/{type}, GET /api/v1/entries/schema/{type}, POST /api/v1/entries/batch/{type}, GET /api/v1/records/schema/{type}, GET /api/v1/records/custom/{name}, PUT /api/v1/records/custom/{name}, DELETE /api/v1/records/custom/{name}, PATCH /api/v1/event-subscriptions/{id}, DELETE /api/v1/event-subscriptions/{id}, POST /api/v1/event-subscriptions/{id}/reactivate, GET /api/v1/event-subscriptions/{id}/deliveries, GET /api/v1/files/{id} — The path parameters of these endpoints are documented, so "Try it" and the generated request samples fill them in.

v9.10.0 — unreleased

Added

  • GET /api/v1/event-subscriptions, PATCH /api/v1/event-subscriptions/{id}, POST /api/v1/event-subscriptions/{id}/reactivate — Subscriptions now include eventEnabled, which is false when an administrator has disabled the subscription's event; such a subscription stays listed and editable but receives no deliveries, and reactivating it returns 400 until the event is re-enabled.
  • POST /api/v1/clients/v1/link/payment — Send metadata (up to 20 string key-value pairs) when creating a payment link to get it back as metadata.paymentLinkMetadata on every Payment webhook event the link's payment raises.
  • POST /api/v1/clients/v1/link/payment — Send expiresInDays (7, 14, 30, 60 or 90) when creating a payment link to choose how long it stays payable; links without it keep the 14-day default. Other values are rejected with 400 and extensions.details.reason INVALID_EXPIRY.
  • GET /gql/v1/client/{id}, POST /gql/v1/clients, POST /gql/v1/clients/search, GET /gql/v1/job/{id}, POST /gql/v1/jobs, GET /gql/v1/project/{id}, POST /gql/v1/projects, POST /gql/v1/projects/search — Client, job, and project responses now include customFieldValues, an object of the record's custom field values keyed by field code (null when none are set). Project responses also include createdAt.

Changed

  • Product API endpoints now accept a JWT API key directly in the X-Aiwyn-Api-Key header, so integrators can authenticate without first exchanging the key for a bearer token at /v1/auth/token.
  • POST /api/v1/entries — For enabled tenants, a TimeEntry posted with hours in units and no billedPerUnit gets its rate, cost and amount resolved from the firm's rate card with rounded hours, as the firm portal does, on insert and on every re-post; a billable code with no rate fails with RATE_NOT_FOUND, a locked entry with LOCKED; billedPerUnit senders are stored as sent.
  • Product API authentication is now re-checked on every request, so deactivating a key or its user, inactivating a role, or disabling Product API for the firm takes effect on the next call (a 403 for an inactive role or a disabled firm) instead of when the bearer token expires.
  • POST /api/v1/webhook/test/generate and /validate now require the WEBHK_TST permission, which read-only keys already hold; a custom-scoped key without it gets 403 until an admin adds it.

v9.9.8 — unreleased

⚠️ Breaking changes

  • POST /api/v1/clients/v1/link/payment — Payment webhook events no longer carry metadata.paymentLinkPlId; match a payment to its link by metadata.paymentLinkId or by comparing the SHA-256 of the qpLink value you received with metadata.paymentLinkPlIdSha256.
  • POST /api/v1/clients/v1/link/payment — A payment link that carries a returnUrl must also name invoices (invoiceIds or invoiceNumbers) or an amount; otherwise the request answers 400 with extensions.details.reason RETURN_URL_REQUIRES_OBLIGATION and nothing is created.

Added

  • POST /api/v1/clients/v1/link/payment — Send metadata (up to 20 string key-value pairs) when creating a payment link to get it back as metadata.paymentLinkMetadata on the Payment webhook events the link's payment raises. Only the subscriptions of the API user that created the link receive it.

Changed

  • POST /api/v1/clients/v1/link/payment — Creating a payment link answers 403 with extensions.details.reason QUICK_PAYMENT_LINKS_DISABLED while quick payment links are not enabled for the firm. Nothing is created; Aiwyn enables quick payment links per firm.

v9.9.0 — 2026-09-30

⚠️ Breaking changes

  • POST /gql/v1/staff, POST /gql/v1/staff/search, GET /gql/v1/staff/{id} — Staff responses now include serviceLine, subServiceLine, wageType, employeeType, permissionSet, staffSupervisor, and updatedAt; the existing staffType object is renamed to role, so integrations reading staffType must switch to role.

Added

  • POST /gql/v1/payments, POST /gql/v1/payments/search, GET /gql/v1/payment/{id} — Payment responses now include estimated_deposit_date (the projected date funds settle) and posted_to_bank_dt (when the payment was posted to the bank). Both are returned on the list, search, and get-by-id endpoints and are null until known.
  • POST /api/v1/clients/v1/link/payment — Send returnAutomatically: true to have the payment page return to your system on its own after the confirmation, navigating to returnUrl when the link has one and closing a tab your system opened by script when it does not; the flag needs no returnUrl, while returnLabel still does.

v9.8.0 — 2026-09-16

Added

  • POST /api/v1/contacts/upsert — Upsert up to 100 contacts in one call, each linked to existing clients by external reference (pmsRef, clientRef) instead of Aiwyn ids; contacts are processed independently, so the response returns succeeded and failed lists keyed by request index. Omit pmsRef to create a new contact, omit clients to update the contact only, or send active: false to unlink a client.
  • POST /api/v1/event-subscriptions, PATCH /api/v1/event-subscriptions/{id}, POST /api/v1/event-subscriptions/{id}/reactivate — Payment subscriptions must set filterExpression to ownPaymentLinksOnly (payments through links the subscribing API user minted), paymentLinkOnly (any quick payment link) or allPayments (every payment); the last two need the PYMT_EVNT_ALL role. Other values are rejected; other entity types and existing rows are unchanged.
  • GET /api/v1/invoices/unpaid, POST /api/v1/clients/v1/link/payment — List a client's unpaid invoices by clientRef and create a single-use quick payment link for that client, locked to chosen invoices, an amount and a note (at least one argument is required); the new INVC_R and PAYLNK_C roles grant these two endpoints on their own, and API_ADMIN keeps granting them as before.

Fixed

  • POST /api/v1/event-subscriptions/{id}/reactivate — Reactivating a webhook subscription now answers 400 when its stored filterExpression is no longer allowed for your roles and 404 when the subscription does not exist, instead of 500 with a Failed to reactivate event subscription: prefix on the message; endpoints that already answered 404 now list it in their spec.

v9.7.0 — 2026-09-02

Added

  • POST /api/v1/clients/v1/onboard — Onboard a client with its own address and an optional billingAddress (ISO alpha-2 country, US states stored as abbreviations), saved exactly as the Firm Portal "Create New Client" dialog saves them; the response returns the new clientContactInfoId and billingAddressId.

v9.6.0 — 2026-08-18

Added

  • GET /gql/v1/client_types, GET /gql/v1/tax_regions — Two read-only lookup endpoints for resolving the clientTypeId and tax region values accepted by client onboarding (POST /api/v1/clients/v1/onboard). Both support basic page and pageSize pagination.

Changed

  • GET /gql/v1/engagement/{id}, POST /gql/v1/engagements, POST /gql/v1/engagements/search — Engagement read responses now include the engagement's clientId and a jobs array of linked jobs (id, name, status, clientId, pmsRef, jobRef, sysRefs, plus each link's isActive flag), so an engagement's client and jobs can be resolved without a separate lookup.