Case File¶
A case is created with each root company search. It groups related work (root search, expand layers, LEI lookups) and holds the live entity graph (target + nested counterparties).
Find cases you own for a company with GET /casefile/?legal_name=. Load one case with GET /casefile/{caseId}.
Warning
Storage contract (important for integrators)
| Resource | What you get |
|---|---|
GET /casefile/?legal_name= |
Cases you own whose target.legalName equals that string. caseId, legal name, and timestamps only |
GET /casefile/{caseId} |
Case metadata + search summaries (no nested result) + entity graph on target |
GET /search/{searchId}/status |
Full search document, including result when completed |
Do not expect full search result blobs inside case.searches[].
Get case file¶
Request¶
Headers
| Header | Value |
|---|---|
X-API-Key or Authorization |
API key or Bearer token |
Path parameters
| Parameter | Type | Description |
|---|---|---|
caseId |
string | Case ID returned from POST /search |
Response¶
{
"_id": "xyz789caseId",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:40:00.000Z",
"userId": "user-uid",
"target": {
"_id": "entity-uuid",
"legalName": "EXAMPLE LTD",
"companyStatus": "Active",
"countryOfRegistration": "GB",
"jurisdiction": "GB",
"addresses": [],
"identifiers": [],
"relationships": [],
"counterparties": [],
"sourceDocuments": []
},
"searches": [
{
"_id": "abc123searchId",
"caseId": "xyz789caseId",
"userId": "user-uid",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:05.000Z",
"status": "COMPLETED",
"searchInputs": {
"identifier": "09215191",
"jurisdiction": "GB"
}
},
{
"_id": "expand-search-id",
"caseId": "xyz789caseId",
"userId": "user-uid",
"createdAt": "2026-01-15T10:35:00.000Z",
"updatedAt": "2026-01-15T10:35:20.000Z",
"status": "COMPLETED",
"searchType": "expand",
"entityId": "counterparty-uuid",
"searchInputs": {
"identifier": "HRB 12345",
"jurisdiction": "DE"
}
}
]
}
| Field | Type | Description |
|---|---|---|
_id |
string | Case ID |
createdAt / updatedAt |
string | ISO 8601 timestamps |
userId |
string | Case owner UID |
ownerName |
string | Optional. Display name ("First Last") of the case creator captured when the case was created |
organisationId |
string | Optional. Organisation pool ID of the creator when the account belongs to an organisation |
billingMode |
string | Optional. "case" when the case was opened under organisation case-level billing (1 credit per case; 0 per-search charges inside the case). Omitted for standard per-search billing |
target |
Entity | Root company or fund graph (present after a successful root search) |
searches |
SearchSummary[] | Lightweight history of searches on this case |
Search summary fields (case.searches[])
| Field | Type | Description |
|---|---|---|
_id |
string | Search ID |
caseId |
string | Parent case ID |
userId |
string | User UID that initiated the search |
status |
string | PENDING, COMPLETED, FAILED, or EMPTY |
searchInputs |
object | Original request parameters recorded on the search |
searchType |
string | Present for non-corporate-root searches: "expand", "lei", "fund", "iapd", or "expand-layers" |
entityId |
string | Present on "expand" searches: _id of the entity on the case that was expanded |
createdAt / updatedAt |
string | ISO 8601 timestamps |
Note
case.searches[] stores lightweight summaries only: result is stripped from case.searches[]. Poll GET /search/{searchId}/status when you need the full search result.
Example (cURL)¶
Reading ownership structure¶
- Root company:
target - Officers / shareholders / related parties:
target.counterparties[], linked viarelationships[]._parentId - Expand layers: after
POST /search/expand, new counterparties hang under the expanded entity’s id - Proof files:
sourceDocuments[]._documentID→ Document Retrieval
For the full payload of a specific search (including expand result and failure details), call GET /search/{searchId}/status.
Find cases by target legal name¶
Exact match on the stored target.legalName. The caller only sees cases they own (userId). A name that exists only on someone else's account returns an empty array. Cases shared by other users are not included.
The comparison is case-sensitive and ignores leading and trailing spaces on the query. ROASTING PARTY RETAIL LIMITED does not match Roasting Party Retail Limited.
At most 100 cases are returned, newest createdAt first. A case with no target yet (search still running) is not included.
Request¶
Headers
| Header | Value |
|---|---|
X-API-Key or Authorization |
API key or Bearer token |
Query parameters
| Parameter | Type | Description |
|---|---|---|
legal_name |
string | Target legal name. legalName is accepted as the same parameter. |
Response¶
[
{
"caseId": "QQ2e16JcwtRWtcIBhgbJ",
"target": {
"legalName": "ROASTING PARTY RETAIL LIMITED"
},
"createdAt": "2026-10-21T08:28:31.175Z",
"updatedAt": "2026-10-21T08:30:52.424Z"
}
]
No owned case with that name:
| Field | Type | Description |
|---|---|---|
caseId |
string | Case ID. Pass it to GET /casefile/{caseId} for the entity graph |
target.legalName |
string | Stored target legal name |
createdAt / updatedAt |
string | ISO 8601 timestamps |
Example (cURL)¶
curl -sS -G "https://api.revolutio.systems/casefile/" \
--data-urlencode "legal_name=ROASTING PARTY RETAIL LIMITED" \
-H "X-API-Key: $REV_API_KEY" | jq .
/casefile?legal_name= is the same request. The name must match target.legalName on the case, including capitals. If both legal_name and legalName are sent, legal_name is used. Pass a returned caseId to Get case file for the entity graph.