Authentication
Create an Integration API token in Fahriom under Company → Driver API. Send it on every request:
Authorization: Bearer YOUR_API_TOKEN
# or
X-Fahriom-Token: YOUR_API_TOKEN
- All /api/integration/v1/* routes require this token.
- Tokens are scoped to one restaurant (tenant).
- Rotate or revoke tokens anytime in Company settings.
Drivers API
CRUD for the driver roster. Use this when your POS creates or updates staff and should sync them into Fahriom.
| Method | Path | Description |
|---|---|---|
| GET | /api/integration/v1/drivers | List active drivers |
| POST | /api/integration/v1/drivers | Create a driver |
| GET | /api/integration/v1/drivers/{id} | Get one driver |
| PATCH | /api/integration/v1/drivers/{id} | Update name, phone, location, active |
| DELETE | /api/integration/v1/drivers/{id} | Deactivate (soft) |
| POST | /api/integration/v1/drivers/{id}/password | Set password |
Create driver
POST /api/integration/v1/drivers
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN
{
"name": "Alex Rider",
"phone": "+491701234567",
"location_id": 1,
"password": "optional-min-6",
"send_invite": true
}
Response 201:
{
"driver": {
"id": 12,
"name": "Alex Rider",
"phone": "+491701234567",
"location_id": 1,
"location": { "id": 1, "name": "Mitte" },
"is_active": true,
"created_at": "2026-10-21T10:00:00+00:00",
"updated_at": "2026-10-21T10:00:00+00:00"
}
}
- name
- Required. Display name.
- phone
- Required. E.164 international format (e.g. +491701234567). Unique per restaurant.
- location_id
- Optional. Must belong to the same restaurant.
- password
- Optional. Min 6 characters. Omit to invite later.
- send_invite
- Optional boolean. Send SMS invite when true.
Embed token
Fetch the restaurant embed token (and ready-made URLs) with your Integration API token. Useful so the POS can configure iframes without copying links by hand.
GET /api/integration/v1/embed-token
Authorization: Bearer YOUR_API_TOKEN
Response 200:
{
"token": "…48-char-token…",
"embeds": {
"dispatch": "https://www.fahriom.com/embed/dispatch?token=…",
"map": "https://www.fahriom.com/embed/map?token=…",
"remittance": "https://www.fahriom.com/embed/remittance?token=…",
"kitchen_tv": "https://www.fahriom.com/embed/kitchen-tv?token=…",
"unassigned_count": "https://www.fahriom.com/api/embed/unassigned-count?token=…"
}
}
If no embed token exists yet, Fahriom creates one. Resetting the token in Company settings invalidates all previous URLs.
POS embeds (iframes)
Full-feature screens for WebViews. Auth is the embed token in the query string (same token for every screen).
| Screen | URL |
|---|---|
| Dispatch | /embed/dispatch?token={embed_token} |
| Live Map | /embed/map?token={embed_token} |
| Remittance | /embed/remittance?token={embed_token} |
| Kitchen TV | /embed/kitchen-tv?token={embed_token} |
<iframe
src="https://www.fahriom.com/embed/dispatch?token=EMBED_TOKEN"
style="width:100%;height:100%;border:0"
></iframe>
<!-- Kitchen TV strip (~80px high) -->
<iframe
src="https://www.fahriom.com/embed/kitchen-tv?token=EMBED_TOKEN"
style="width:100%;height:80px;border:0"
></iframe>
Unassigned order count
Lightweight poll for the POS (e.g. every minute). Uses the embed token — not the Integration API token.
GET /api/embed/unassigned-count?token=EMBED_TOKEN
# or Authorization: Bearer EMBED_TOKEN
{
"unassigned_count": 3
}
Counts orders with status unassigned for that restaurant only.
Errors & limits
- 401
- Missing or invalid token.
- 403
- Token not allowed for this action.
- 404
- Resource not found (or not in your tenant).
- 422
- Validation error — JSON body includes an errors object.
- 429
- Rate limited. Integration routes allow 120 requests / minute.
Orders are ingested via POS connectors (webhooks / polling), not this Integration API. See Company → Integrations for field mapping.