List attestations for criteria
List attestations matching a search criteria within an organization.
This endpoint returns a dictionary mapping commit SHAs to lists of attestations. Each attestation contains metadata about compliance, timing, and type-specific data.
Usage Examples
Get all attestations for a specific flow
GET /attestations/my-org?flow_name=production-flow
Get security attestations for specific commits
GET /attestations/my-org?attestation_type=snyk&commit_list=ae08fc6a5c963ae8dfaa0c27d8e5de9980d433b6
Get a specific attestation by name
GET /attestations/my-org?attestation_name=manual-test
Get custom attestations
GET /attestations/my-org?attestation_type=custom:security-scan
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
The flow name to search for attestations in
The commit list that the attestations are associated with
^[a-f0-9]{40}$The attestation name to search for
The attestation ID to search for
The attestation type to search for. Use built-in types (e.g., 'junit') or 'custom:' for custom types.
Response
Successfully retrieved attestations
Response model for listing attestations by commit.
This model represents a dictionary mapping commit SHAs to lists of attestations. Each attestation can be of different types (generic, junit, snyk, pull_request, jira, sonar, custom).