# Aiwyn API documentation

## Build financial automations, fast

A modern, secure API for invoices, payments, clients, projects, and more.
Get started →
## Documentation

| Environment | URL | Notes |
|  --- | --- | --- |
| **Development** | [https://dev.docs.aiwyn.ai](https://dev.docs.aiwyn.ai/) | Reflects the latest development branch |
| **Production** | [https://docs.aiwyn.ai](https://docs.aiwyn.ai/) | Current production documentation |
| **Production** *(legacy)* | [https://api.doc.aiwyn.ai](https://api.doc.aiwyn.ai) | **Deprecated, and retired by 2027.** Update your bookmarks to `docs.aiwyn.ai`. |


## What you can build

### 📊 Financial dashboards

Pull clients, invoices, payments, WIP, and time into your own reporting.
### 🤖 Automation workflows

Onboard clients and staff, create engagements and projects, and record time from your own systems.
### 🔗 System integrations

Connect Aiwyn with your CRM, ERP, project management, and accounting systems.
## Key capabilities

🔒
Enterprise-grade security
JWT API keys, short-lived bearer tokens, and role-based permissions per key.
🔔
Event-driven
Signed webhooks tell your system when payments, engagements, files, and more change.
📈
Designed for scale
Pagination, filtering, and search that handle large datasets.
🧩
Composable
Consistent resource models for clients, invoices, payments, and projects.
## Support

Questions, credentials, or feedback? Email [api-support@aiwyn.ai](mailto:api-support@aiwyn.ai).

## What's new

- **`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.


[Full changelog →](/changelog)

### Ready to build?

Start building →