POST
/
v1
/
attestations
Creates and attestation from a piece of content
curl --request POST \
  --url https://api.app.chainloop.dev/v1/attestations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "content": "aSDinaTvuI8gbWludGxpZnk=",
  "project_name": "<string>"
}'
{
  "attestation": {
    "digest": "digest",
    "id": "id"
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Body

application/json

Request to create and store an attestation

name
string

The name of the material in the attestation, in RFC 1123 label format (lowercase letters, numbers, and hyphens).

content
string<byte>
project_name
string

The project name for project-scoped attestations. If omitted, Org Admin role will be required. RBAC will be applied otherwise.

Response

A successful response.

Response for the attestation creation request

attestation
object
Example:
{ "digest": "digest", "id": "id" }