Coelevate Documentation
API ReferenceContext Repository

Get an object's revisions

Returns every revision of one context object, oldest to newest: the version each made, who wrote it, why, and from which sources.

GET /context/v1/context-history/{object_id}

Returns every revision of one context object, oldest to newest: the version each made, who wrote it, why, and from which sources. Use GET context-versions/{object_id} to read the archived bodies themselves.

Requires the context:read scope.

Parameters

ParameterLocationRequiredDescription
object_idpathyesThe id of the context object.

Responses

StatusMeaning
200The request succeeded.
401The token is missing, expired or invalid.
403The token does not carry the scope this operation requires.
404No such project, or the token belongs to a different project.
422The request was not valid: a parameter or the body failed validation.

The 200 response body:

FieldTypeRequiredDescription
historyarray of objectyesThe revisions of the object. Each names the version it made, who wrote it, why and from which sources.
object_idstringyesThe object's id.

Example

curl -sS "$API_URL/context/v1/context-history/$OBJECT_ID" \
  -H "Authorization: Bearer $TOKEN"