Get data blocks
Retrieve input and output data blocks for a session
Retrieve all data blocks associated with a specific session. Data blocks contain the input data provided when creating the session and output data generated during flow execution.
Endpoint
GET v1/{environment}/sessions/{sessionId}/datablocks
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | The unique identifier of the session |
environment | String | Yes | Environment name |
Request
No request body is required for this endpoint.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token for authentication |
Response
{
"dataBlocks": [
{
"datablockId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "basicIdentity",
"lastStep": {
"stepId": "doc_idv"
},
"createdAt": "2025-10-24T12:30:00Z",
"familyName": "Schmidt",
"givenName": "Max",
"birthDate": "1985-08-22"
},
{
"datablockId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"type": "documentVerification",
"lastStep": {
"stepId": "doc_idv"
},
"createdAt": "2025-10-24T12:30:00Z",
"verdict": {
"status": "VERIFIED"
}
}
]
}
Response parameters
| Parameter | Type | Description |
|---|---|---|
dataBlocks | array | Array of data block objects |
All data blocks include these fields:
| Field | Type | Description |
|---|---|---|
datablockId | string | Unique identifier of the data block (UUID) |
type | string | Type of data block (e.g., basicIdentity, documentVerification) |
lastStep | object | Information about the step that created this data block |
lastStep.stepId | string | Unique identifier of the step that created this data block |
createdAt | string | ISO 8601 timestamp when data block was created |
info
For a complete list of available data block types and their schemas, see Core concepts: Data blocks.
Example
curl https://api.eu.platform.idnow.io/api/v1/live/sessions/123/datablocks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Notes
- Data blocks are sorted by
createdAttimestamp by default - Both input data blocks (provided at session creation) and output data blocks (generated during execution) are returned
- Data blocks are linked to the steps that created them via the
lastStep.stepIdfield - All access attempts are logged for auditability and compliance