Skip to content

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 ​

AttributeValue
ProtocolREST (JSON)
AuthenticationOAuth 2.0 / Bearer Token
FormatJSON
EncodingUTF-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:

EndpointPurpose
POST /oauth/tokenExchange a grant for an access token
GET /oauth/authorizeAuthorization-code flow
GET /oauth/installA customer's admin installs your partner app
POST /oauth/revokeRevoke a refresh token (RFC 7009)
GET /.well-known/openid-configurationOIDC discovery
GET /.well-known/jwks.jsonSigning keys
GET /oidc/userinfoToken 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:

EndpointReturns
GET /Interactive API reference
GET /docs.jsonSpecification as JSON
GET /docs.yamlSpecification 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:

PathLimit
/{module}/v1/* — the M2M surface120 / min
/graphql300 / min
/auth/v1/*60 / min
/group/v1/*300 / min
/ext/* — inbound webhooks, keyed per source IP120 / 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: 12
json
{
  "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 ​

ParameterEffect
pagePage number
limitRows per page. Each operation has its own default and its own clamped maximum
sortSort fields, comma-separated; prefix a field with - for descending
qFree-text search
<filter>From / <filter>ToRange bounds on a filterable field
includeAggregationstrue 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
rentalProperties, leases, tenants
billingInvoices, payments, accounts
accountingVouchers, transactions, reports
accounts-payablePurchase invoices, payment proposals
bankingBank accounts and statements
maintenanceWork orders, requests
vendorSupplier management
documentDocument templates and documents
driveFile storage and sharing
assetFixed asset register
asoyHousing-company data
corporateCompanies, roster, KYC
master-dataParties
productProducts and price lists
messagingOutbound messages
workflowAlert rules and notification channels
auditEvent 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 ​

CodeMeaning
200Success
201Created
202Accepted — the command was queued, not yet applied
204No Content
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict — the resource is in a state that refuses the operation
410Gone
422Validation Error
429Rate Limited
500Server 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 wantAvailable trigger
Payment receivedbilling.payment.received
Invoice overduebilling.invoice.overdue
Fixed-term lease ending (60 and 14 days before)rental.lease.expiring
Lease expiredno trigger
Maintenance request completedrental.maintenance.completed
Work order overduemaintenance.work_order.overdue
Invoice created, invoice paidno trigger
Lease signed, lease terminatedno trigger
Work order completedno 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:

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:

CommandOld routeNew route
Schedule an inspectionPOST /rental/v1/inspections/{id}/schedulePOST /rental/v1/inspections/schedule
Draft a contractPOST /rental/v1/contracts/{id}/draftPOST /rental/v1/contracts/draft
Submit a lease applicationPOST /rental/v1/lease-applications/{id}/submitPOST /rental/v1/lease-applications/submit
Assign an apartment's billing contactPOST /asoy/v1/apartment-billing-contacts/{id}/assignPOST /asoy/v1/apartment-billing-contacts/assign
Run an asoy fee charge runPOST /asoy/v1/asoy-fee-charge-runs/{id}/runPOST /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