
Mit unserer Faxsuite können Sie überall und zu jederzeit Faxe senden und empfangen. Neben vielen anderen Funktionalitäten bietet Ihnen unsere Faxsuite auch eine RESTful API-Schnittstelle. Damit können Sie z. B. aus Ihrer eigenen Softwareanwendung Faxe automatisiert versenden und empfangen. Zeitintensive und teure Investionen in Hardware und Software gehören der Vergangenheit an und sind nicht mehr notwendig.
Um den API-Service nutzen zu können, müssen Sie sich für die Faxsuite anmelden. Ein kostenloser Testzugang kann hier beantragt werden. (To use the API service you need to sign up for the Faxsuite. A free trial access can be requested here)
Mit der Faxsuite haben Sie die Kontrolle über Ihre Fax-Kampagnen. Mit dem kostenlosen Testzugang können Sie alle Faxsuite-Module (Faxmailing, Mail2Fax, Fax-API, Faxdrucker und Faxempfang) unverbindlich ausprobieren. Sie bekommen 10 kostenlose Faxseiten, die Sie zum aktiven Kennenlernen unserer Faxsuite nutzen können. (You can test the Faxsuite modules for four weeks without obligation. You will receive 10 free fax pages with the free trial access)
Nachdem Sie den Zugang beantragt haben, können Sie sich hier in die Faxsuite einloggen. Unter dem Menüpunkt 'Fax-API | Konto verwalten' können Sie ihre Fax-API Konten verwalten und die dazugehörigen Autorisierungs-Schlüssel, welche Sie für den Zugang zur API-Schnittstelle benötigen, einsehen. Bei der Erstellung des Fax-API Kontos wird automatisch ein Autorisierungs-Schlüssel generiert. (After creating a login you can access the Faxsuite here. In the menu 'FAX-API | Konto verwalten' you can manage your API-Accounts and receive the related token/key you need to gain access to our API service)

Die RESTful API basiert auf den OpenAPI v3.0.3 Spezifikationen. OpenAPI Spezifikationen (OAS) definieren eine standardisierte und programmiersprachenunabhängige Schnittstellenbeschreibung für RESTful APIs. Diese Schnittstelle ist nutzbar ohne dass der Zugang zum Quellcode, zusätzliche Dokumentation oder die Untersuchung des Netzwerk-Traffics erforderlich sind. Somit kann ein Nutzer den Dienst mit einem Minimum an Implementierungslogik verstehen, mit ihm interagieren und einfach und schnell als API-Schnittstelle in seine eigene Softwareanwendung integrieren.
Weitere Informationen zu OpenAPI finden sie hier: https://www.openapis.org/
Die standardisierte API Dokumentation wird Ihnen in zwei unterschiedlichen, als nicht interaktive und interaktive Varianten angeboten:
| Name | Type | Link |
|---|---|---|
| Redoc | non interactive | click here for redoc |
| Swagger UI | interactive (self hosted) | click here for swagger |
Folgend werden grundlegende Informationen bezüglich der hier vorgestellten API bereitgestellt. Wie z.B. die verfügbaren Ressourcen, potentielle Fehlercodes oder eine kurze Anleitung für die Filterung.
Folgende Verben/Methoden werden von der RESTful API verwendet:
| Verb | Beschreibung |
|---|---|
| get | Liefert einen oder mehrere Einträge zu einer bestimmten Ressource |
| post | Erstellt einen neuen Eintrag zu einer bestimmten Ressource |
| put | Aktualisiert einen Eintrag einer bestimmten Ressource |
Die API wird mit einem der folgenden Status Codes antworten:
| Code | Status | Beschreibung |
|---|---|---|
200 |
SUCCESS | Die Anfrage wurde erfolgreich bearbeitet und das Ergebnis der Anfrage wird in der Antwort übertragen. |
201 |
CREATED | Die Anfrage wurde erfolgreich bearbeitet. Die angeforderte Ressource wurde vor dem Senden der Antwort erstellt. |
400 |
BAD REQUEST | Die Anfrage-Nachricht war fehlerhaft aufgebaut. Der Error Response beschreibt das Problem detailiert. |
404 |
NOT FOUND | Die angeforderte Ressource wurde nicht gefunden. |
422 |
UNPROCESSABLE CONTENT | Das übergebene JSON enthält ungültige Daten. |
429 |
TOO MANY REQUESTS | Der Client hat zu viele Anfragen in einem bestimmten Zeitraum gesendet. |
500 |
INTERNAL SERVER ERROR | Dies ist ein „Sammel-Statuscode“ für unerwartete Serverfehler. Bitte kontakieren Sie den Support. |
503 |
SERVICE UNAVAILABLE | Der Server steht temporär nicht zur Verfügung, zum Beispiel wegen Überlastung oder Wartungsarbeiten. |
Die Fax-API unterstützt detailierte Fehlerbeschreibungen mit eindeutigen Codes:
| Code | Type | DE | EN |
|---|---|---|---|
800 |
Service Exception | Unbekannter Fehler | Unknown error |
801 |
Service Exception | Datenbankfehler | Database exception |
802 |
Service Exception | Zu viele Anfragen | Too many requests |
803 |
Service Exception | Service ist aktuell nicht verfügbar | Service is currently not available |
804 |
Service Exception | Ressource nicht gefunden | Resource not found |
810 |
Authentification Exception | Unbekannter Authentifizierungsfehler | Unknown authentication error |
811 |
Authentification Exception | API Konto nicht gefunden | API Account not found |
812 |
Authentification Exception | API Konto nicht aktiv | API Account is not active |
813 |
Authentification Exception | Benutzerkonto nicht aktiv | User Account is not active |
820 |
Parameter Exception | Fehlender/ungültiger Autorisierungsschlüssel | Missing/invalid authorization key |
821 |
Parameter Exception | Fehlender/ungültiger Function Parameter | Missing/invalid function parameter |
822 |
Parameter Exception | Fehlender/ungültiger Path Parameter | Missing/invalid path parameter |
823 |
Parameter Exception | Fehlender/ungültiger Query Parameter | Missing/invalid query parameter |
824 |
Parameter Exception | Fehlender/ungültiger Header Parameter | Missing/invalid header parameter |
825 |
Parameter Exception | Fehlender/ungültiger Request Parameter | Missing/invalid request parameter |
830 |
Resource Exception | Element nicht gefunden | Element not found |
831 |
Resource Exception | Unbekannter Element Fehler | Unknown element issue |
832 |
Resource Exception | Änderung des Elements nicht möglich | Change of element not possible |
840 |
Job Exception | Job nicht gefunden | Job not found |
841 |
Job Exception | Unbekannter Job Fehler | Unknown Job issue |
842 |
Job Exception | Statusänderung im Job nicht möglich | Status change not possible |
843 |
Job Exception | Preview im Job nicht verfügbar | Preview not available |
Folgende Ressourcen stehen zur Verfügung:
| Ressource | Verben | Endpoint | Beschreibung |
|---|---|---|---|
| Jobs | get | /jobs |
Abfragen von Jobs (Faxaufträgen). Filterung und Sortierung wird unterstützt |
| Jobs | post | /jobs |
Anlegen von Jobs (Faxauftrag) |
| JobDetails | get | /jobs/{id} |
Abfragen eines Jobs (Faxauftrags) |
| JobDetails | put | /jobs/{id} |
Statusänderung eines Jobs (Faxauftrags) |
| JobRecipients | get | /jobs/{id}/recipients |
Abfragen von Empfängern eines Jobs (Faxauftrag), Filterung und Sortierung wird unterstützt |
| JobPreview | get | /jobs/{id}/preview |
Abfragen des Previews (Ausgangsdokument) eines Jobs (Faxauftrag) |
| JobShippingReport | get | /jobs/{id}/shippingReport |
Abfragen des Empfänger-Versandberichts (Ausgangsdokument) eines Jobs (Faxauftrag) |
| JobTemplates | get | /jobs/{id}/templates |
Abfragen der Templates (Eingangsdokumente) eines Jobs (Faxauftrag) |
| JobsNotifications | get | /jobs/{id}/notifications |
Abfragen der eingestellen Benachrichtigungen eines Jobs (Faxauftrag) |
| Recipients | get | /recipients |
Abfragen von Empfängern aller Jobs (Faxaufträgen), Filterung und Sortierung wird unterstützt |
| Inbox* | get | /inbox |
Abfragen von empfangenen Faxen, Filterung und Sortierung wird unterstützt |
| InboxDetails* | get | /inbox/{id} |
Abfragen eines empfangenen Fax |
| InboxDetails* | put | /inbox/{id} |
Setzen des "Gelesen"-Status eines empfangenen Fax |
| InboxDocument* | get | /inbox/{id}/document |
Abfragen des Dokuments eines empfangenen Fax |
| System | get | /health |
Abfragen des aktuellen API-Zustands |
* Der Zugriff auf die Inbox Ressourcen muss freigeschaltet werden. Hierzu bitte beim Support melden und eine Freischaltung beantragen.
Telefon: +49 5251 68241-15 Telefax: +49 5251 68241-99 E-Mail: vertrieb@faxsuite.de
Einige Responses werden in Seiten zusammengefasst geliefert. In Default werden 100 Elemente geliefert beginnend mit dem ersten Element 0. Dies kann mit dem Pagination Parameter in der URL angepasst werden ?objectLimit={limit}&objectOffset={page}
| Parameter | Type | Default | Beschreibung |
|---|---|---|---|
objectLimit |
integer | 100 |
Beschreibt die Anzahl der Elemente im Response |
objectOffset |
integer | 0 |
Beschreibt den zu verwendenden Offset im Response |
| Attribute | Type | Beschreibung |
|---|---|---|
total |
integer | Beschreibt die Anzahl aller vorhandenen Elemente |
offset |
integer | Beschreibt den aktuell verwendeten offset |
count |
integer | Beschreibt die Anzahl der Elemente im Feld 'data' |
data |
array | Liste der angeforderten Ressource |
Get Anfragen mit Pagination ermöglichen in der Regel zusätzliches Filtern und Sortieren der zurückgelieferten Liste.
Um eine Filterung zu nutzen, können Query Parameter verwendet werden. Siehe in der jeweiligen Ressource, welche unterstützt werden.
?{filterA}={valueA}&{filterB}={valueB}
In der Ressource Jobs könnte diese zum Beispiel wie folgt aussehen:
?filterTitle=Kunde&filterStatus=scheduled
Für das Sortieren sind zwei Query Parameter vorgesehen:
| Parameter | Type | Default | Beschreibung |
|---|---|---|---|
sortField |
enum (abhänig der Ressource) | null |
Beschreibt das zu sortierende Attribut |
sortOrder |
enum (asc, desc) | asc |
Beschreibt die Sortierung des Attributs (aufsteigend oder absteigend) |
Beispiel für die Ressource Jobs:
?sortField=Status&sortOrder=desc
Einige Responses liefern in ihren Datenfeldern einen Zeitstempel zurück oder können als Filter in Suchanfragen verwendet werden.
Das Format muss dabei dem ISO 8601 entsprechen und Datum sowie Zeitangaben beinhalten wie z.B. '2023-01-01T10:00:00+02:00'. Bitte beachten Sie bei Verwendung eines Zeitstempels als query parameter in der URL ein urlencoding zu verwenden 2023-01-01T10%3A00%3A00%2B01%3A00.
Folgende Zustände kann ein Faxauftrag (Job) haben:
| Status | Beschreibung |
|---|---|
scheduling |
Der Faxauftrag wird für den Versand vorbereitet |
scheduled |
Der Faxauftrag wird für den Versand bereit. Es wurden noch kein Einzelversand durchgeführt |
processing |
Der Faxauftrag befindet sich im Versand. Es wurden mindestens ein Einzelversand durchgeführt |
halted |
Der Faxauftrag wurde angehalten und kann fortgesetzt werden |
locked |
Der Faxauftrag wurde vom Support angehalten und kann nur vom Support wieder fortgesetzt werden |
canceled |
Der Faxauftrag wurde abgebrochen und kann nicht mehr fortgesetzt werden |
finished |
Der Faxauftrag wurde erfolgreich beendet. Beachte ein erfolgreicher Faxauftrag ist nicht gleichzusetzen mit einem erfolgreichen Einzelversand |
error |
Der Faxauftrag wurde nicht erfolgreich beendet. Beachte den Fehlercode, diese beinhaltet eine detaillierte Beschreibung des Problems |
Zur detaillierteren Prüfung eines erfolgreichen Faxversands empfehlen wir den Recipient Status zu verwenden.
Nachfolgend werden einige Informationen bereitgestellt, die beim Testen der API-Schnittstelle verwendet werden können.
Es stehen zwei Endpoints zur Verfügung:
| Live | https://service.fax-api.de/4.0/rest |
| Sandbox | https://sandbox.fax-api.de/4.0/rest |
Die Sandbox unterstützt Entwickler bei der Integration von Funktionen der Fax-API in betriebliche Anwendungen. Die Anbindung der Fax-API erfolgt in einer gekapselten Entwicklungsumgebung: der Sandbox, bevor im Zuge der Inbetriebnahme reale Faxaufträge über das Produktivsystem generiert werden.
Die Sandbox stellt einen reduzierten Funktionsumfang zur Verfügung. Dieser verfügt über Entwicklungshilfen wie Fehlersimulatoren.
| Key | Note |
|---|---|
0d269c650e23d76747f8ec8ce87ce8d1 |
Aktiver Nutzer, inaktiver API Account |
f60778208b2ec3aff46bd3586481c934 |
Inaktiver Nutzer, aktiver API Account |
Description: Retrieves a list of fax jobs
| objectLimit | integer [ 1 .. 100 ] Default: 100 Sets the maximum number of objects returned in the data array |
| objectOffset | integer >= 0 Default: 0 Sets the number of objects to skip before returning results |
| filterSameAccount | boolean Default: false Filters jobs by the API account associated with the authentication token |
| filterTitle | string Filters jobs by title |
| filterStatus | string Enum: "scheduling" "scheduled" "processing" "halted" "locked" "canceled" "finished" "error" Filters jobs by status |
| filterDateFrom | string <date-time> Filters jobs with a TimeToSend value later than the specified date and time. Can be combined with filterDateTo to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+01:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00) |
| filterDateTo | string <date-time> Filters jobs with a TimeToSend value earlier than the specified date and time. Can be combined with filterDateFrom to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+02:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00 |
| filterDateUntilFrom | string <date-time> Filters jobs with a TimeToSendUntil value later than the specified date and time. Can be combined with filterDateUntilTo to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+01:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00) |
| filterDateUntilTo | string <date-time> Filters jobs with a TimeToSendUntil value earlier than the specified date and time. Can be combined with filterDateUntilFrom to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+02:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00 |
| filterCostCenter | string Filters jobs by cost center |
| sortField | string Enum: "jobId" "title" "createTime" "timeToSend" "timeToSendUntil" Specifies the field used to sort the results. |
| sortOrder | string Default: "asc" Enum: "asc" "desc" Specifies the sort order (asc or desc) |
curl --output './getJobsResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ --get \ --data-urlencode 'filterTitle=xxxx' \ --data-urlencode 'filterStatus=canceled' \ 'https://service.fax-api.de/4.0/rest/jobs' #use jq for pretty json output jq . getJobsResponse.json
{- "total": 100,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "account": "ApiAccount123",
- "status": "scheduling",
- "errorCode": 503,
- "options": {
- "title": "Fax Job ABC 123",
- "timeToSend": "2022-01-01T10:00:00+02:00",
- "timeToSendUntil": "2030-01-01T10:00:00+02:00",
- "faxHeader": true,
- "faxHeaderFrom": "Max Mustermann",
- "stationID": "test12345",
- "clip": "xxx",
- "defaultInternationalDialingCode": "0049",
- "costCenter": "Kostenstelle4711",
- "saveDocuments": false
}, - "info": {
- "templateIsAvailable": true,
- "previewIsAvailable": true
}, - "statistics": {
- "pages": 1,
- "surcharge": 1,
- "recipientCount": 10,
- "recipientCountSuccessful": 8,
- "recipientCountError": 2
}
}
]
}Description: Creates a new fax job
Defines the request body required to create a fax job
object Specifies the fax job options | |
required | Array of objects (Template) [ 1 .. 5 ] An array of document templates. At least one and no more than five templates are required. |
Array of objects (JobPostRecipient) [ 0 .. 10 ] An array of recipients. At least one recipient is required if no distribution list is provided. A maximum of 10 recipients is allowed. (if necessary, account limit can be increased) | |
| distributionLists | Array of strings >= 0 An array of distribution list IDs. At least one distribution list is required if no individual recipients are provided. |
{- "options": {
- "title": "Fax Job ABC 123",
- "timeToSend": "2022-01-01T10:00:00+02:00",
- "timeToSendUntil": "2022-01-01T10:00:00+02:00",
- "faxHeader": true,
- "faxHeaderFrom": "Max Mustermann",
- "stationID": "test12345",
- "clip": "xxx",
- "defaultInternationalDialingCode": "0049",
- "costCenter": "Kostenstelle4711",
- "saveDocuments": false
}, - "templates": [
- {
- "contentType": "application/pdf",
- "content": "JVBERi0xLj***SVFT0YNCg=="
}
], - "recipients": [
- {
- "faxNumber": "0525187929399",
- "name": "Max Mustermann",
- "recipientReference": "User 1234 ABC"
}
], - "distributionLists": [
- "listNo1"
]
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "target": ".../jobs/{id}"
}Description: Retrieves details of a specific fax job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Unique identifier (UUID) of the fax job |
curl --output './getJobResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}' #use jq for pretty json output jq . getJobResponse.json
{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "account": "ApiAccount123",
- "status": "scheduling",
- "errorCode": 503,
- "options": {
- "title": "Fax Job ABC 123",
- "timeToSend": "2022-01-01T10:00:00+02:00",
- "timeToSendUntil": "2030-01-01T10:00:00+02:00",
- "faxHeader": true,
- "faxHeaderFrom": "Max Mustermann",
- "stationID": "test12345",
- "clip": "xxx",
- "defaultInternationalDialingCode": "0049",
- "costCenter": "Kostenstelle4711",
- "saveDocuments": false
}, - "info": {
- "templateIsAvailable": true,
- "previewIsAvailable": true
}, - "statistics": {
- "pages": 1,
- "surcharge": 1,
- "recipientCount": 10,
- "recipientCountSuccessful": 8,
- "recipientCountError": 2
}
}Description: Controls the transmission of a specific fax job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
Describes the required request body to perform an action on the fax job
| action required | string Enum: "hold" "cancel" "resume" Specifies the action to perform on the fax job |
{- "action": "hold"
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "account": "ApiAccount123",
- "status": "scheduling",
- "errorCode": 503,
- "options": {
- "title": "Fax Job ABC 123",
- "timeToSend": "2022-01-01T10:00:00+02:00",
- "timeToSendUntil": "2030-01-01T10:00:00+02:00",
- "faxHeader": true,
- "faxHeaderFrom": "Max Mustermann",
- "stationID": "test12345",
- "clip": "xxx",
- "defaultInternationalDialingCode": "0049",
- "costCenter": "Kostenstelle4711",
- "saveDocuments": false
}, - "info": {
- "templateIsAvailable": true,
- "previewIsAvailable": true
}, - "statistics": {
- "pages": 1,
- "surcharge": 1,
- "recipientCount": 10,
- "recipientCountSuccessful": 8,
- "recipientCountError": 2
}
}Description: Resource to retrieve a list of recipients of a specific job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
| objectLimit | integer [ 1 .. 100 ] Default: 100 Sets the maximum number of objects returned in the data array |
| objectOffset | integer >= 0 Default: 0 Sets the number of objects to skip before returning results |
| filterFaxNumber | string Filters recipients by fax number |
| filterFaxNumberNorm | string Filters recipients by normalized fax number |
| filterRecipientReference | string Filters recipients by recipient reference |
| filterInternationalDialingCode | string Filters recipients by international dialing code |
| filterResultCode | string Filters recipients by result code |
| filterResultText | string Filters recipients by result text |
| sortField | string Enum: "faxNumber" "faxNumberNorm" "internationalDialingCode" "recipientReference" "fareZone" "senderTime" Specifies the field used to sort the results. |
| sortOrder | string Default: "asc" Enum: "asc" "desc" Specifies the sort order (asc or desc) |
curl --output './jobRecipientsResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}/preview' #use jq for pretty json output jq . jobRecipientsResponse.json
{- "total": 100,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "faxNumber": "0525187929399",
- "faxNumberNorm": "0525187929399",
- "internationalDialingCode": "0049",
- "name": "Max Mustermann",
- "recipientReference": "User 1234 ABC",
- "fareZone": 1,
- "senderTime": "2022-01-01T10:00:00+02:00",
- "resultCode": 0,
- "resultText": "The fax was sent successfully"
}
]
}Description: To obtain the preview pdf document of a specific job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
curl --output './jobRecipientsResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}/preview' #use jq for pretty json output jq . jobRecipientsResponse.json
{- "contentType": "application/pdf",
- "content": "JVBERi0xLj***SVFT0YNCg=="
}Description: To obtain the shipping report pdf document for a specific job and recipient
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
| type required | string Enum: "faxNumber" "referenceName" Filters recipients by fax number or reference name |
| value required | string Fax number or reference name |
curl --output './jobShippingReportResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ -G -d "type=xxxx" -d "value=xxxx" \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}/shippingReport' #use jq for pretty json output jq . jobShippingReportResponse.json
{- "contentType": "application/pdf",
- "content": "JVBERi0xLj***SVFT0YNCg=="
}Description: To obtain a list of template documents to a specific job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
curl --output './jobTemplatesResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}/templates' #use jq for pretty json output jq . jobTemplatesResponse.json
{- "total": 100,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "contentType": "application/pdf",
- "content": "JVBERi0xLj***SVFT0YNCg=="
}
]
}Description: To obtain a list of notifications to a specific job
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the job |
curl --output './jobNotificationsResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/jobs/{job-ID}/notifications' #use jq for pretty json output jq . jobNotificationsResponse.json
{- "total": 100,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "type": "string",
- "triggeredSuccessful": true,
- "triggeredError": true,
- "destination": "max.mustermann@mailserver.com"
}
]
}Description: Retrieves a list of recipients
| objectLimit | integer [ 1 .. 100 ] Default: 100 Sets the maximum number of objects returned in the data array |
| objectOffset | integer [ 0 .. 5 ] Default: 0 Sets the number of objects to skip before returning results |
| filterJobId | string Filters recipients by the specified fax job ID |
| filterSameAccount | boolean Default: false Filters jobs by the API account associated with the authentication token |
| filterFaxNumber | string Filters recipients by fax number |
| filterFaxNumberNorm | string Filters recipients by normalized fax number |
| filterRecipientReference | string Filters recipients by recipient reference |
| filterInternationalDialingCode | string Filters recipients by international dialing code |
| filterResultCode | string Filters recipients by result code |
| filterResultText | string Filters recipients by result text |
| sortField | string Enum: "jobId" "faxNumber" "faxNumberNorm" "internationalDialingCode" "recipientReference" "fareZone" "senderTime" Specifies the field used to sort the results. |
| sortOrder | string Default: "asc" Enum: "asc" "desc" Specifies the sort order (asc or desc) |
curl --output './recipientsResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/recipients' #use jq for pretty json output jq . recipientsResponse.json
{- "total": 100,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "job": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "target": ".../jobs/{id}"
}, - "faxNumber": "0525187929399",
- "faxNumberNorm": "0525187929399",
- "internationalDialingCode": "0049",
- "name": "Max Mustermann",
- "recipientReference": "User 1234 ABC",
- "fareZone": 1,
- "senderTime": "2022-01-01T10:00:00+02:00",
- "resultCode": 0,
- "resultText": "The fax was sent successfully"
}
]
}Provides endpoints for retrieving incoming faxes
Access to the inbox endpoints must be enabled before use. Please contact our support team to request access.
Phone: +49 5251 68241-15 Fax: +49 5251 68241-99 E-Mail: vertrieb@faxsuite.de
Description: Retrieves a list of incoming faxes
| objectLimit | integer [ 1 .. 50 ] Default: 50 Sets the maximum number of objects returned in the data array |
| objectOffset | integer [ 0 .. 5 ] Default: 0 Sets the number of objects to skip before returning results |
| filterFaxNumberReceiver | string Filters incoming faxes by the recipient's fax number |
| filterFaxNumberSender | string Filters incoming faxes by the sender's fax number |
| filterStatus | string Enum: "successful" "incorrect" Filters incoming faxes by status |
| filterDateFrom | string <date-time> Filters incoming faxes received on or after the specified date and time. Can be combined with filterDateTo to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+01:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00) |
| filterDateTo | string <date-time> Filters incoming faxes received on or before the specified date and time. Can be combined with filterDateFrom to specify a date range. The format must comply with ISO 8601 and must contain date and time, like '2022-01-01T10:00:00+02:00'. Please also consider urlencoding (2022-01-01T10%3A00%3A00%2B01%3A00 |
| filterMarkedAsRead | boolean Filters incoming faxes by their read/unread status |
| filterDocumentAvailable | boolean Filters incoming faxes based on document availability |
| sortField | string Enum: "date" "faxNumberReceiver" "faxNumberSender" "stationID" "pages" "status" Specifies the field used to sort the results. |
| sortOrder | string Default: "asc" Enum: "asc" "desc" Specifies the sort order (asc or desc) |
curl --output './getInboxResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ --get \ --data-urlencode 'filterFaxNumberReceiver=xxxx' \ --data-urlencode 'filterStatus=successful' \ 'https://service.fax-api.de/4.0/rest/inbox' #use jq for pretty json output jq . getInboxResponse.json
{- "total": 50,
- "offset": 0,
- "count": 50,
- "data": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "date": "2019-08-24T14:15:22Z",
- "faxNumberReceiver": "0525187929399",
- "faxNumberSender": "0525187929399",
- "status": "successful",
- "stationID": 4952511864100,
- "pages": 1,
- "emailNotifications": 3,
- "markedAsRead": true,
- "documentAvailable": true
}
]
}Description: Obtain information of a specific incoming fax
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the incoming fax |
curl --output './getIncomingFaxResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/inbox/{incomingFax-UUID}' #use jq for pretty json output jq . getIncomingFaxResponse.json
{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "date": "2019-08-24T14:15:22Z",
- "faxNumberReceiver": "0525187929399",
- "faxNumberSender": "0525187929399",
- "status": "successful",
- "stationID": 4952511864100,
- "pages": 1,
- "emailNotifications": 3,
- "markedAsRead": true,
- "documentAvailable": true
}Description: Control the mark as read flag of a specific incoming fax
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the incoming fax |
Describes the required request body to perform an action on the incoming fax
| action required | string Enum: "markAsRead" "markAsUnread" Describes if marked as read should be set or unset of the incoming fax |
{- "action": "markAsRead"
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "date": "2019-08-24T14:15:22Z",
- "faxNumberReceiver": "0525187929399",
- "faxNumberSender": "0525187929399",
- "status": "successful",
- "stationID": 4952511864100,
- "pages": 1,
- "emailNotifications": 3,
- "markedAsRead": true,
- "documentAvailable": true
}Description: To obtain the document of a specific incoming fax
| id required | string Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Identification number (UUID) of the incoming fax |
curl --output './incomingFaxDocumentResponse.json' \ --header 'X-Auth-Token: xxxx' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/inbox/{incomingFax-UUID}/document' #use jq for pretty json output jq . incomingFaxDocumentResponse.json
{- "contentType": "application/pdf",
- "content": "JVBERi0xLj***SVFT0YNCg=="
}curl --output './healthResponse.json' \ --header 'Content-Type: application/json' \ 'https://service.fax-api.de/4.0/rest/health' #use jq for pretty json output jq . healthResponse.json
{- "status": true,
- "version": "1.0.0"
}