API REFERENCE

Pipelines

14 endpoints discovered from this archive’s backend.

Set these variables first
export ALPHIE_URL="https://YOUR-ALPHIE-HOST"
export ALPHIE_TOKEN="PASTE_YOUR_API_TOKEN_HERE"
# Requires a certificate trusted by your machine. For test-only self-signed certificates,
# use curl --cacert /path/to/alphie.crt (preferred) rather than disabling TLS verification.

Most authenticated endpoints accept Authorization: Bearer $ALPHIE_TOKEN. Endpoints can still require administrator permissions or particular roles. API tokens must be provisioned through an authorized Alphie account; don't put secrets in playbooks, logs, or browser-side forms.

GET/api/pipelines

List pipelines

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

POST/api/pipelines

Create pipeline

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/pipelines" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

GET/api/pipelines/

List pipelines

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

POST/api/pipelines/

Create pipeline

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/pipelines/" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

GET/api/pipelines/runs

List pipeline runs

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/runs" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

DELETE/api/pipelines/runs/{run_id:int}

Delete pipeline run

curl --fail-with-body -sS -X DELETE "$ALPHIE_URL/api/pipelines/runs/${RUN_ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

GET/api/pipelines/runs/{run_id:int}

Get pipeline run

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/runs/${RUN_ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

POST/api/pipelines/runs/{run_id:int}/cancel

Cancel pipeline

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/pipelines/runs/${RUN_ID}/cancel" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

GET/api/pipelines/runs/{run_id:int}/file-log

Pipeline file log

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/runs/${RUN_ID}/file-log" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

GET/api/pipelines/runs/{run_id:int}/file-log/tail

Tail pipeline file

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/runs/${RUN_ID}/file-log/tail" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

DELETE/api/pipelines/{pipeline_id:int}

Delete pipeline

curl --fail-with-body -sS -X DELETE "$ALPHIE_URL/api/pipelines/${PIPELINE_ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

GET/api/pipelines/{pipeline_id:int}

Get pipeline

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/pipelines/${PIPELINE_ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

PUT/api/pipelines/{pipeline_id:int}

Update pipeline

curl --fail-with-body -sS -X PUT "$ALPHIE_URL/api/pipelines/${PIPELINE_ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

POST/api/pipelines/{pipeline_id:int}/run

Run pipeline

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/pipelines/${PIPELINE_ID}/run" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.