Flarum
Import Flarum 1.8 and 2.0 members, discussions and comments. API permissions determine access to confirmed email addresses.
Connect Flarum
Datum reads stable Flarum 1.8.x and 2.0.x through the REST API with a dedicated forum user. Datum never accesses the forum database. Datum refuses other versions and prerelease versions.
Get a token
Use a dedicated forum account. The account must have permission to search users and to read the necessary discussions. On Flarum 2.0, create an access token in your account settings. An operator-provisioned API key also works.
The account’s permissions determine what Datum can read.
Open Sources
Open Sources → Connect a source → Flarum. Enter HTTPS forum root and Bound API key or access token. Token type starts at Account-settings access token.
For a provisioned key, choose Operator-provisioned API key. If that key needs an explicit user, open Advanced settings and enter Dedicated API user ID.
Verify
Press Verify. Datum finds the token’s user and the forum’s release line, then checks access. If the forum hides its version, choose Flarum version in Advanced settings and retry. An explicit user or version must agree with what the forum reports.
Advanced settings also holds the page-size override. Daily reconciliation starts off.
Import history
Press Run now on the source’s page. Alternatively, run the following command from your terminal or agent:
ocmgr ingest <connectionId>Datum reads every visible user, followed by discussions and their comments. An interrupted import resumes from its last position.
Check coverage before enabling reconciliation
Compare member, discussion and comment counts with an export from the forum operator. Include restricted areas and members who have never posted in your comparison. Enable daily reconciliation after the counts agree:
ocmgr connection update <connectionId> --config '{"enabled":true}'Check the result
Check the Verify result.
Verification checks the key’s user, the forum version and address, and access to the full user list. It also reports whether that user can see email addresses.
Data Datum imports
| Members | Username, display name, avatar, profile link, join date and email address, for every visible user including quiet ones |
| Addresses | Datum verifies addresses only when Flarum reports confirmation |
| Activity | Discussions started and comments, with the discussion each comment belongs to and a short discussion title |
| Not collected | Post text and HTML, IP addresses, hidden, unapproved and system posts, likes, badges, tags and sign-in links |
A confirmed Flarum address links accounts when another source reports the same verified address. An unconfirmed address contributes to matching. Uncertain matches enter your review queue.
Flarum shows email addresses only to users who can edit other users’ credentials. A user without this permission imports members without addresses. Datum matches those members through names and profiles.
When thread tone is on, Datum reads each comment’s text once. Datum never stores the text.
Troubleshooting
“This connector supports stable Flarum 1.8.x and 2.0.x only”
The forum reported an unsupported or prerelease version. A manual version declaration cannot bypass this check. If the server hides its version entirely, confirm the release with the forum operator and choose it in Advanced settings.
“Flarum pagination overlaps the previous page; source ordering changed.”
The forum changed during pagination. A page repeated records that Datum had already read. Datum stops to avoid skipping records.
Restart from the beginning with the following command. Compare the resulting counts with an export.
ocmgr ingest <connectionId> --cursor null
Discussions on different pages share a timestamp
This warning does not stop the import. Flarum cannot uniquely sort discussions with identical start times, so they can change positions between pages. Forums that import content from other systems often have many identical timestamps.
Compare discussion and reply counts with an export before treating the import as complete.
From your terminal or agent
ocmgr connection create --kind flarum \
--config '{"baseUrl":"https://forum.example","version":"1.8","userId":"<user-id>"}' \
--secret token=<api-key> --json
ocmgr connection verify <connectionId> --json
ocmgr ingest <connectionId> --pages 1 --json{ "name": "create_connection", "arguments": { "kind": "flarum", "config": { "baseUrl": "https://forum.example", "version": "1.8", "userId": "<user-id>" }, "credentials": { "token": "<api-key>" } } }
{ "name": "verify_connection", "arguments": { "id": "<connectionId>" } }curl -X POST "$OCMGR_URL/v1/connections/<connectionId>/verify" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' -d '{}'See create_connection and verify_connection for every parameter.
FAQ
Does Flarum send Datum webhooks?
No. Flarum core has no complete outbound webhook. Ongoing sync rereads the forum daily after you enable it.
Does Datum support Flarum extensions?
No. Datum reads only Flarum core users, discussions and comments. It excludes likes, badges, tags and sign-in providers from extensions.
Has anyone tested this with a real forum?
Live testing on Flarum 2.0.2 covers token and version discovery, discussions, replies, shared threads, repeat imports and outbound event delivery. A moderation test found that hidden content can have a populated hiddenAt while isHidden is null. Datum checks both fields before importing discussions or replies. Ordinary-member permissions, restricted tags and extension features still need tenant-specific testing.