Skip to navigation

Pull collection definition (config-as-code)

Return the canonical config-as-code definition and provenance for a collection — the absorb-drift direction of the ensure protocol. The contentHash is recomputed from the live collection, so it is accurate even immediately after a dashboard edit.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

slugstringRequired

Response

Canonical definition + provenance

collectionIdstring
contentHashstring
definitionobject
lastModifiedSourcestring or null
updatedAtstring or null

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error