Activities
Activity log across contacts, debts and other objects.
GET
/api/v1/activitiesHistory across all objects, newest first: automatic entries (source: history – phase changes, payments, letters, research …) and logged actions (source: activity). Filter by contact, debt, object type and date range.
Permission: activity:read
Query parameters
contactIdstringmax. 128 charactersdebtIdstringmax. 128 charactersentityTypeenumValues: contact, debt, invoice, offer, project, receipt, document, othersource"history" | "activity"fromstring (date)from date (inclusive)tostring (date)to date (inclusive)limitintegerNumber of entries (1–100)1–100 · Default: 25cursorstring`nextCursor` of the previous pagemax. 500 characters
Response 200
object"list"requireddataArray<Activity>requiredidstringrequiredobject"activity"requiredsource"history" | "activity"requiredhistory = automatic history, activity = logged actionentityTypeenumrequiredValues: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringrequiredcontactIdstring | nullrequireddebtIdstring | nullrequiredactionstringrequireddescriptionstringrequiredperformedBystring | nullrequiredmetadataobject | nullrequiredcreatedAtstring (date-time)requiredTimestamp (ISO 8601)
hasMorebooleanrequirednextCursorstring | nullrequired
curl 'https://www.debt-flow.io/api/v1/activities' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY"Response 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/activitiesCustom entry in the activity log, e.g. from a CRM. Contacts and debts must exist.
Permission: activity:write
Headers
Idempotency-KeystringUnique key (8–255 characters). Repeated requests with the same key return the same response for 24 h.max. 255 characters
Body (JSON) · ActivityCreate
entityTypeenumrequiredValues: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringrequiredmax. 128 charactersactionstringrequiredmax. 100 charactersdescriptionstringmax. 2000 characters · Default: ""metadataobject
Response 201 · Activity
idstringrequiredobject"activity"requiredsource"history" | "activity"requiredhistory = automatic history, activity = logged actionentityTypeenumrequiredValues: contact, debt, invoice, offer, project, receipt, document, otherentityIdstringrequiredcontactIdstring | nullrequireddebtIdstring | nullrequiredactionstringrequireddescriptionstringrequiredperformedBystring | nullrequiredmetadataobject | nullrequiredcreatedAtstring (date-time)requiredTimestamp (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": {}
}'Response 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"
}