Creditor AI
AI recommendations for debts (limited quota).
GET
/api/v1/contacts/{id}/recommendationsAll saved recommendations for debts of this contact, newest first. Does not use AI quota.
Permission: ai:read
Path parameters
idstringrequiredResource IDmax. 128 characters
Query parameters
limitintegerNumber of entries (1–100)1–100 · Default: 25cursorstring`nextCursor` of the previous pagemax. 500 characters
Response 200
object"list"requireddataArray<Recommendation>requiredidstringrequiredobject"recommendation"requiredcontactIdstringrequireddebtIdstringrequiredtextstringrequiredRecommendation (Markdown)modelstring | nullrequiredcreatedAtstring (date-time)requiredTimestamp (ISO 8601)
hasMorebooleanrequirednextCursorstring | nullrequired
curl 'https://www.debt-flow.io/api/v1/contacts/ID/recommendations' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY"Response 200
{
"object": "list",
"data": [
{
"id": "string",
"object": "recommendation",
"contactId": "string",
"debtId": "string",
"text": "string",
"model": "string",
"createdAt": "2026-11-01T09:30:00.000Z"
}
],
"hasMore": false,
"nextCursor": "string"
}GET
/api/v1/debts/{id}/recommendationsSaved recommendations, newest first. Does not use AI quota.
Permission: ai:read
Path parameters
idstringrequiredResource IDmax. 128 characters
Query parameters
limitintegerNumber of entries (1–100)1–100 · Default: 25cursorstring`nextCursor` of the previous pagemax. 500 characters
Response 200
object"list"requireddataArray<Recommendation>requiredidstringrequiredobject"recommendation"requiredcontactIdstringrequireddebtIdstringrequiredtextstringrequiredRecommendation (Markdown)modelstring | nullrequiredcreatedAtstring (date-time)requiredTimestamp (ISO 8601)
hasMorebooleanrequirednextCursorstring | nullrequired
curl 'https://www.debt-flow.io/api/v1/debts/ID/recommendations' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY"Response 200
{
"object": "list",
"data": [
{
"id": "string",
"object": "recommendation",
"contactId": "string",
"debtId": "string",
"text": "string",
"model": "string",
"createdAt": "2026-11-01T09:30:00.000Z"
}
],
"hasMore": false,
"nextCursor": "string"
}POST
/api/v1/debts/{id}/recommendationsEvaluates the debt, phase, costs, payments, instalment plans, communications and history and generates a recommended course of action (Markdown). No body required – the context is loaded from the stored data. Limited AI quota per account (shared with the dashboard) and globally per day: 429 ai_rate_limited or ai_quota_exhausted with retryAfter. 503 ai_unavailable if the AI is not set up. Not legal advice. Event recommendation.created. Blocked in the demo account.
Permission: ai:write
Path parameters
idstringrequiredResource IDmax. 128 characters
Headers
Idempotency-KeystringUnique key (8–255 characters). Repeated requests with the same key return the same response for 24 h.max. 255 characters
Response 201 · Recommendation
idstringrequiredobject"recommendation"requiredcontactIdstringrequireddebtIdstringrequiredtextstringrequiredRecommendation (Markdown)modelstring | nullrequiredcreatedAtstring (date-time)requiredTimestamp (ISO 8601)
Possible errors: 400, 401, 403, 404, 409, 422, 429, 500, 502, 503
curl -X POST 'https://www.debt-flow.io/api/v1/debts/ID/recommendations' \
-H "Authorization: Bearer $DEBTFLOW_API_KEY"Response 201
{
"id": "string",
"object": "recommendation",
"contactId": "string",
"debtId": "string",
"text": "string",
"model": "string",
"createdAt": "2026-11-01T09:30:00.000Z"
}