Skip to main content
POST
/
api
/
v1
/
volumes
/
{name}
/
{version}
/
trust
/
uploads
Create a trust attachment upload intent for an unscoped release
curl --request POST \
  --url https://api.example.com/api/v1/volumes/{name}/{version}/trust/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": {
    "purl": "<string>",
    "integrity": "<string>"
  },
  "attachment": {
    "format": {
      "family": "<string>",
      "mediaType": "<string>",
      "predicateType": "<string>",
      "profile": "<string>",
      "version": "<string>"
    }
  },
  "declaredDigest": "<string>",
  "declaredSize": 1
}
'
{
  "uploadId": "<string>",
  "subject": {
    "purl": "<string>",
    "integrity": "<string>"
  },
  "attachment": {
    "format": {
      "family": "<string>",
      "mediaType": "<string>",
      "predicateType": "<string>",
      "profile": "<string>",
      "version": "<string>"
    }
  },
  "declaredDigest": "<string>",
  "upload": {
    "instructionType": "<string>",
    "url": "<string>",
    "method": "<string>",
    "headers": {}
  },
  "expiresAt": "2023-11-07T05:31:56Z",
  "declaredSize": 1,
  "idempotencyKey": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://agentvolumes.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Preferred portable idempotency key. If this header and a body idempotencyKey are both present, they MUST match exactly.

Path Parameters

name
string
required
Maximum string length: 128
Pattern: ^(?!.*--)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$
version
string
required
Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$

Body

application/json
subject
object
required
attachment
object
required
declaredDigest
string
required
Pattern: ^sha256:[a-f0-9]{64}$
declaredSize
integer
Required range: x >= 0

Response

Upload intent created. Upload instructions are opaque implementation data.

uploadId
string
required
Minimum string length: 1
subject
object
required
attachment
object
required
declaredDigest
string
required
Pattern: ^sha256:[a-f0-9]{64}$
upload
object
required
expiresAt
string<date-time>
required
state
enum<string>
required
Available options:
pending-upload,
uploading,
uploaded,
expired,
failed
declaredSize
integer
Required range: x >= 0
idempotencyKey
string