Skip to main content
POST
/
v1
/
cases
/
{case_token}
/
close
Close case
curl --request POST \
  --url https://instance.prod.onboardapp.io/v1/cases/{case_token}/close \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "decision": "Approve",
  "summary": "<string>"
}
'
{
  "data": {
    "token": "cas_9k4m2n1p",
    "name": "CAS-000142",
    "type": "Onboarding",
    "status": "New",
    "entity_category": "Company",
    "assigned_to": "<string>",
    "sla_deadline": "2023-11-07T05:31:56Z",
    "sla_status": "On Track",
    "open_alerts_count": 123,
    "total_entities_count": 123,
    "risk_tier": "High",
    "risk_score": 123,
    "decision": "Approve",
    "external_reference": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "closed_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "request_id": "req_9k4m2n1p3q",
    "page": {
      "cursor": "<string>",
      "has_more": true
    }
  }
}

Authorizations

X-API-KEY
string
header
required

Project-scoped API key for server-to-server authentication. Obtain keys from the Zenoo dashboard under Project Settings > API Keys. Staging and production environments use separate keys.

Headers

Idempotency-Key
string<uuid>

Unique key for idempotent request handling. If a request with the same key was already processed within the last 24 hours, the original response is returned.

Path Parameters

case_token
string
required

Case token.

Body

application/json
decision
enum<string>
required

Final case decision.

Available options:
Approve,
Decline
summary
string

Closing summary and decision rationale.

Maximum string length: 5000

Response

Case closed.

Standard response wrapper for all API endpoints. Contains the resource data and pagination metadata.

data
object

An investigation case that groups entities, alerts, checks, risk assessments, and audit trail entries into a single compliance investigation unit. Cases follow a defined lifecycle from creation through investigation to closure.

meta
object