23.2 Example API Requests/Responses

Orbnetes deployment and release orchestration documentation for operators and platform teams.

Example API Requests/Responses

Replace HOST, TOKEN, PROJECT_UUID, and IDs with your values.

A) Get current user context

curl -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/me"

Example response:

{
  "data": {
    "id": 1,
    "name": "Admin",
    "email": "[email protected]"
  }
}

B) List projects available to current user

curl -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/me/projects"

C) List blueprints in project

curl -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/blueprints?project_uuid=PROJECT_UUID"

D) Run blueprint (standalone)

curl -X POST \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "project_uuid":"PROJECT_UUID",
    "title":"API run demo",
    "launch_inputs":{"target_env":"qa"}
  }' \
  "https://HOST/api/v1/blueprints/12/run"

E) Create release

curl -X POST \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "project_uuid":"PROJECT_UUID",
    "title":"Deploy v1.4.2",
    "job_preset_id":12,
    "release_source_id":3,
    "selected_tag":"v1.4.2",
    "selected_asset_name":"app-linux-amd64.tar.gz",
    "environment_ids":[2],
    "deployment_mode":"sequential",
    "launch_inputs":{"target_env":"prod"},
    "approver_user_ids":[5,7]
  }' \
  "https://HOST/api/v1/releases"

F) Approve release

curl -X POST \
  -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/releases/55/approve?project_uuid=PROJECT_UUID"

G) Pipeline and logs

curl -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/pipelines/PIPELINE_ID?project_uuid=PROJECT_UUID"

curl -H "Authorization: Bearer TOKEN" \
  "https://HOST/api/v1/job-runs/101/logs?project_uuid=PROJECT_UUID&limit=200"