API & webhooks
API documentation and examples
Overview
The reference for the Kyvento REST API is generated directly from the API source code and is publicly available at apidocs.kyvento.com; it is updated with every release of the application. This article gives you orientation on what the reference contains and how to reach your first successful request as quickly as possible.
What the reference contains
- All public endpoints with parameters, validation rules and complete example responses β grouped by area (customers, subscriptions, invoices, payments, webhooks, β¦).
- Example calls for each endpoint, ready to adopt directly.
- Fundamentals chapters on authentication, webhook events and signatures, retry behavior and pagination.
- The machine-readable OpenAPI 3 specification, which lets you import the entire API into tools like Postman or Insomnia, or generate client code for your programming language.
Your first request in three steps
- Create a token: Settings β "API Tokens" β "New Token" (for the start, "Read only" is enough) β details in the article Setting up API access and creating an API key.
- Send a test call: for example, retrieve your own customer list:
curl -H "Authorization: Bearer YOUR_TOKEN" https://app.kyvento.com/api/v1/customers - Check the response: you receive JSON with a
dataarray and ametablock for pagination.
API conventions
- Versioning: all endpoints live under
https://app.kyvento.com/api/v1/. Fields and formats can change within this version too. Endpoints and fields are described in the reference at apidocs.kyvento.com, updated with every release; for the envelope and headers of webhook deliveries, the article Configuring webhooks applies. - Response format: JSON; lists come as
data+meta(page size, further pages, cursor). - Errors: meaningful HTTP status codes plus a machine-readable
error_codein the body β build your error handling on theerror_code, not on message texts. This also applies when Kyvento rejects a reusedIdempotency-Keywith changed request content (422,error_code:IDEMPOTENCY_KEY_MISMATCH); the older fieldcode(idempotency_key_body_mismatch) is still included there. - Language: token responses are consistently in English β ideal for logging and stable evaluations.
- Timestamps: timestamps in ISO 8601 format with a time-zone offset; pure calendar dates (such as the invoice date) as a date without a time.
Recommended getting-started path
- Get familiar with read endpoints (retrieving customers, subscriptions, invoices).
- Set up webhooks instead of searching for changes through constant polling β see Configuring webhooks.
- Only then tackle write operations β with the guidance from API rate limits and best practices.
Next steps
- Access and permissions β see Setting up API access and creating an API key
- Limits, idempotency and pagination β see API rate limits and best practices