Skip to main content

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. This endpoint supports both input and output data block retrieval with pagination.

Endpoint

GET v1/{environment}/sessions/{sessionId}/datablocks

Path parameters

ParameterTypeRequiredDescription
sessionIdstringYesThe unique identifier of the session
environmentStringYesEnvironment name

Request

No request body is required for this endpoint.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication

Response

{
"datablocks": [
{
"type": "BasicIdentity",
"createdByStep": "doc_idv",
"createdAt": "2025-10-24T12:30:00Z",
"name": "Schmidt",
"familyName": "Schmidt",
"givenName": "Max",
"birthDate": "1985-08-22"
},
{
"type": "Credentials",
"createdByStep": "doc_idv",
"createdAt": "2025-10-24T12:30:00Z",
"credentialType": "io.idnow.idcheckio.<document code>",
"issuanceDate": "2025-12-07",
"expiryDate": "2035-12-07",
"issuer": {}
}
]
}

Response parameters

ParameterTypeDescription
datablocksarrayArray of data block objects

All data blocks include these fields:

FieldTypeDescription
typestringType of data block (e.g., BasicIdentity, Credentials)
createdByStepstringStep that created this data block
createdAtstringISO 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 createdAt timestamp 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 createdByStep field
  • All access attempts are logged for auditability and compliance