Skip to content

Tasks

List tasks

tasks:read
ParameterInTypeRequiredDescription
statusquerystringNopending | completed | cancelled
typequerystringNoGODKEND_SAGSSTART | GODKEND_INKASSO | GODKEND_FOGEDRET | GODKEND_CIVILSAG | BESVAR | BESVAR_INDSIGELSE | WORKFLOW_BESLUTNING
caseIdquerystringNoOnly tasks about this case
invoiceIdquerystringNoOnly tasks about this invoice
langquerystringNoda | en — language of title, description and field labels (default en)
limitqueryintegerNoPage size, 1-200 (default 50)
cursorquerystringNoOpaque cursor from meta.nextCursor
Request exampleNo request body
curl https://api.rieckflow.com/v1/tasks \
-H "Authorization: Bearer $RIECK_API_KEY"
200 What we are waiting for you to answer. The four GODKEND_* types ARE the approval queue: a claim that waits for your yes before the case is started or the invoice goes to collection (approval: true). Each task carries its own form.fields — that is what POST …/complete is validated against. Newest first.application/json
Possible errors 5
HTTPCodeMeaning
400invalid_cursorThe cursor is malformed, expired or belongs to another list shape.
401invalid_api_keyThe API key is missing, invalid, expired or revoked.
403api_not_includedThe organisation’s plan does not include API access.
403insufficient_scopeThe key does not have the required scope.
429rate_limitedThe organisation’s rate budget is exhausted.

Get task

tasks:read
ParameterInTypeRequiredDescription
taskIdpathstringYes
langquerystringNoda | en (default en)
Request exampleNo request body
curl https://api.rieckflow.com/v1/tasks/9b2f1c1e-… \
-H "Authorization: Bearer $RIECK_API_KEY"
200 One task in any status — answered ones included, so you can read your own answer back after a timeout instead of guessing whether the call landed.application/json
Possible errors 4
HTTPCodeMeaning
401invalid_api_keyThe API key is missing, invalid, expired or revoked.
403api_not_includedThe organisation’s plan does not include API access.
403insufficient_scopeThe key does not have the required scope.
429rate_limitedThe organisation’s rate budget is exhausted.

Answer a task

tasks:write

Body is { "answer": { "<field id>": <value> } } against the task’s own form.fields, validated fail-closed: an unknown field is rejected, a required field must be present. Single-use — a second call gets 409 task_not_pending. The row records that the answer came from a machine (and task.completed carries via: "api"), so a key’s decision can always be told apart from a person’s.

ParameterInTypeRequiredDescription
taskIdpathstringYes
Request exampleNo request body
curl -X POST https://api.rieckflow.com/v1/tasks/9b2f1c1e-…/complete \
-H "Authorization: Bearer $RIECK_API_KEY" \
-H "Idempotency-Key: order-2041"
200 The updated task plus meta: outcome (approved / declined / answered), executed (did your answer set something in motion — a no never does), blocked when we may not carry it out yet, and caseId. ⚠️ executed: false with blocked still means your answer IS registered; do not call again.application/json
Possible errors 7
HTTPCodeMeaning
400invalid_idempotency_keyIdempotency-Key is missing or malformed.
401invalid_api_keyThe API key is missing, invalid, expired or revoked.
403api_not_includedThe organisation’s plan does not include API access.
403insufficient_scopeThe key does not have the required scope.
409idempotency_conflictThe same key was used with a different request.
409idempotency_in_progressThe same operation is currently being processed. Retry later.
429rate_limitedThe organisation’s rate budget is exhausted.