Grava Docs

Read one recorded artifact with its body

GET/v1/runs/{runId}/artifacts/{artifactId}

The artifact and its body. The body is null when it exceeded the 64 KiB cap; the hash and size still describe what was produced.

AuthorizationBearer <token>

API key shown once at creation and stored as a SHA-256 hash.

In: header

Path Parameters

runId*string
Formatuuid
artifactId*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "artifact": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "attemptId": "ff88f33b-bb8d-4c28-947a-07ff3d628b10",    "stepId": "50e29fb7-490e-4a88-b2f4-2fde4d70423d",    "kind": "plan.output",    "sourceUrl": "http://example.com",    "sha256": "stringstringstringstringstringstringstringstringstringstringstri",    "bytes": 0,    "truncated": true,    "createdAt": "2019-08-24T14:15:22Z",    "body": null  }}