Aktivitäten
Aktivitätsprotokoll über Kontakte, Forderungen und weitere Objekte.
GET
/api/v1/activitiesVerlauf über alle Objekte, neueste zuerst: automatische Einträge (source: history – Phasenwechsel, Zahlungen, Briefe, Recherche …) und protokollierte Aktionen (source: activity). Filter nach Kontakt, Forderung, Objekttyp und Zeitraum.
Berechtigung: activity:read
Query-Parameter
contactIdstringmax. 128 ZeichendebtIdstringmax. 128 ZeichenentityTypeenumWerte: contact, debt, invoice, offer, project, receipt, document, othersource"history" | "activity"fromstring (date)ab Datum (einschließlich)tostring (date)bis Datum (einschließlich)limitintegerAnzahl Einträge (1–100)1–100 · Standard: 25cursorstring`nextCursor` der vorherigen Seitemax. 500 Zeichen
Antwort 200
object"list"PflichtdataArray<Activity>PflichtidstringPflichtobject"activity"Pflichtsource"history" | "activity"Pflichthistory = automatischer Verlauf, activity = protokollierte AktionentityTypeenumPflichtWerte: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringPflichtcontactIdstring | nullPflichtdebtIdstring | nullPflichtactionstringPflichtdescriptionstringPflichtperformedBystring | nullPflichtmetadataobject | nullPflichtcreatedAtstring (date-time)PflichtZeitpunkt (ISO 8601)
hasMorebooleanPflichtnextCursorstring | nullPflicht
curl 'https://www.debt-flow.io/api/v1/activities' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY"Antwort 200
{
"object": "list",
"data": [
{
"id": "string",
"object": "activity",
"source": "history",
"entityType": "contact",
"entityId": "string",
"contactId": "string",
"debtId": "string",
"action": "string",
"description": "string",
"performedBy": "string",
"metadata": {},
"createdAt": "2026-11-01T09:30:00.000Z"
}
],
"hasMore": false,
"nextCursor": "string"
}POST
/api/v1/activitiesEigener Eintrag im Aktivitätsprotokoll, z. B. aus einem CRM. Kontakte und Forderungen müssen existieren.
Berechtigung: activity:write
Header
Idempotency-KeystringEindeutiger Schlüssel (8–255 Zeichen). Wiederholte Anfragen mit gleichem Schlüssel liefern 24 h lang dieselbe Antwort.max. 255 Zeichen
Body (JSON) · ActivityCreate
entityTypeenumPflichtWerte: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringPflichtmax. 128 ZeichenactionstringPflichtmax. 100 Zeichendescriptionstringmax. 2000 Zeichen · Standard: ""metadataobject
Antwort 201 · Activity
idstringPflichtobject"activity"Pflichtsource"history" | "activity"Pflichthistory = automatischer Verlauf, activity = protokollierte AktionentityTypeenumPflichtWerte: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringPflichtcontactIdstring | nullPflichtdebtIdstring | nullPflichtactionstringPflichtdescriptionstringPflichtperformedBystring | nullPflichtmetadataobject | nullPflichtcreatedAtstring (date-time)PflichtZeitpunkt (ISO 8601)
curl -X POST 'https://www.debt-flow.io/api/v1/activities' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"entityType": "contact",
"entityId": "string",
"action": "string",
"description": "",
"metadata": {}
}'Antwort 201
{
"id": "string",
"object": "activity",
"source": "history",
"entityType": "contact",
"entityId": "string",
"contactId": "string",
"debtId": "string",
"action": "string",
"description": "string",
"performedBy": "string",
"metadata": {},
"createdAt": "2026-11-01T09:30:00.000Z"
}