Skip to content

Read, list and filter

Read one instance

GET /v4/instances/{id}?stage=IN_PROGRESS

The response contains the payload, a single @type, the plain UUID as @id and _space. You need READ for the in-progress stage and READ_RELEASED for the released stage, unless an invitation covers the instance. Invitations only apply to the in-progress stage.

Read several instances at once

Endpoint Body
POST /v4/instancesByIds?stage=... JSON array of UUIDs
POST /v4/instancesByIdentifiers?stage=... JSON array of identifiers

The result maps each requested value to its own result.

List instances

GET /v4/instances?stage=RELEASED&type=https://example.org/types/Book&sortBy=LAST_MODIFICATION&sortDirection=DESC&size=20

The list only contains what you may read.

Filter Description
type Type IRI. Repeat for several (OR).
space Space name. Repeat for several (OR).
searchByLabel Text to find in the instance's label, its searchable properties or its UUID (case-insensitive)
favoritesOnly=true Only your favorites
withContribution=true Only instances you have contributed to
releaseStatus RELEASED, HAS_CHANGED, UNRELEASED. Repeat for several (OR).

All filters can be combined. In the RELEASED stage only RELEASED and HAS_CHANGED can match, since other instances don't exist in that stage. releaseStatus describes the instance itself, not what it links to.

Sorting

sortBy Sorts by
NAME (default) The instance's label
TYPE The type's label, then the instance's label
LAST_MODIFICATION The last update in progress, the last release in the released stage

sortDirection is ASC (default) or DESC. Text is compared case-insensitively. Instances without a value are always listed last, in both directions.

Labels come from the type

An instance has a label only if its type's specification names a labelProperty. The same goes for searchByLabel and the type's searchableProperties.

Response options

These parameters add information to the response. Add only what you need, since each has a cost. They work on every /v4 endpoint returning instances unless noted.

Parameter Adds Notes
returnPayload=false Omits the payload
returnPermissions _permissions: what you may do with the instance
returnAlternatives _alternative: all contributed values per property and which one is selected In-progress only. The contributing users are shown only with READ_CONTRIBUTORS.
returnSummaryOfOutgoingLinks Details of each link
returnValidationResults _validation: stored validation findings In-progress only
returnReleaseStatus _releaseStatus
returnTimestamps _timestamps: createdAt, firstReleaseAt, lastReleaseAt, lastUpdateAt
returnContributors _contributors: username and name of everyone who has contributed Needs READ_CONTRIBUTORS, otherwise omitted
returnFavorite _isFavorite
returnHasContributed _hasContributed Only reveals your own contribution