Developer Integration Guide · M2M API v1

Aethercore API API & CI/CD Integration Guide

Integrate deterministic cryptographic compliance attestation into CI/CD pipelines, container builds, and AI runtime guardrails using standard HTTPS JSON endpoints and Bearer authentication.

Zero-JS Interactive Sandbox · script-src 'none'

Test Live Cryptographic Attestation in Your Browser

Submit a sample artifact below to generate a deterministic SHA-256 chain proof and inspect a watermarked demo_... receipt on /v1/verify/demo_... without creating an account or consuming paid tenant quota (rate-limited to 10 requests/hour per IP).

1. Zero-Dependency Python CLI (GET /cli/attest.py)

Stream our self-contained Python 3.9+ standard-library CLI directly into any CI/CD runner. It computes real SHA-256 digests for your artifact and optional SBOM, submits POST /v1/attest with AETHERCORE_API_KEY, prints your verification URL and badge Markdown, and exits non-zero on failure.

1-Line CI/CD CLI Execution (Python 3.9+ stdlib only) GET /cli/attest.py
export AETHERCORE_API_KEY="ac_live_YOUR_API_KEY"
curl -sSL https://aethercore-api.com/cli/attest.py | python3 - --artifact dist/service.tar.gz --sbom sbom.cdx.json --framework COMBINED --assertions '{"pii_redacted":true,"sbom_verified":true}'

2. Issue Attestation (POST /v1/attest)

Authenticate with Authorization: Bearer ac_live_.... Each call appends a SHA-256 hash-chained proof to your tenant ledger and increments monthly usage atomically.

curl — POST /v1/attest 201 Created
curl -sS -X POST https://aethercore-api.com/v1/attest \
  -H "Authorization: Bearer ac_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "artifact_name": "inference-gateway:2.4.1",
    "artifact_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "sbom_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
    "framework": "COMBINED",
    "guardrail_assertions": {
      "article_12_logging": true,
      "cra_annex_i_sbom": true,
      "pii_redacted": true
    }
  }'
Example 201 JSON Response application/json
{
  "attestation_id": "att_0123456789abcdef01234567",
  "chain_proof_sha256": "4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a",
  "verdict": "PASS",
  "issued_at": "2026-11-28T16:15:00Z",
  "verification_url": "https://aethercore-api.com/v1/verify/att_0123456789abcdef01234567"
}

3. Verify Proof & Embed SVG Trust Badge (GET /v1/verify/{attestation_id})

Unauthenticated public proof endpoint returning zero customer PII. Responds with JSON by default or a dark-mode audit proof page when Accept: text/html is sent.

curl — GET /v1/verify/{attestation_id} Zero-PII Ledger
# JSON verification receipt (zero PII)
curl -sS https://aethercore-api.com/v1/verify/att_0123456789abcdef01234567

# Human-readable HTML audit proof
curl -sS -H "Accept: text/html" https://aethercore-api.com/v1/verify/att_0123456789abcdef01234567
Embeddable README & Trust Center Badge (Markdown) GET /badge/{attestation_id}.svg
[![AetherCore Compliance Verified](https://aethercore-api.com/badge/{attestation_id}.svg)](https://aethercore-api.com/v1/verify/{attestation_id})

4. Complete GitHub Actions Workflow

Save this file as .github/workflows/compliance-attestation.yml and bind your repository secret AETHERCORE_API_KEY to the step environment.

.github/workflows/compliance-attestation.yml GitHub Actions CI/CD
name: Compliance Attestation Gate
on:
  push:
    branches: [main]
  pull_request:
jobs:
  attest:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Checkout source
        uses: actions/checkout@v4
      - name: Compute Artifact & SBOM SHA-256 Digests
        run: |
          sha256sum dist/service.tar.gz | awk '{print $1}' > artifact.sha256
          sha256sum sbom.cdx.json | awk '{print $1}' > sbom.sha256
      - name: Issue Tamper-Evident Attestation
        env:
          AETHERCORE_API_KEY: $AETHERCORE_API_KEY
        run: |
          ARTIFACT_SHA=$(cat artifact.sha256)
          SBOM_SHA=$(cat sbom.sha256)
          curl -fsSL -X POST "https://aethercore-api.com/v1/attest" \
            -H "Authorization: Bearer ${AETHERCORE_API_KEY}" \
            -H "Content-Type: application/json" \
            -d "{\"artifact_name\":\"core-service:${GITHUB_SHA}\",\"artifact_sha256\":\"${ARTIFACT_SHA}\",\"sbom_sha256\":\"${SBOM_SHA}\",\"guardrail_assertions\":{\"sbom_verified\":true,\"pii_redacted\":true},\"framework\":\"COMBINED\"}"

5. Request Schema & HTTP Status Reference

Field Type Constraints Description
artifact_name string 1..512 chars, non-blank Logical service, container tag, or model artifact identifier.
artifact_sha256 string 1..256 chars, non-blank Hexadecimal SHA-256 digest of the build binary, tarball, or image manifest.
sbom_sha256 string 1..256 chars, non-blank Hexadecimal SHA-256 digest of the CycloneDX 1.6 or SPDX 2.3 SBOM document.
framework enum EU_AI_ACT | EU_CRA | COMBINED Target regulatory compliance framework for the attestation record.
guardrail_assertions object JSON key-value map Boolean or structured policy checks evaluated prior to attestation issuance.
HTTP Status Endpoint(s) Meaning
200 OK GET /v1/verify/{id}, GET /badge/{id}.svg, GET /cli/attest.py, GET /health Verification proof, SVG badge, CLI script retrieved cleanly, or service probe healthy.
201 Created POST /v1/attest Chained cryptographic attestation persisted and receipt issued.
401 Unauthorized POST /v1/attest, POST /portal Missing, malformed, or unrecognized ac_live_... Bearer token.
403 Forbidden POST /v1/attest Matched tenant subscription is currently suspended.
404 Not Found GET /v1/verify/{id}, GET /badge/{id}.svg No attestation record exists for the requested identifier (badge returns neutral UNVERIFIED SVG).
422 Unprocessable Entity POST /v1/attest JSON body failed Pydantic field or framework enum validation.
429 Too Many Requests POST /v1/attest Tenant monthly cryptographic attestation quota has been exhausted.

6. Regulatory Playbooks & Guides