Get durable status of an asynchronous operation
New public abstraction over service-owned asynchronous jobs. Only the initiating integration with operation-specific authority can read it. Used by exports, account erasure and stored-document processing in this draft; document erasure can adopt it after its initiation contract is designed. Retained copies and holds are explicit; a missed webhook does not prevent polling.
Path Parameters
- Type: stringoperation
Id min length:1max length:255required
Responses
- application/json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
Request Example for get/operations/{operationId}
curl 'https://api.eno.health/operations/{operationId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"id": "string",
"type": "export",
"status": "queued",
"userId": "usr_01JA2Y7Q3K8V5T0N4R6M2P9XWE",
"documentId": "string",
"scrubPII": true,
"attempt": 1,
"createdAt": "2026-11-16T17:41:55.289Z",
"updatedAt": "2026-11-16T17:41:55.289Z",
"result": {
"resourceId": "string",
"resourceUrl": "../folder"
},
"failureCode": "string",
"retainedCopies": [
{
"category": "string",
"status": "retained",
"expiresAt": "2026-11-16T17:41:55.290Z"
}
]
}