Pull surface definition (config-as-code)

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

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Query parameters

namestringRequired>=1 character

Response

Canonical definition + provenance

contentHashstring
definitionobject
lastModifiedSourcestring or null
surfaceIdstring
updatedAtstring or null

Errors

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