Skip to content
AdiosDocumentation
Browse documentation

Source artifacts API

Read source snapshot metadata used by builds and workspace hydration. Artifacts are created through source upload and build workflows.

Use API authentication for protected requests. Examples use your own resource IDs and a temporary token; saved response examples are synthetic.

MethodPathOperation
GET/v1/source_artifactList source artifacts
GET/v1/source_artifact/{id}Get source artifact

List source artifacts

GET /v1/source_artifact

Returns a paginated list of SourceArtifact

Authentication: bearer token and the team header shown below.

Parameters

NameLocationRequiredDescription
X-Tenant-IDheaderyesActive team ID. Must match the tenant bound to a diagnostic token.
pagequerynoPage number
per_pagequerynoItems per page

Request example

Set ADIOS_API_URL=https://api.adios.dev. For protected requests, set ADIOS_ACCESS_TOKEN and ADIOS_TEAM_ID as in the quickstart. Set any additional ADIOS_* variables from your own resource results.

curl --fail-with-body --request GET "$ADIOS_API_URL/v1/source_artifact" \
  -H "Authorization: Bearer $ADIOS_ACCESS_TOKEN" \
  -H "X-Tenant-ID: $ADIOS_TEAM_ID"

Response: HTTP 200

List of SourceArtifact

Response fields

FieldTypeDescription
dataarray
data[].branchstring
data[].build_idstringBuild that was produced from this source snapshot
data[].commit_shastring
data[].content_typestring
data[].created_atinteger(Unix timestamp)
data[].deleted_atinteger(Unix timestamp)
data[].digeststringContent digest of the source bundle
data[].metadataobject
data[].repository_urlstringGit repository URL when source_type is git
data[].size_bytesinteger
data[].source_artifact_idstring
data[].source_typestringAllowed: upload, git, workspace, template, unknown.
data[].system_artifact_idstringSystem object artifact identifier for the source bundle
data[].system_object_keystring
data[].system_uristring
data[].team_idstring
data[].updated_atinteger(Unix timestamp)
data[].workload_idstring
paginationobject
pagination.pageintegerCurrent page number
pagination.per_pageintegerNumber of items per page
pagination.totalintegerTotal number of items

Illustrative example; not a live response:

{
  "data": [
    {
      "branch": "",
      "build_id": "example",
      "commit_sha": "",
      "content_type": "",
      "created_at": 1791072000,
      "deleted_at": 0,
      "digest": "",
      "metadata": {},
      "repository_url": "example",
      "size_bytes": 0,
      "source_artifact_id": "000000000000000000000000001",
      "source_type": "unknown",
      "system_artifact_id": "example",
      "system_object_key": "",
      "system_uri": "",
      "team_id": "000000000000000000000000001",
      "updated_at": 1791072000,
      "workload_id": "000000000000000000000000001"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 1,
    "total": 1
  }
}

Get source artifact

GET /v1/source_artifact/{id}

Returns a single SourceArtifact

Set source_artifact_id using IDs from your own API responses.

Authentication: bearer token and the team header shown below.

Parameters

NameLocationRequiredDescription
idpathyesResource identifier from your team's API results.
X-Tenant-IDheaderyesActive team ID. Must match the tenant bound to a diagnostic token.

Request example

Set ADIOS_API_URL=https://api.adios.dev. For protected requests, set ADIOS_ACCESS_TOKEN and ADIOS_TEAM_ID as in the quickstart. Set any additional ADIOS_* variables from your own resource results.

curl --fail-with-body --request GET "$ADIOS_API_URL/v1/source_artifact/${ADIOS_SOURCE_ARTIFACT_ID}" \
  -H "Authorization: Bearer $ADIOS_ACCESS_TOKEN" \
  -H "X-Tenant-ID: $ADIOS_TEAM_ID"

Response: HTTP 200

SourceArtifact

Response fields

FieldTypeDescription
branchstring
build_idstringBuild that was produced from this source snapshot
commit_shastring
content_typestring
created_atinteger(Unix timestamp)
deleted_atinteger(Unix timestamp)
digeststringContent digest of the source bundle
metadataobject
repository_urlstringGit repository URL when source_type is git
size_bytesinteger
source_artifact_idstring
source_typestringAllowed: upload, git, workspace, template, unknown.
system_artifact_idstringSystem object artifact identifier for the source bundle
system_object_keystring
system_uristring
team_idstring
updated_atinteger(Unix timestamp)
workload_idstring

Illustrative example; not a live response:

{
  "branch": "",
  "build_id": "example",
  "commit_sha": "",
  "content_type": "",
  "created_at": 1791072000,
  "deleted_at": 0,
  "digest": "",
  "metadata": {},
  "repository_url": "example",
  "size_bytes": 0,
  "source_artifact_id": "000000000000000000000000001",
  "source_type": "unknown",
  "system_artifact_id": "example",
  "system_object_key": "",
  "system_uri": "",
  "team_id": "000000000000000000000000001",
  "updated_at": 1791072000,
  "workload_id": "000000000000000000000000001"
}