ErrorDetail¶
An ErrorDetail is one error, with what went wrong inside (cause) and the request's metadata, never its
body: every error ObjectsGrid answers an authenticated caller of your Organization Account, whose response's
instance is its URL, and the errors your own API stores. Administrators read them, and the accounts your policy
allows; they are never read anonymously.
Read one with GET /errordetails/<id>, or a request's with GET /errordetails?traceId=<trace id>; they can't be
listed or searched otherwise. Your API stores its own with POST /errordetails or POST /errordetails/batch.
ErrorDetails can't be changed or deleted: they are kept 90 days, then deleted. See Error details.
Example¶
Create one with POST /errordetails:
{
"id": "01JF8Q2M7XK4T9B3W6Y5N0R1ZC",
"code": "ACCESS_DENIED",
"domain": "objectsgrid.com",
"status": 401,
"title": "Not allowed by the access policy",
"detail": "You are not authorized to retrieve this object.",
"cause": "No rule of the access policy abac-policy--org-123-4567 (version 3) allows the action retrieve on Offer for ServiceAccount sa-42, tagged role=reporting.",
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"organizationAccountID": "org-123-4567",
"request": {
"method": "GET",
"path": "/offers/o-1",
"accessPoint": "EU",
"service": "offers"
},
"caller": {
"subjectKind": "ServiceAccount",
"accountId": "sa-42"
},
"dateCreated": "2026-12-03T10:00:00.123Z",
"expires": "2027-03-03T10:00:00.123Z"
}
Fields¶
Required: code, domain, status.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | The object's id. Assigned by ObjectsGrid when the object is created. | |
code |
string | Yes | The error's code: an ObjectsGrid code, or, for a customer's own error, a code of its DefinedTermSet |
domain |
string | Yes | Who defines the code: objectsgrid.com, or the customer's DefinedTermSet's domain. A customer's own errors can't use objectsgrid.com |
status |
integer | Yes | The HTTP status answered |
title |
string | The code's summary | |
detail |
string | What the caller was told | |
reasons |
list of string | The reasons the caller was told | |
cause |
string | What went wrong inside, for the Organization Account's engineers: the policy rule that denied, the upstream service and the status it answered, the schema path that failed. Never personal data | |
traceId |
string | The request's trace id: GET /errordetails?traceId= finds its errors | |
organizationAccountID |
string | The Organization Account it belongs to. Set by ObjectsGrid | |
request |
object | The request's metadata: never its body or header values | |
request.method |
string | The HTTP method | |
request.path |
string | The path | |
request.query |
string | The query string, with the values of personal fields (email, telephone) removed | |
request.accessPoint |
string | EU or US | |
request.service |
string | The service that answered | |
caller |
object | Who sent the request | |
caller.subjectKind |
string | UserAccount, ServiceAccount or Anonymous | |
caller.accountId |
string | The account's id | |
caller.apiKeyId |
string | The public service account of an anonymous request | |
caller.origin |
string | The browser origin | |
caller.userAgent |
string | The User-Agent | |
dateCreated |
date-time | When it happened. Set by ObjectsGrid | |
expires |
date-time | When it is deleted: 90 days after dateCreated. Set by ObjectsGrid |
REST API¶
Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.
| Operation | Request |
|---|---|
| Create | POST /errordetails |
| List and search | GET /errordetails |
| Create up to 100 at once | POST /errordetails/batch |
| Retrieve | GET /errordetails/{id} |
The OpenAPI contract, with every parameter and response: ErrorDetails (JSON).
GraphQL¶
Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.
| Operation | Field |
|---|---|
| Query | errorDetail(id: ID!): ErrorDetail |