Coelevate Documentation
API ReferenceContext Repository

List the sources behind an object

Returns every source an object's history cites, with the versions that cite each, and names the versions that cite none or only a lineage.

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

Returns every source an object's history cites, with the versions that cite each, and names the versions that cite none or only a lineage. Use it to see how well an asset's content is supported.

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
lineage_only_versionsarray of integeryesVersions whose origin is recorded as a lineage but names no source.
object_idstringyesThe object's id.
sourcesarray of objectyesEach source the object's history cites, with the versions that cite it.
unsourced_versionsarray of integeryesVersions that cite no source at all.

Example

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