The API opens resource by resource. The reference lists the operations released so far; each guide says plainly what is still coming.
At a glance
-
One address, no version in the path:
https://api.myleapp.fr, for exampleGET /organizations/{id}/products. -
JSON in, JSON out; an API key in
Authorization: Bearer …. -
Every error is
{code, context, error, request_id}: your program readscode, a person readserror, in English or French. -
Changes are additive; the rare breaking change is opt-in through
the
Myle-API-Versionheader and announced six months ahead in the changelog. - The OpenAPI document describes every released operation: https://api.myleapp.fr/openapi.json.
Available resources
What the reference lists today, each under the right it takes (an operation marked « session » there is refused to a key: it opens a page the user signs on themselves).
| Resource | What you can do |
|---|---|
| Your account, the organization |
Who the credential is (GET /me), the rights
catalog (GET /rights), the organization
(GET /organizations/{id}), user keys and
organization keys.
|
| Products |
List, search, create, change, delete; their tags, barcodes and
neighbors in a list; GET /products across every
organization the credential reads.
|
Customers (companies) |
The same, with their e-mail and postal addresses;
GET /companies across organizations.
|
| Invoices |
Drafts and their edit, validation, the PDF and the Factur-X,
sending by e-mail, share, lost and unpaid, credit notes and
their corrections, re-billing, the status history, tags;
batches of validation, share, payments, credit notes and
duplicates, one result per invoice, and what each batch would
act on; GET /invoices across organizations.
|
| Quotations |
List, read (JSON or PDF), create, change, delete; their lines'
edit while nobody has seen them, share, accept, cancel, extend,
sending by e-mail, billing as an invoice, the status history,
tags; batches of share and acceptance, and what each would act
on; GET /quotations across organizations.
|
| Orders |
List, read (JSON or PDF), create, change, delete; their lines'
edit while nobody has seen them, share, confirm, prepare,
cancel, sending by e-mail, the status history, tags; the stock
lots a delivery can take, then the delivery (a delivery note,
its lines per lot, the stock moved) and the billing, with the
lots too; batches of share and confirmation, and what each would
act on; a quotation turned into an order, one or a batch;
GET /orders across organizations.
|
| Delivery notes | Read one: the goods handed to a customer and the lots they left from, with the order and the invoice it is linked to. |
| Payments | The payments of an invoice: record, list, remove; its payment status. |
| E-invoicing | The organization's connection to the network and its electronic address, a customer's routing, an invoice's e-invoice and its submission, the failed submissions, the incoming e-invoices and the decisions on them (accept, refuse, dispute, mark paid). |
| Online payment and SEPA (Stripe) | The organization's Stripe account and online payment, a customer's SEPA mandate (invite, revoke), the SEPA debit and the refund of an invoice, the fees and the quota. |
The other Myle modules (quotations, orders, delivery notes, stock, accounting…) are not in the API yet: the changelog announces each one.
Guides
- 1. Getting startedCreate a key, make your first call, read the answer.
- 2. AuthenticationUser keys and organization keys, rights, rotation, revocation.
-
3. ConventionsIds, money, dates, enums,
null, headers. -
4. ErrorsThe envelope, the codes,
request_idand support. -
5. Pagination, filters and delta syncCursors, filters, sorting,
updatedAfter. -
6. WritesIdempotency keys,
ETagandIf-Match, batches, jobs. -
7. Rate limitsPolicies, headers, backing off on
429. -
8. Versioning
Myle-API-Version, deprecation, sunset, the changelog. - 9. RecipesAccounting export, e-shop orders, CRM sync, from a quotation to its invoice.
SDKs and tools
Not published yet. The SDKs, the CLI and the MCP server below are written and tested, but none is on its registry yet: there is nothing to install today. The names are the ones they will take at their first release, announced in the changelog; the links lead to their future page on each registry, not found until then.
The SDKs are generated from the OpenAPI document, one per language.
Each sends Myle-API-Version, retries 429 and
503 after Retry-After, sets an
Idempotency-Key on every write that takes one and follows
the cursors for you; one error class per code. The guides' tabs show
their examples in each of them.
| Language or tool | Planned name | For |
|---|---|---|
| TypeScript, JavaScript | @myleapp/myle (npm) | Node 20 or later |
| Python | myle (PyPI) | Python 3.11 or later |
| Go | github.com/myleapp/myle-go | Go 1.23 or later |
| Rust | myle (crates.io) | Rust 1.89 or later |
| Java | fr.myleapp:myle (Maven Central) | Java 17 or later |
| Scala | fr.myleapp::myle-scala (Maven Central) | Scala 3 and 2.13, JDK 17 or later |
| PHP | myleapp/myle (Packagist) | PHP 8.2 or later |
| C#, .NET | Myle (NuGet) | .NET 8 |
| Command line | myle (binaries on GitHub, myle-cli on crates.io) |
Linux, macOS, Windows; see the Command line guide |
| MCP server | @myleapp/myle-mcp (npm) |
Claude and any MCP client: one tool per API operation |
Meanwhile, the API is plain HTTP from any language (the guides' “HTTP (curl)” tab), and the OpenAPI document generates your own client. For a coding assistant, llms.txt sums up the API.