Ulkoasu
API Documentation
Technical documentation for developers integrating with the Fitor API.
UNSTABLE API
The Fitor API is currently UNSTABLE and may change without notice.
Breaking changes can occur at any time. We recommend:
- Not building production integrations without contacting us first
- Monitoring our changelog for updates
- Testing thoroughly after any system updates
Overview
Fitor provides a REST API for programmatic access to property management data and operations.
API Type
| Attribute | Value |
|---|---|
| Protocol | REST (JSON) |
| Authentication | OAuth 2.0 / Bearer Token |
| Format | JSON |
| Encoding | UTF-8 |
Route pattern
Every resource is namespaced by module and version:
/{module}/v{version}/{resource}For example /rental/v1/leases, /billing/v1/invoices. There is no single generic /api base path — the module name is part of every route.
Getting Access
Contact us at [email protected] with your organization name and your integration use case.
Authentication
All API requests require a Bearer token:
http
Authorization: Bearer <your_access_token>Tokens are issued by the OAuth endpoints, which are not module-namespaced:
| Endpoint | Purpose |
|---|---|
POST /oauth/token | Exchange a grant for an access token |
GET /oauth/authorize | Authorization-code flow |
GET /oauth/install | A customer's admin installs your partner app |
POST /oauth/revoke | Revoke a refresh token (RFC 7009) |
GET /.well-known/openid-configuration | OIDC discovery |
GET /.well-known/jwks.json | Signing keys |
GET /oidc/userinfo | Token holder's identity (Bearer required) |
Unattended integrations: partner apps
A partner app registered with Fitor is installed by a customer's admin through GET /oauth/install, which ends at your setup page with an installation_id. Your service then mints a one-hour token with grant_type=client_credentials, client_id, client_secret and that installation_id. The token reaches that one customer's REST operations, within the permissions the admin granted. Registration goes through Fitor; contact us. The authorization-code grant still exists, but it acts as the signed-in person rather than as the company. The whole flow, the access model, the limits and every error are on Partner apps.
POST /oauth/revoke authenticates your client as /oauth/token does. A token issued to your client is revoked only when the request carries your client_id (and client_secret for a confidential client); naming no client or another one answers 400 invalid_grant and leaves the token live. An unknown token answers 200. Wrong secrets count against the same limit at both endpoints: past it the answer is 429 slow_down with Retry-After, while your correct secret still authenticates from your own address.
GET /health is public and needs no token.
OpenAPI Schema
The OpenAPI 3.0 specification is self-serve — no request needed:
| Endpoint | Returns |
|---|---|
GET / | Interactive API reference |
GET /docs.json | Specification as JSON |
GET /docs.yaml | Specification as YAML |
All three are public. The specification covers every endpoint, request and response schema, and the authentication scheme.
Rate Limiting
Limits are per path class, not one global bucket. The one that applies to M2M integration routes is 120 requests per minute:
| Path | Limit |
|---|---|
/{module}/v1/* — the M2M surface | 120 / min |
/graphql | 300 / min |
/auth/v1/* | 60 / min |
/group/v1/* | 300 / min |
/ext/* — inbound webhooks, keyed per source IP | 120 / min |
The browser surfaces served over REST (/customer/v1/*, /employee/v1/*, /bureau/v1/* and /staff/v1/*) each count in a bucket of their own, so people using them never spend an integration's quota, and an integration never spends theirs.
Authentication endpoints carry their own stricter limits on top of these (for example login attempts per IP, and password-reset requests per email address).
A request over the limit gets 429 Too Many Requests with a Retry-After header (seconds to wait):
http
HTTP/1.1 429 Too Many Requests
Retry-After: 12json
{
"error": "rate_limited",
"errorCode": "RATE_LIMITED",
"message": "Too many requests. Retry after 12 seconds.",
"retryAfter": 12
}errorCode is present here for the same reason it is present on every other error: so an integration learns a 429 the same way it learns ACCESS_DENIED.
Collections
Response envelope
A collection response wraps its rows in data and its paging state in meta:
json
{
"data": [ { "id": "…" } ],
"meta": {
"pagination": {
"total": 137,
"page": 2,
"perPage": 25,
"totalPages": 6,
"hasNextPage": true,
"hasPreviousPage": true
}
}
}A single resource and a create response use the same envelope with an object: {"data": {...}}. A create returns 201.
Query parameters
| Parameter | Effect |
|---|---|
page | Page number |
limit | Rows per page. Each operation has its own default and its own clamped maximum |
sort | Sort fields, comma-separated; prefix a field with - for descending |
q | Free-text search |
<filter>From / <filter>To | Range bounds on a filterable field |
includeAggregations | true adds aggregation blocks to meta |
Which filters and sort fields an endpoint accepts is listed per operation in the OpenAPI specification.
Available Modules
Twenty-three modules publish REST resources. The most commonly integrated:
| Module code (route prefix) | Description |
|---|---|
rental | Properties, leases, tenants |
billing | Invoices, payments, accounts |
accounting | Vouchers, transactions, reports |
accounts-payable | Purchase invoices, payment proposals |
banking | Bank accounts and statements |
maintenance | Work orders, requests |
vendor | Supplier management |
document | Document templates and documents |
drive | File storage and sharing |
asset | Fixed asset register |
asoy | Housing-company data |
corporate | Companies, roster, KYC |
master-data | Parties |
product | Products and price lists |
messaging | Outbound messages |
workflow | Alert rules and notification channels |
audit | Event and change log |
The remaining module prefixes — auth, dashboard, shared, integration-customer-portal, integration-filesystem, integration-maventa, integration — follow the same pattern. Two further surfaces do not: /group/v1/* and /bureau/v1/* are cross-tenant routes declared outside the module scheme.
The complete, current list is always the OpenAPI specification at GET /docs.json.
Error Handling
HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 202 | Accepted — the command was queued, not yet applied |
| 204 | No Content |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 409 | Conflict — the resource is in a state that refuses the operation |
| 410 | Gone |
| 422 | Validation Error |
| 429 | Rate Limited |
| 500 | Server Error |
Error Response Format
Errors use the RFC 7807 Problem Details member names. The response media type is application/json, not application/problem+json:
json
{
"type": "https://fitor.fi/errors/validation",
"title": "Validation Error",
"status": 422,
"detail": "The request contains invalid data.",
"errorCode": "VALIDATION_FAILED",
"violations": [
{
"propertyPath": "email",
"message": "This value is not a valid email address.",
"code": "VALIDATION_FAILED"
}
]
}errorCode is the stable machine-readable identifier to key integration logic on — title/detail/message are English prose for developers and may change wording without notice.
A violation's code is a stable UPPER_SNAKE_CASE identifier where the field declares one. Where it does not — most built-in format and range checks — the code is reported as VALIDATION_FAILED and propertyPath is what identifies the field. Do not expect a per-format code such as INVALID_EMAIL.
Some responses carry two further members: metadata, whenever the refusal has structured context to give, and trace, only outside production.
Webhooks
There is no general event-stream webhook. What exists is a notification channel of type WEBHOOK attached to an alert rule: when the rule's trigger fires, Fitor posts to your URL. Channels and rules are configured through the API itself, under the workflow module — no email step.
The trigger vocabulary is mostly threshold- and schedule-shaped rather than event-shaped, so check the available triggers before designing around one. Examples of what does and does not exist:
| You may want | Available trigger |
|---|---|
| Payment received | billing.payment.received |
| Invoice overdue | billing.invoice.overdue |
| Fixed-term lease ending (60 and 14 days before) | rental.lease.expiring |
| Lease expired | no trigger |
| Maintenance request completed | rental.maintenance.completed |
| Work order overdue | maintenance.work_order.overdue |
| Invoice created, invoice paid | no trigger |
| Lease signed, lease terminated | no trigger |
| Work order completed | no trigger — only the request-level trigger above |
Inbound webhooks from your side arrive on /ext/*, which is unauthenticated and rate-limited per source IP.
Support
Technical Support
For API-related questions:
- Email: [email protected]
- Response time: 1-2 business days
Changelog
API changes are communicated via:
- Email to registered developers
- Changelog in the API documentation
Creates that took an ignored id
Five commands that create a record took an {id} in their route, but the server ignored it and minted its own. They now sit on the collection, take no id, and answer the id they created in data:
| Command | Old route | New route |
|---|---|---|
| Schedule an inspection | POST /rental/v1/inspections/{id}/schedule | POST /rental/v1/inspections/schedule |
| Draft a contract | POST /rental/v1/contracts/{id}/draft | POST /rental/v1/contracts/draft |
| Submit a lease application | POST /rental/v1/lease-applications/{id}/submit | POST /rental/v1/lease-applications/submit |
| Assign an apartment's billing contact | POST /asoy/v1/apartment-billing-contacts/{id}/assign | POST /asoy/v1/apartment-billing-contacts/assign |
| Run an asoy fee charge run | POST /asoy/v1/asoy-fee-charge-runs/{id}/run | POST /asoy/v1/asoy-fee-charge-runs/run |
The id of a newly created party (POST /master-data/v1/parties/organization and POST /master-data/v1/parties/person) is in data.
Creates that take what their update takes
Creating an invoice takes the header fields only its details update used to take, so the draft no longer needs a second call: period, textBeforeLines, textAfterLines, paymentTermDays, paymentTermName, eventDate, postingDate, valueDate and creditorReferenceFormat. Each behaves as it does on the update: paymentTermDays computes the due date from the invoice date and overrides dueDate, and a period that ends before it starts is refused. eventDate defaults to the invoice date. When postingDate is given, that is the date the books must accept an entry on, so a posting date in a closed or missing fiscal year is refused at create with BILLING_INVOICE_PERIOD_CLOSED or BILLING_INVOICE_NO_FISCAL_YEAR.
Creating an accounting book takes vatFilingCadence; omitted, it is automatic.
Terms of Use
By using the Fitor API, you agree to:
- Use the API only for authorized purposes
- Not exceed rate limits
- Not attempt to access unauthorized data
- Maintain security of your credentials
Contact Us
For API access, documentation, or support:
Email: [email protected]
Include:
- Your organization name
- Intended use case
- Contact information