Read models in one request
Up to 50 independent point reads or list pages. Each slot retains its own result or typed error; reads are not an atomic snapshot.
POST
/v1/readsRequest body
requiredapplication/jsonreadsobject[]requiredmin items 1 · max items 50
Show propertiesHide properties
Array of
objectOne of:
object
kindstringrequiredmodelstringrequiredmin length 1
idstringrequiredmin length 1
object
kindstringrequiredmodelstringrequiredmin length 1
queryobjectrequiredResponses
200Ordered model envelopes and per-read errors.
resultsobject[]requiredmin items 1 · max items 50
Show propertiesHide properties
Array of
objectAny of:
object
resultobjectrequiredShow propertiesHide properties
Any of:
object
objectstringrequiredmodelstringrequiredidstringrequireddataanyrequiredstampnumberrequiredclaimsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredactorstringrequiredparticipantKindstringrequiredAllowed:
useragentsystemonBehalfOfIdstring | anyShow propertiesHide properties
Any of:
string
stringany
anyonBehalfOfKindstring | anyShow propertiesHide properties
Any of:
string
stringany
anycapabilityIdstring | anyShow propertiesHide properties
Any of:
string
stringany
anydescriptionstringstatusstringAllowed:
activequeuedpositionintegermin 0 · max 9007199254740991
expiresAtintegerrequiredmin -9007199254740991 · max 9007199254740991
fenceTokenintegermin -9007199254740991 · max 9007199254740991
targetobjectrequiredShow propertiesHide properties
modelstringrequiredidstringrequiredfieldstringfieldsstring[]metaobjectmetaobjectfieldstringobject
objectstringrequireddataany[]requiredhas_morebooleanrequirednext_cursorstring | anyrequiredShow propertiesHide properties
Any of:
string
stringany
anymodelstringrequiredstampnumberrequiredevidenceobject[]Show propertiesHide properties
Array of
objectidstringrequiredmin length 1
stampintegerrequiredmin 0 · max 9007199254740991
object
statusintegerrequiredmin 400 · max 599
errorobjectrequiredShow propertiesHide properties
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring400The request did not satisfy the published contract.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring401The Bearer credential is missing, malformed, or expired.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring403The credential does not authorize this operation.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring404The addressed resource does not exist in the credential scope.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring409The request conflicts with current claim, version, or idempotency state.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring429The caller exceeded an enforced rate limit.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring500The server could not complete the request.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring503A required service is temporarily unavailable.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstringdefaultAn HTTP error not otherwise listed; decoded through the canonical envelope.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringevent_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstringRequest
curl -X POST "https://api.abloatai.com/api/v1/reads" \
-H "Content-Type: application/json" \
-d '{
"reads": [
{
"kind": "read",
"model": "string",
"id": "string"
}
]
}'const response = await fetch("https://api.abloatai.com/api/v1/reads", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"reads": [
{
"kind": "read",
"model": "string",
"id": "string"
}
]
})
});import requests
response = requests.post(
"https://api.abloatai.com/api/v1/reads",
headers={
"Content-Type": "application/json"
},
json={
"reads": [
{
"kind": "read",
"model": "string",
"id": "string"
}
]
},
)Response
{
"results": [
{
"result": {
"object": "model",
"model": "string",
"id": "string",
"data": "string",
"stamp": 0,
"claims": [
{
"id": "string",
"actor": "string",
"participantKind": "user",
"onBehalfOfId": "string",
"onBehalfOfKind": "user",
"capabilityId": "string",
"description": "string",
"status": "active",
"position": 0,
"expiresAt": 0,
"fenceToken": 0,
"target": {
"model": "string",
"id": "string",
"field": "string",
"fields": [
"string"
],
"meta": {}
},
"meta": {},
"field": "string"
}
]
}
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"event_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}