REST — the JSON-LD action endpoint
One data-plane endpoint. Wrap any Schema.org entity in CreateAction, SearchAction, FindAction, UpdateAction, or DeleteAction.
One endpoint, five verbs
All tenant data flows through POST /api/action with a bearer JWT. The
action type is the verb; the object (or query) is the payload:
| Action | Purpose |
|---|---|
CreateAction | Create or upsert an entity (idempotent on identifier) |
SearchAction | Semantic + structured search |
FindAction | Exact lookup by @id or identifier |
UpdateAction | Patch an existing entity |
DeleteAction | Remove an entity |
{
"@context": "https://schema.org/",
"@type": "SearchAction",
"query": "first entity",
"object": { "@type": "Product" }
}
Responses are JSON-LD too. SearchAction (and AssessAction) replies are
the completed action node — actionStatus plus a result carrying the
matches — while CreateAction and FindAction return the stored entity
itself. The exact shapes are in the
contract.
The same contract is published as OpenAPI 3.1 at
/api/openapi.json — one action contract, three
descriptions (JSON-LD potentialAction, OpenAPI,
MCP), kept consistent by this site’s CI.
Rules that keep payloads valid
Use native Schema.org properties for data — the platform rejects
additionalProperty stuffing. If your domain needs controlled values,
define them once as a vocab pack and every payload gets validated
against it.
Actions on this page
These actions are also declared in this page's JSON-LD — an agent reading the markup discovers the same contract.
- Create an entity
-
POST https://staging-api.agentdb.com/api/action