Custom interfaces
The Interfaces tab of Settings → Connectors lets a workspace administrator connect FoxPlan to another system (ERP, payroll tool, CRM, in-house tool…) without custom development and without leaving the application.
The tab is reserved for workspace or FoxPlan account administrators. The feature is opened instance by instance: if the tab says it is not open, contact FoxPlan.
Principle
An interface is a definition: a sequence of steps (read from FoxPlan, call the other system, transform, loop). This definition is executed identically every time by an engine built into FoxPlan.
AI is only involved at design time, to propose a definition. A published interface always runs without AI: same data, same calls.
The four sub-tabs
| Sub-tab | Purpose |
|---|---|
| Interfaces | List of interfaces, state, last run, enabling, immediate run |
| Monitoring | Counters by status, suspended interfaces and all recent runs of the workspace, refreshed automatically |
| Connections | Address and authentication of third-party systems |
| Mapping tables | Values of one system matched with those of the other, read by $map |

Creating an interface
- In Connections, declare the third-party system:
httpsbase URL and authentication mode (none, Bearer token, API key in a header, username and password, OAuth 2.0). The secret is encrypted and never displayed again. - In Interfaces, click New interface, name it and choose its third-party system.
- Write the definition in the editor, or describe your need to the AI assistant, pasting the third-party documentation if possible (OpenAPI/Swagger excerpt, Postman collection). Review the proposal before putting it in the editor. The AI writes the interface's documentation at the same time.
- Validate checks the definition and reports each error on its step.
- Dry run executes the draft: reads are really sent, writes are only displayed.
- Publish freezes a version. Then enable the interface in the list.
A published interface runs with the rights of the administrator who published it, through the FoxPlan API: it cannot do more than that person can.

OAuth 2.0 authentication
When the third-party system issues short-lived access tokens, choose the OAuth 2.0 (token renewed automatically) authentication in the connection. FoxPlan obtains the token from the authorization server, reuses it while it is valid and renews it on its own: nothing has to be done between two runs.
| Setting | Role |
|---|---|
| Authorization server address | Address where the token is obtained (token endpoint), in https |
| How the token is obtained | Client credentials (client_credentials) for a server-to-server exchange, or Refresh token (refresh_token) |
| Client identifier and Client secret | Provided by the third-party system when the application is registered |
| How client credentials are sent | In the Authorization header (general case) or in the request body, depending on what the server requires |
| Scope and Audience | Optional, to be filled in if the third-party system asks for them |
| Refresh token | In Refresh token mode only: obtained once from the third-party system |

Save and test really requests a token and tells whether the authorization server accepts these settings. The token itself is never displayed.
Good to know:
- The token is renewed shortly before it expires. If the third-party system refuses it anyway (
401response), FoxPlan requests a new one and replays the call once. - If the authorization server hands out a new refresh token at each exchange (rotation), FoxPlan stores it in place of the old one.
- The client secret and the refresh token are encrypted and never displayed again.
- The interactive flow ("Sign in with…", authorization code) is not supported: an interface runs with nobody in front of a screen. For a system that requires it, obtain a refresh token once with the third-party system's tool, then paste it into the connection.
- If the authorization server refuses the credentials, the run fails with the reason returned by the server; after several failures in a row, the interface is suspended and the email alert is sent.
Trigger
| Type | Use |
|---|---|
manual | On-demand run, from the screen |
schedule | 5-field cron expression and time zone; at least 5 minutes between two runs |
event | On a FoxPlan event: tasks, project objects, tickets, comments, timesheets |
webhook | The third-party system calls the interface address; its payload is in event.body |
Event payloads
Every event arrives in event with the same envelope: event.type, event.occurredAt, event.environmentId and event.actor (id, name, email), the author of the action. Depending on the event, it also carries:
| Events | Content |
|---|---|
task.status-changed, task.owner-changed, task.planning-assignment-changed, task.progress-changed | project (id, name, code), task, and previous: the task as it was before the change |
task.comment-added | project, task and comment (author, text) |
project-object.created, project-object.updated, project-object.deleted | project (id, name) and object: its kind in kind (risk, decision, requirement, change, file, report), id, name, status and all its fields in attributes. For an update, previous carries the object before |
support.created, support.status-changed | support (id, number, name, status, owner, priority, description, attributes). For a status change, previous.status |
object.comment-added | object or support depending on what is commented, and comment (author, text) |
timesheet.saved, timesheet.approved | See Timesheet events |
A task status change, for example:
{
"type": "task.status-changed",
"occurredAt": "2026-09-14T09:30:00Z",
"actor": { "id": "u-1", "name": "Jane Doe", "email": "jane.doe@example.com" },
"project": { "id": "p-1001", "name": "Projet Alpha", "code": "AFF-0012" },
"task": {
"id": "t-2001",
"name": "Conception",
"status": 1,
"owner": "u-7",
"priority": 2,
"startDate": "2026-09-01T00:00:00Z",
"endDate": "2026-09-30T00:00:00Z",
"percentComplete": 40
},
"previous": { "id": "t-2001", "status": 0, "owner": "u-7", "percentComplete": 40 }
}
- Dates are ISO 8601 texts in UTC. A calendar date (start, end, deadline) is at midnight UTC: its first ten characters give the day, whatever the time zone.
statusandpriorityare ranks in the lists of the workspace,owneris the FoxPlan identifier of the user. Translate them with a mapping table.- The fields of a project object or a ticket depend on the workspace configuration:
attributesdelivers all of them, under their technical name.
For the dry run, an Insert an example button appears under the sample payload for each event listened to. It fills it with a fictitious payload that has the exact shape of a real one: an interface tuned on it reads the same fields on a real event.

Timesheet events
Two events let you push actuals to an ERP, a payroll or an invoicing tool without waiting for a schedule:
| Event | Emitted when | Content |
|---|---|---|
timesheet.saved | An entry is saved in the timesheet | The day or days touched, complete: all the tasks of the resource on that day |
timesheet.approved | A timesheet is approved | All the actuals of the period, and its bounds in event.period |
The payload received in event:
{
"type": "timesheet.approved",
"resource": { "id": "u7", "email": "ana.martin@example.com" },
"period": { "start": "2026-08-01", "end": "2026-08-31" },
"entries": [
{
"date": "2026-08-03",
"days": 0.5,
"removed": false,
"comment": "…",
"project": { "code": "AFF-0012", "name": "Projet Alpha" },
"task": { "id": "t1", "code": "L-3", "name": "Conception" }
}
],
"totalDays": 0.5
}
entriescarries one line per day and per task. Loop over it with aforEachstep.daysis in person-days. Dates use theyyyy-MM-ddformat.removedistruewhen the cell has been emptied (daysis thennull): the line already sent to the third-party system must be removed, not ignored. Handle this case withwhen.- The project and the task come with their code: it is what matches the job code or the line in the third-party system. When no code has been entered,
codeisnull, for the project and for the task alike. timesheet.savedis emitted at every save: the interface must be able to replay the same day without creating a duplicate (store the external identifier with$xref). For a single push per period, prefertimesheet.approved.
For the dry run, the Insert an example button fills the sample payload with typical actuals.
A write made by an interface itself never triggers another interface.
Example
Every night, create or update one job per project in the third-party system. The cross-reference table (xref) stores the other system's identifier: a replay updates instead of creating again.
{
"schemaVersion": 1,
"trigger": { "type": "schedule", "cron": "0 5 * * *", "timezone": "Europe/Paris" },
"steps": [
{ "id": "lire", "type": "foxplan.request", "method": "GET", "path": "/api/me/projects", "into": "projets" },
{ "id": "boucle", "type": "forEach", "items": "projets", "key": "item.id", "steps": [
{ "id": "maj", "type": "http.request", "when": "$known(item.id)", "method": "PUT",
"path": "/affaires/{{$xref(item.id)}}", "body": "{ 'label': item.name }" },
{ "id": "creer", "type": "http.request", "when": "$known(item.id) = false", "method": "POST",
"path": "/affaires", "body": "{ 'label': item.name }",
"xref": { "key": "item.id", "value": "response.body.id" } }
]}
]
}
Steps and expressions
| Step | Purpose |
|---|---|
foxplan.request | Calls the FoxPlan API (path starting with /api/) |
http.request | Calls the third-party system; the path is relative to the connection address |
transform | Computes a value and stores it in a variable |
filter | Skips the current loop item, or ends the interface outside a loop |
forEach | Repeats steps for each item of a list |
stop | Ends the interface, with a message ({{…}} template allowed, for example {{$count(projets)}} projects uploaded) |
file.write | Drops a CSV or JSON file on the SFTP server |
file.read | Reads a CSV or JSON file, then keeps, deletes or archives it |
file.list | Lists the files of a directory, sorted by name |
Every step accepts when, an execution condition. Expressions are JSONata. Added functions: $xref(key), $known(key), $map('table', key), $serverDate(value) (calendar date in FoxPlan format) and $day(value) (yyyy-MM-dd). $now(), $millis() and $random() are refused: use run.startedAt.
A read can be paginated (pagination, modes page, offset or cursor).
Mapping tables
A mapping table matches a value of one system with a value of the other: statuses, project codes, absence types. You maintain it yourself in the Mapping tables sub-tab, row by row or by pasting two columns from a spreadsheet.
In an interface, $map('erp_statuses', value) returns the associated value. For a missing key, the table returns its default value, or nothing if it has none. A table referenced in a definition but missing from the workspace is reported at validation.
A change to a table applies from the next run. A table's name is used in definitions: changing it breaks the interfaces that read it.

File exchanges (SFTP)
When the third-party system does not expose an API but exchanges files, declare a connection of type Files (SFTP): FoxPlan connects to the third party's SFTP server to drop or read files there.
Declaring the connection
In Connections, choose the type Files (SFTP) and enter the server, port, username, then a password or a private key (with its passphrase if any). The base directory bounds what interfaces can read and write.
The server fingerprint is mandatory: FoxPlan checks it before sending any credentials, and refuses the connection if it does not match. Ask the third party for it. Otherwise, Save and test displays the one the server presents: compare it with the one you were given before using it.

File steps
An interface attached to an SFTP connection uses the file.write, file.read and file.list steps instead of http.request. Example: drop the list of projects every night.
{
"schemaVersion": 1,
"trigger": { "type": "schedule", "cron": "0 5 * * *", "timezone": "Europe/Paris" },
"steps": [
{ "id": "lire", "type": "foxplan.request", "method": "GET", "path": "/api/me/projects", "into": "projets" },
{ "id": "ecrire", "type": "file.write", "format": "csv", "content": "projets",
"path": "export/projets-{{$substring(run.startedAt, 0, 10)}}.csv",
"columns": [
{ "header": "Code", "value": "row.code" },
{ "header": "Nom", "value": "row.name" },
{ "header": "Debut", "value": "$day(row.startDate)" }
] }
]
}
- Writing: the file is uploaded under a temporary name and then renamed. The third-party system never sees an incomplete file.
- Reading:
"missing": "skip"continues without error if the file is absent;"after": "move"with"moveTo"archives the file once read,"after": "delete"removes it. - CSV:
;delimiter by default ("delimiter"), header row first ("header": falseto do without), UTF-8, optional byte order mark ("bom": true). On reading, each row is an object whose fields carry the column headers. - Formats: a cell is text. Dates and decimals are written as the definition says (
$day(...),$replace(...)), never according to a user's profile. - Dry run: files are read, but nothing is uploaded, moved or deleted. A preview of the file that would be written is shown.
A file is limited to 20 MB and 200,000 rows.
Inbound webhook
With the webhook trigger, the third-party system calls FoxPlan:
- Save the interface with
"trigger": { "type": "webhook" }. - In the interface page, click Generate the address. The address is displayed only once: copy it into the third-party system right away. Replace the address invalidates the old one.
- Optionally add a protection: a secret the third-party system presents in a header, or an HMAC-SHA256 signature of the body (hexadecimal,
sha256=prefix accepted). - Publish and enable the interface.
The third-party system calls the address with POST. FoxPlan answers at once and runs the interface in the background; calls to the same interface are processed in order of arrival.
| Response | Meaning |
|---|---|
202 | Call accepted, run queued |
401 | Invalid secret or signature |
404 | Unknown address |
409 | Interface disabled, suspended or not published |
413 | Payload larger than 1 MB |
429 | More than 120 calls per minute |
In the definition, the received body is in event.body, URL parameters in event.query and x-… headers in event.headers. For the dry run, paste a sample body into Sample payload.
Monitoring and incidents
- An error on one record is logged and the run continues: the status is then Partial, and the run detail lists each failed record.
- An error outside a loop, a timeout or an exceeded cap makes the run Failed.
- After 5 consecutive failures, the interface is suspended. Fix the cause, then enable it again.
- History is kept for 60 days.
Email alerts
When an interface is suspended, FoxPlan sends an email with the reason and a link that opens the interface directly.
- For all interfaces of the workspace: in the Monitoring sub-tab, enter one or more addresses under Email alerts.
- For one interface in particular: on its page, add addresses under Also notify by email, for this interface. They are added to those of the workspace.
Addresses do not have to belong to FoxPlan users: a team mailbox or an operations contractor will do. Separate them with a comma (20 at most per list).
If no address is entered, for the workspace or for the interface, the alert is sent to the workspace administrators and to the account that published the interface.
Each recipient receives the email in their own language. An address without a FoxPlan account receives it in the workspace documentation language or, failing that, in the language of the account that published the interface. Recipients who have an account are also notified in the application bell.

Versions
Each publication creates an immutable version. The Versions tab lets you view a version, load it into the editor or put it back in use.
Documenting an interface
Each interface carries its own functional and technical documentation, in the Documentation tab of its page. It can be read, edited, exported and printed without leaving the screen.

The document brings together two kinds of content:
| What you write | What is taken from the definition | |
|---|---|---|
| Functional view | Purpose, scope, business rules, owners (business, technical, contact on the third-party side) | Trigger: manual, schedule and time zone, events listened to, webhook |
| Technical view | Prerequisites and assumptions, error handling and recovery, notes | Connected systems, steps in order, exchanged data, mapping tables used, engine tolerances and limits, run-as account |
The part taken from the definition is labelled from the definition. It is read again every time it is displayed and is not typed in, so it cannot lag behind the interface. Once a version is published, you choose whether to describe the version in service or the editor draft.
Edit opens the form of the written sections; Save documentation saves them on their own. Documenting an interface in service does not republish it and changes nothing in what runs. At each publication, the documentation of that moment is kept with the version.
One language per workspace
All interfaces of a workspace are documented in the same language, chosen in Documentation language, at the top of the interface list. The whole document is produced in that language — written text, AI proposals and the parts taken from the definition — whatever the profile language of the reader. Until someone chooses, it is the language of the administrator who writes.
Changing the language does not translate text already written: only the parts taken from the definition follow at once.
Writing with AI
- When the AI assistant proposes an interface, it also writes its documentation. It appears below the definition in the proposal; when you accept, the editor and the Documentation tab are filled together.
- For an interface already written, Write with AI proposes the text of the sections from the definition on screen.
In both cases nothing is saved before you review it, and Back to the previous text cancels the proposal. The AI completes existing documentation without erasing what you wrote, and never fills in the owners for you.
Exporting the document
- Export as Markdown downloads the complete document as a
.mdfile. - Export as Word downloads the same document as a
.docxfile, ready to paste into an operations file or an interface specification: headings are real Word headings, picked up by the navigation pane and the table of contents. - Print / PDF opens the browser's print dialog on the document alone; choose "Save as PDF" to get a PDF.
The documentation also travels with the interface in the export file. On import, a new interface receives it; for an interface already present, only the sections still empty are filled in.
Export and import
To move an interface from a test workspace to production, or from one instance to another:
- In the source workspace, click Export, tick the interfaces and download the file. It contains the definitions, connections and mapping tables used.
- In the target workspace, click Import and choose the file. A preview shows what will be done, without writing anything.
- Confirm: the interfaces arrive as drafts. Enter the secrets of the new connections, run a dry run, then publish and enable.
The file contains no secret, no webhook address, no history and no identifier of your instance.
| Item | If it does not exist in the target workspace | If it already exists (same name) |
|---|---|---|
| Connection | Created, without secret | Kept as is, address included |
| Mapping table | Created | Completed: missing keys are added, existing values kept |
| Interface | Created as a draft | Its draft is replaced; the published version keeps running |
Import never publishes or enables anything. The preview also flags identifiers hard-coded in a definition (they point to objects of the source instance) and webhook addresses that must be generated again.
The secrets of a connection (including the OAuth 2.0 client secret and refresh token) are never exported: an imported OAuth 2.0 connection arrives in Client credentials mode, to be completed in the target workspace.
Limits
| Limit | Default | Maximum |
|---|---|---|
| Records processed per run | 5,000 | 50,000 |
| Run duration | 5 min | 30 min |
| Pages read per paginated step | 100 | 1,000 |
Third-party systems must be reachable over https at a public address.
Self-hosted installation (on premise)
Two FoxPlan server settings concern interfaces. They are set by environment variable and only apply to installations you host yourself.
| Variable | Default | Purpose |
|---|---|---|
INTEGRATION_ALLOW_PRIVATE_ADDRESSES | false | When true, allows connections (http or https API, SFTP) to private or internal addresses. Needed when the third-party system is on your internal network. |
INTEGRATION_WORKERS | 4 | Number of interfaces run at the same time per server instance. |
Connection secrets are encrypted with the same key as connector secrets (CONNECTOR_SECRETS_ENCRYPTION_KEY).