Skip to main content
GET
Get an application's App Contract

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

application_id
string
required

Query Parameters

commit_sha
string

The analysed commit whose contract to return; without it, the most recently analysed one.

Pattern: ^[0-9a-f]{7,64}$

Response

The stored contract, or nulls when none has been extracted

One analysed commit's App Contract (schema ankra.app-contract/v1, enginekit/appcontract). Null fields mean no contract has been extracted for the application yet, not that the repository declares nothing.

application_id
string
required
commit_sha
string | null
required
schema_version
string | null
required
analysed_at
string<date-time> | null
required
contract
Contract · object | null
required

The contract document: source, completeness, components, network, environment, dependencies, migrations, build_inputs, health, exposure.