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.
Get an API key
Section titled “Get an API key”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.
- Open Settings, then API keys, in the Facteur app, and choose Create a key.
- 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.
- 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.
Call the API
Section titled “Call the API”Every request carries the key in the Authorization header:
curl -H "Authorization: Bearer fk_your_key" https://api.facteur.eu/inboxesA key can make 600 requests per minute. Past that, the API answers 429 with a Retry-After header.
Guides
Section titled “Guides”The reference is also available as a document, public.json, and as a Postman collection, public.postman.json.
What is not published yet
Section titled “What is not published yet”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.