const dataBlockId = '22222222';
const response = await fetch(`https://service.pcibooking.net/api/datablock/${dataBlockId}/data`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const content = await response.text();
console.log(content);
import requests
data_block_id = '22222222'
response = requests.get(
f'https://service.pcibooking.net/api/datablock/{data_block_id}/data',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.text)
The response body contains the uploaded content with the original Content-Type header.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}
{
"code": -1003,
"message": "Not authorized to access this resource",
"moreInfo": "Bad or missing authorization data, expected APIKEY",
"errorList": null
}
{
"code": -1001,
"message": "Uri not found",
"moreInfo": "Data block not found",
"errorList": null
}
Data Blocks
Download Data Block Content
Download the raw stored content (text, JSON, image, PDF, or other file) of a data block by its token ID.
GET
/
api
/
datablock
/
{id}
/
data
const dataBlockId = '22222222';
const response = await fetch(`https://service.pcibooking.net/api/datablock/${dataBlockId}/data`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const content = await response.text();
console.log(content);
import requests
data_block_id = '22222222'
response = requests.get(
f'https://service.pcibooking.net/api/datablock/{data_block_id}/data',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.text)
The response body contains the uploaded content with the original Content-Type header.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}
{
"code": -1003,
"message": "Not authorized to access this resource",
"moreInfo": "Bad or missing authorization data, expected APIKEY",
"errorList": null
}
{
"code": -1001,
"message": "Uri not found",
"moreInfo": "Data block not found",
"errorList": null
}
Data Block Tokenization Guide
Store and manage arbitrary data securely with GDPR-compliant storage locations
Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
| 401 | -1003 | Not authenticated. The API key is missing or invalid. |
| 403 | -1003 | Not authorized. The authenticated user does not own this data block or lacks the CanRetrieveData permission. |
| 404 | -160 | Data block not found, or the data block exists but has no uploaded content. |
| 500 | -150 | Internal system error. |
Parameters
Headers
string
required
Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. See the Authentication guide.Path Parameters
string
required
The ID of the data block returned in the create method.
const dataBlockId = '22222222';
const response = await fetch(`https://service.pcibooking.net/api/datablock/${dataBlockId}/data`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const content = await response.text();
console.log(content);
import requests
data_block_id = '22222222'
response = requests.get(
f'https://service.pcibooking.net/api/datablock/{data_block_id}/data',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.text)
Response
The response body contains the uploaded content with the original Content-Type header.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}
{
"code": -1003,
"message": "Not authorized to access this resource",
"moreInfo": "Bad or missing authorization data, expected APIKEY",
"errorList": null
}
{
"code": -1001,
"message": "Uri not found",
"moreInfo": "Data block not found",
"errorList": null
}

