HTTP / Webhooks
Send SAP documents to any HTTP endpoint as data, content or both. Multipart, JSON or raw binary, with configurable auth and retries.
Use Cases
- Trigger custom workflows on document arrival
- Send documents to any REST API
- Integrate with Zapier, Make, or n8n via webhooks
Send SAP documents to any HTTP endpoint or webhook URL. This is the most flexible destination: it works with any system that accepts HTTP requests, and it is how your own applications receive documents as they arrive, without polling.
What to send
| Choice | Body | Use it when |
|---|---|---|
| Data and content (default) | The file plus its details and SAP metadata (multipart or JSON) | Your endpoint stores the file itself |
| Data only | JSON: the document's details, SAP metadata and links to fetch the file | Your app reacts to new documents and fetches files only when needed |
| Content only | The raw file bytes; metadata in X-Meta-* headers |
Your endpoint expects a plain file upload |
Mapped metadata pairs travel as X-Meta-* headers on every choice, and in the body for Data and content (top-level keys) and Data only (under metadata). _file, file_name, mime_type and subfolder are reserved and never overwritten by a mapping. An empty mapping sends no extra keys.
Data only
POST /your-endpoint HTTP/1.1
Content-Type: application/json
{
"document": {
"id": "01JCX…",
"doc_id": "4711",
"repository": "Z1",
"source": "archivelink",
"sap_object_type": "BKPF",
"sap_object_id": "100000001",
"file_name": "invoice-2026.pdf",
"mime_type": "application/pdf",
"size": 48213,
"sha256": "9b7c…",
"received_at": "2026-11-11T10:31:00+00:00"
},
"metadata": { "invoice_no": "INV-2026-001" },
"subfolder": "2026/04",
"links": {
"document": "https://filerelay.dev/api/acme/documents/01JCX…",
"content": "https://filerelay.dev/api/acme/documents/01JCX…/content"
}
}
Fetch the file from links.content with an API key (Documents API). It stays available while FileRelay still holds the document; for long-term reads, bind the repository to a content server.
Data and content: multipart (default)
POST /your-endpoint HTTP/1.1
Content-Type: multipart/form-data; boundary=filerelay-…
invoice_no: INV-2026-001
file_name: invoice-2026.pdf
mime_type: application/pdf
subfolder: 2026/04
_file: <binary file content> (always the last part)
Data and content: JSON (base64)
POST /your-endpoint HTTP/1.1
Content-Type: application/json
{
"_file": "<base64-encoded-file>",
"file_name": "invoice-2026.pdf",
"mime_type": "application/pdf",
"subfolder": "2026/04",
"invoice_no": "INV-2026-001"
}
Content only
The body is the untouched file bytes, so metadata travels in headers only:
PUT /your-endpoint HTTP/1.1
Content-Type: application/pdf
X-File-Name: invoice-2026.pdf
X-Subfolder: 2026/04
X-Meta-invoice_no: INV-2026-001
<raw binary file content>
Expected Response
FileRelay treats any 2xx status code as success:
200 OK— standard success201 Created— resource created202 Accepted— async processing accepted
Any non-2xx response triggers retries (up to retry_count times with retry_delay between attempts).
Authentication
| Type | Headers Sent |
|---|---|
| None | No auth headers |
| Bearer | Authorization: Bearer <token> |
| Basic | Authorization: Basic <base64(user:pass)> |
| API Key | <custom-header>: <key> (default: X-API-Key) |
Use with Zapier / Make / n8n
Set up a webhook trigger in your automation platform, copy the webhook URL, and paste it as the endpoint URL in FileRelay. Choose Data only to receive just the details as JSON, or Data and content with the JSON format to get the file too.
Configuration Fields
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Required | Endpoint URL |
| method | string | Optional | HTTP method: POST, PUT, or PATCH (default: POST) |
| payload | string | Optional | What to send: both (file and its data), data (JSON details and metadata, no file) or content (file bytes only). Default: both |
| body_format | string | Optional | Body format when payload is both: multipart or json (default: multipart). Older destinations with raw send content only |
| headers | object | Optional | Custom HTTP headers as key-value pairs |
| retry_count | integer | Optional | Number of retries on failure (default 3) |
| retry_delay | integer | Optional | Delay between retries in ms (default 1000) |
Credentials
| Field | Type | Required | Description |
|---|---|---|---|
| auth_type | string | Optional | Auth type: none, bearer, basic, or api_key |
| token | string | Optional | Bearer token (when auth_type = bearer) |
| username | string | Optional | Username (when auth_type = basic) |
| password | string | Optional | Password (when auth_type = basic) |
| api_key_header | string | Optional | Header name for API key (default: X-API-Key) |
| api_key | string | Optional | API key value |
All credentials are encrypted at rest using envelope encryption.
Ready to set up HTTP / Webhooks?
Create a free account and add this connector in under 2 minutes.