Versioning

The API is versioned in the path: every route lives under /v1, for example https://api.groupapp.co.il/v1/bots. Inside /v1 changes are additive only. A change that is not additive ships under a new version prefix, and /v1 keeps working until it is retired under the policy below.

What is additive

These can appear in /v1 at any time, without notice:

  • new routes
  • new optional request parameters (query, header or body)
  • new fields in a response body
  • new values in an enum (for example a new status, source or media value)
  • new webhook event types, and new fields in a webhook data object
  • new problem code values

So write your client to be tolerant:

  • Ignore response fields you do not know. Do not fail on them.
  • Treat an unrecognised enum value as "something else" and keep working, not as an error.
  • Ignore webhook event types you do not handle: acknowledge them with a 2xx.
  • Fall back on the HTTP status when a problem code is one you do not know.

What is breaking

These never happen inside /v1:

  • removing or renaming a field or a route
  • adding a required parameter
  • changing the type of a field
  • removing an enum value
  • tightening validation, so that a request that was accepted is now refused
  • changing authentication requirements

Retirement policy

When a route, or a whole version, is going to be retired, its responses carry:

  • Deprecation (RFC 9745): when it was deprecated.
  • Sunset (RFC 8594): when it will stop working.
  • Link with rel="deprecation": where the migration notes are.

Watch for these headers in your client logs. No route is deprecated today, and no route sends these headers yet.

The OpenAPI document

GET https://api.groupapp.co.il/v1/openapi.json returns the machine-readable contract of the public routes as OpenAPI 3.1 (info.version is 1). It needs no API key. It lists paths, parameters, response schemas and the problem responses each route can return. Use it to generate a client or to check a response shape; this documentation explains behaviour that the schema cannot.

curl -s https://api.groupapp.co.il/v1/openapi.json | jq '.paths | keys'