Skip to content

Facteur for developers

Facteur receives the emails your application sends in a test, and keeps them in an inbox. Receiving text messages is not yet in service. The API lets a script or a test suite list those inboxes, read and search the messages in them, and download their attachments, with no browser open.

An API key belongs to your organization, not to a person, so it keeps working when whoever created it leaves. You have to be an owner or an administrator of the organization to create one.

  1. Open Settings, then API keys, in the Facteur app, and choose Create a key.
  2. Give it a name, pick what it can do and which workspaces it reaches, then pick a duration of 30, 90, 180 or 365 days.
  3. Copy the key as soon as it appears. Facteur keeps only a hash of it, so the key is shown once and cannot be shown again.

A read-only key is enough for a test suite.

Every request carries the key in the Authorization header:

Terminal window
curl -H "Authorization: Bearer fk_your_key" https://api.facteur.eu/inboxes

A key can make 600 requests per minute. Past that, the API answers 429 with a Retry-After header.

The reference is also available as a document, public.json, and as a Postman collection, public.postman.json.

No SDK and no plugin for Playwright or Cypress is published yet. From a test suite, you call the API over HTTP.

Facteur does not promise yet that the API stays as it is. The reference below describes the API of the day, and the address of a route carries no version.