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.
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,pmsRefandcustomFieldValues; tasks addcreatedByStaffId,lastUpdatedByStaffId,taskSectionId,jobTemplateTaskIdandtask.active/task.customFieldValues; task types add both staff ids.- Webhook events for client requests are documented:
RequestItemSENT,APPROVED, andREJECTED, andClientRequestVIEWED, with what each carries. The webhook docs also describe retries correctly: a5xxresponse or a connection error is retried up to two more times, with the sameX-Aiwyn-Event-Id. Other failures, including timeouts, are not retried. POST /api/v1/event-subscriptions,PATCH /api/v1/event-subscriptions/{id}— Subscribe toEngagementCONSENT_RECORDEDto 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-recordtype, 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-recordtype, page through them, and fetch one by its Aiwyn ID; each upsert documents its type's attributes.GET /api/v1/files— List items includeactiveandupdatedAt, the same valuesGET /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.
POST /v1/auth/token,POST /v1/auth/refresh-token— Issuing or refreshing tokens in a loop for one API user can answer429 Too Many Requestswith aRetry-Afterheader. A token exchange answered with the token already cached for its key does not count, so reusing a token until it answers401, 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 baseAPI_ADMINrole; their reference pages listedENG_CandPROJ_C, which apply only to creating and changing them.
GET /api/v1/event-subscriptions/catalog— The event catalog no longer lists events that were never sent:ContactInfoCREATED,UPDATEDandDELETED,EngagementCANCELLED, andDELETEDforClient,Contact,ContactClientandJob.
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 of2, andaffirmativeStatusnow says that aONE_SIGNATURE_REQUIREDdocument still turnsNEGATIVEon any decline, so use theCONSENT_RECORDEDwebhook 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: invoicedueDate, transaction dates and paymentar_transaction_dateandestimated_deposit_dateare local date-times with no time-zone offset, and WIPclientIdandjobIdcan be null.
- Sandbox and Staging are now behind Cloudflare Access and served from
https://api.sandbox.aiwyn.appandhttps://api.staging.aiwyn.app: every request, includingPOST /v1/auth/token, must send theCF-Access-Client-IdandCF-Access-Client-Secretheaders 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 asclientIdis 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 onactive: falseworks; the task-type list still returns active types only.
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: upsertExpenseEntryrecords viaPOST /api/v1/entriesandExpenseCoderecords viaPOST /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/v1and/api/v1path prefixes. - The webhook request Aiwyn sends to a subscription's
deliveryUrlis documented under Webhooks: its body, itsX-SignatureandX-Aiwyn-*headers, and what happens when a delivery fails.
- 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 addcode(UNAUTHORIZEDorFORBIDDEN) and keeperrorasUnauthorizedExceptionorForbiddenException, so clients that match onerrorkeep working;messageis 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 inignoredCustomFields.
GET /api/v1/event-subscriptions/catalog— The catalog'senabledfilter now filters:enabled=true(the default) lists only the events you can subscribe to, andenabled=falselists only the disabled ones instead of every event.POST /api/v1/event-subscriptions,PATCH /api/v1/event-subscriptions/{id}— Webhook delivery URLs must usehttps://, as documented: creating or updating a subscription with anhttp://URL, or one that points at a private, link-local or cloud metadata address, is refused with 400.- Event subscription
createdAtandupdatedAtare documented as Unix epoch seconds (numbers), which is what update, reactivate and the catalog return. Webhook delivery historytimestampandcreatedAtare documented the same way. - An out-of-range
pageSizeor a negativepageon a list or search endpoint returns 400 with onlyerror(for examplepageSize must be an integer from 1 to 1000);codeandpathare 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 Hasuracurlexamples use/gql/v1/.... - The
POST /gql/v1/wipresponse keys are documented as tenant-specific: records under<tenant>_vw_wip_unifiedand 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 answers200withnullor an empty list rather than404, and a non-numeric id answers400.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 defaultpageSizeof 50, and the paginated list endpoints accept onlypageSizeandpage: to filter or sort, use the matching/searchendpoint, which takeswhereandorderBy.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.1type: [string, 'null'], in place ofnullable: 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, including207and422for partly or wholly failed code and entry upserts,409for a duplicate custom record type, the staff-type batch{succeeded, failed}body, and200with 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 needEVNT_SUB, the catalog needs no role, andentityTypeandoperationare 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 appliesdescriptionon its own, without resendingfields.- With a bearer token,
TenantandX-Tenant-IDheaders are ignored; withX-Aiwyn-Api-Key,/gql/v1/...paths ignore aTenantheader but/api/v1/...paths answer 403 when one is sent (the message does not name the header), andX-Tenant-IDis 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.
GET /api/v1/event-subscriptions,PATCH /api/v1/event-subscriptions/{id},POST /api/v1/event-subscriptions/{id}/reactivate— Subscriptions now includeeventEnabled, which isfalsewhen an administrator has disabled the subscription's event; such a subscription stays listed and editable but receives no deliveries, and reactivating it returns400until the event is re-enabled.POST /api/v1/clients/v1/link/payment— Sendmetadata(up to 20 string key-value pairs) when creating a payment link to get it back asmetadata.paymentLinkMetadataon everyPaymentwebhook event the link's payment raises.POST /api/v1/clients/v1/link/payment— SendexpiresInDays(7,14,30,60or90) when creating a payment link to choose how long it stays payable; links without it keep the 14-day default. Other values are rejected with400andextensions.details.reasonINVALID_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 includecustomFieldValues, an object of the record's custom field values keyed by field code (nullwhen none are set). Project responses also includecreatedAt.
- Product API endpoints now accept a JWT API key directly in the
X-Aiwyn-Api-Keyheader, so integrators can authenticate without first exchanging the key for a bearer token at/v1/auth/token. POST /api/v1/entries— For enabled tenants, aTimeEntryposted with hours inunitsand nobilledPerUnitgets 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 withRATE_NOT_FOUND, a locked entry withLOCKED;billedPerUnitsenders 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
403for an inactive role or a disabled firm) instead of when the bearer token expires. POST /api/v1/webhook/test/generateand/validatenow require theWEBHK_TSTpermission, which read-only keys already hold; a custom-scoped key without it gets403until an admin adds it.
POST /api/v1/clients/v1/link/payment—Paymentwebhook events no longer carrymetadata.paymentLinkPlId; match a payment to its link bymetadata.paymentLinkIdor by comparing the SHA-256 of theqpLinkvalue you received withmetadata.paymentLinkPlIdSha256.POST /api/v1/clients/v1/link/payment— A payment link that carries areturnUrlmust also name invoices (invoiceIdsorinvoiceNumbers) or anamount; otherwise the request answers 400 withextensions.details.reasonRETURN_URL_REQUIRES_OBLIGATIONand nothing is created.
POST /api/v1/clients/v1/link/payment— Sendmetadata(up to 20 string key-value pairs) when creating a payment link to get it back asmetadata.paymentLinkMetadataon thePaymentwebhook events the link's payment raises. Only the subscriptions of the API user that created the link receive it.
POST /api/v1/clients/v1/link/payment— Creating a payment link answers 403 withextensions.details.reasonQUICK_PAYMENT_LINKS_DISABLEDwhile quick payment links are not enabled for the firm. Nothing is created; Aiwyn enables quick payment links per firm.
POST /gql/v1/staff,POST /gql/v1/staff/search,GET /gql/v1/staff/{id}— Staff responses now includeserviceLine,subServiceLine,wageType,employeeType,permissionSet,staffSupervisor, andupdatedAt; the existingstaffTypeobject is renamed torole, so integrations readingstaffTypemust switch torole.
POST /gql/v1/payments,POST /gql/v1/payments/search,GET /gql/v1/payment/{id}— Payment responses now includeestimated_deposit_date(the projected date funds settle) andposted_to_bank_dt(when the payment was posted to the bank). Both are returned on the list, search, and get-by-id endpoints and arenulluntil known.POST /api/v1/clients/v1/link/payment— SendreturnAutomatically: trueto have the payment page return to your system on its own after the confirmation, navigating toreturnUrlwhen the link has one and closing a tab your system opened by script when it does not; the flag needs noreturnUrl, whilereturnLabelstill does.
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 returnssucceededandfailedlists keyed by request index. OmitpmsRefto create a new contact, omitclientsto update the contact only, or sendactive: falseto unlink a client.POST /api/v1/event-subscriptions,PATCH /api/v1/event-subscriptions/{id},POST /api/v1/event-subscriptions/{id}/reactivate— Payment subscriptions must setfilterExpressiontoownPaymentLinksOnly(payments through links the subscribing API user minted),paymentLinkOnly(any quick payment link) orallPayments(every payment); the last two need thePYMT_EVNT_ALLrole. 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 byclientRefand 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 newINVC_RandPAYLNK_Croles grant these two endpoints on their own, andAPI_ADMINkeeps granting them as before.
POST /api/v1/event-subscriptions/{id}/reactivate— Reactivating a webhook subscription now answers400when its storedfilterExpressionis no longer allowed for your roles and404when the subscription does not exist, instead of500with aFailed to reactivate event subscription:prefix on the message; endpoints that already answered404now list it in their spec.
POST /api/v1/clients/v1/onboard— Onboard a client with its ownaddressand an optionalbillingAddress(ISO alpha-2country, US states stored as abbreviations), saved exactly as the Firm Portal "Create New Client" dialog saves them; the response returns the newclientContactInfoIdandbillingAddressId.
GET /gql/v1/client_types,GET /gql/v1/tax_regions— Two read-only lookup endpoints for resolving theclientTypeIdand tax region values accepted by client onboarding (POST /api/v1/clients/v1/onboard). Both support basic page and pageSize pagination.
GET /gql/v1/engagement/{id},POST /gql/v1/engagements,POST /gql/v1/engagements/search— Engagement read responses now include the engagement'sclientIdand ajobsarray of linked jobs (id, name, status,clientId,pmsRef,jobRef,sysRefs, plus each link'sisActiveflag), so an engagement's client and jobs can be resolved without a separate lookup.