Wishlists, questions and messages¶
Three things nearly every shop, hotel or marketplace needs besides what it sells: lists of things, questions about them, and messages with customers. ObjectsGrid keeps them in Schema.org's types: ItemList, Question and Answer, Conversation and Message.
Wishlists and lists¶
An ItemList's entries reference any object: products, offers, places, events, rooms.
curl -X POST https://apis.objectsgrid.com/itemlists -H 'X-ObjectsGrid-AccessPoint: EU' -H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' -d '{
"name": [{"at_language": "en", "at_value": "Wishlist"}],
"author": {"at_id": "https://apis.objectsgrid.com/persons/<shopper>"},
"tags": [{"name": "list-type", "val": "wishlist"}],
"itemListElement": [{"position": 1, "item": {"at_id": "https://apis.objectsgrid.com/products/<kettle>"},
"dateAdded": "2026-12-03T10:00:00Z"}]}'
- A wishlist is an ItemList tagged
list-type=wishlist, with the shopper asauthor: Schema.org has no wishlist type. A shopper's wishlists are a list away:GET /itemlists?where={"author": {"id": {"equals": "<shopper>"}}}. - Your own lists ("Staff picks", "Top 10 restaurants in Lyon") have your Organization as
author. Tag themvisibility=publicand a new account's default policy lets your site read them with its public API key; a shopper's wishlist stays private. numberOfItemsis set by ObjectsGrid. GraphQL reads a list with the objects it lists in one request:itemList(id: "...") { itemListElement { position item { ... on Product { name offers { items { price } } } } } }.- A wishlist has no prices and never checks out: "move to cart" is your app adding a line to a Cart.
Questions and answers¶
A Question is about the object asked about; an Answer's parentItem is its Question.
{"name": [{"at_language": "en", "at_value": "Is it quiet when it boils?"}],
"about": {"at_id": "https://apis.objectsgrid.com/products/<kettle>"},
"author": {"at_id": "https://apis.objectsgrid.com/persons/<shopper>"}}
- Answers are listed from Answer,
GET /answers?where={"parentItem": {"id": {"equals": "<question>"}}}, or in GraphQL as the Question'ssuggestedAnswer. Patch the Question'sacceptedAnswerto the one chosen. - Votes are
upvoteCountanddownvoteCount, which your app patches; who voted isn't stored. - Moderation is your app's and the access policy's: tag a Question or Answer
visibility=publiconce it is approved, and a new account's default policy shows anonymous callers only those. - Webhooks
QuestionCreatedandAnswerCreatedtell your team a question is waiting.
An FAQ you write yourself isn't this: it is page content.
Conversations and messages¶
A Conversation is a thread between you and a customer: a buyer asking about a listing, a guest writing before arrival.
Each Message is in one Conversation (isPartOf), from a sender.
{"isPartOf": {"at_id": "https://apis.objectsgrid.com/conversations/<thread>"},
"sender": {"at_id": "https://apis.objectsgrid.com/persons/<guest>"},
"text": "Can we check in early?"}
- A message's text is personal data. When the sender is a Person, the text is encrypted with that Person's key: erasing the Person erases their words, while your replies stay readable. Text is never searchable and never in events or webhooks.
- Private. Conversations and Messages have no JSON-LD document, and the default policy never shows them to
anonymous callers. Give your app's users access to their own conversations with a policy rule on a tag such as
participant= their id. - Not a chat service. ObjectsGrid stores messages and calls your webhook on
MessageCreated; push notifications, typing indicators and read receipts are your app's (dateReadis yours to set). - A Conversation lists its Messages in GraphQL (
hasPart), orGET /messages?where={"isPartOf": {"id": {"equals": "<thread>"}}}.