Skip to main content

Submit a release with an API key

Everything in Submitting a release can be done without the console. An API key authenticates your scripts or your CI against the same intake pipeline, up to the point a human has to approve.

It is an ordinary HTTP API. curl and jq are enough.

StepCallsHow often
Create the application2once per application
Store the registry login3once per registry
Submit a release and follow it3every release

Get a key​

A Developer Admin mints one under Admin → API keys. That role is held on the organization, not on an account: an account administrator cannot mint a key, and the organization's Admin, Viewer and Auditor roles can read the keys that exist but not create one.

You get two values back, and the key is shown once:

ValueWhat it is
API_KEYthe raw key
API_KEY_IDthe key's UUID

Everything else is a constant or discoverable:

GATEWAY=api.armada.ai

Two more things must be true, and neither is settable through this API:

  • The account has Application Management enabled. Armada controls that; accounts registered as ISVs get it automatically.
  • The role on the key grants application management. Minting a key grants nothing by itself.

Authenticate​

Exchange the key for a bearer token. This is the only unauthenticated call.

TOKEN=$(jq -nc '{api_key: env.API_KEY, api_key_id: env.API_KEY_ID}' \
| curl -sS --fail-with-body -X POST "https://$GATEWAY/v1/auth/token" \
-H 'Content-Type: application/json' --data-binary @- \
| jq -r .data.access_token)

The body is built from the environment and piped in, so the key is never a curl argument. Arguments are readable through ps, and a command you type lands in your shell history.

The field is access_token, not accessToken. Tokens are short-lived relative to the key, so a long poll can outlive one — re-exchange on a 401 or just prior to the expiry time.

Wrap the two headers, so the rest of this page stays short:

api() {
curl -sS --fail-with-body -H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' "$@"
}

Use --fail-with-body, not -f. Both fail the command on a 4xx, but only --fail-with-body keeps the response — and the response is where errorMessage and requestId are. It needs curl 7.76 or newer.

Find your organization and account​

Every endpoint takes both in the path. The key can look them up:

ORG=$(api "https://$GATEWAY/v1/orgs" | jq -r '.data.organization_id')

api "https://$GATEWAY/v1/orgs/$ORG/accounts" \
| jq -r '.data[] | "\(.account_id) \(.account_name)"'

ACC=... # the account you publish from
BASE="https://$GATEWAY/v1/orgs/$ORG/accounts/$ACC"

Pick the account yourself. A key can hold several and none is the default. Taking .data[0] puts your application and vault in whichever came back first, and nothing tells you until the listing appears under the wrong tenant.

The console has it too: Admin → Accounts, open the account, and the UUID is the last part of the address.

Watch the shapes. /v1/orgs returns one organization object; accounts come back as an array. Both use organization_id and account_id, not id.

Every response shares one envelope. Read data on success, errors[0].errorMessage on failure, and quote requestId to Armada:

{ "status": "SUCCESS", "statusCode": 200, "data": {}, "requestId": "..." }
{ "status": "ERROR", "statusCode": 403, "errors": [ ... ] }

1. Create the application​

Two calls: create takes only a name, and intake refuses a release whose listing is incomplete.

APP=$(api -X POST "$BASE/apps" \
-d '{"name":"Acme Collector"}' | jq -r .data.appId)

api -X PATCH "$BASE/apps/$APP" -d '{
"subtitle": "...", "description": "...", "category": "...",
"supportedPlatforms": ["AEP"], "supportedInfrastructure": ["edge"]
}'

Send all five. Without the first four, intake fails with marketplace listing is incomplete and names what is missing. The fifth, supportedInfrastructure, is what moves the application out of DRAFT.

Use the category and platform values the console offers. The API does not validate them, so a typo does not fail — it quietly creates a new storefront grouping.

2. Store the registry login​

A registry vault holds the credentials Armada uses to pull your images. They are your registry's, not something Armada issues, and read-only pull access is enough. registryUrl is the host alone, with no repository path.

VAULT=$(api -X POST "$BASE/vaults" -d '{
"name": "acme-registry", "vaultType": "registry",
"registryUrl": "acme.azurecr.io", "registryType": "ACR"
}' | jq -r .data.id)

A new vault takes a few seconds to go active. A secret written straight away can come back 500 — retry against the same vault.

Username and password are separate calls, and a vault holding only one of them fails later, at image pull. jq reads the values from the environment, so they never appear in ps or your history:

put() {
jq -nc --arg r "$1" --arg e "$2" '{
name: ("acme-registry-" + $r), type: "imagepullsecret",
credentialRef: $r, value: env[$e]
}' | api -X POST "$BASE/vaults/$VAULT/secrets" --data-binary @-
}

put username REGISTRY_USER
put password REGISTRY_PASS

One registry URL gets one vault per account, and that is enforced: a second POST for the same registryUrl is refused with a registry vault already exists for this URL. GET $BASE/image-registries lists what you have — reuse one and update its secrets.

3. Submit the release​

This is the part that repeats. version is semver and unique per application. helmChart.tag is a separate field and must equal the version in your Chart.yaml exactly; they are usually the same string, which is why they get mixed up.

REL=$(jq -nc --arg vault "$VAULT" --arg v 1.0.0 '{
name: "Acme Collector", version: $v, registryVaultId: $vault,
releaseNotes: "Adds a retry on upload; fixes the dashboard time zone.",
helmChart: {
name: "acme", repository: "oci://acme.azurecr.io/acme", tag: $v,
digest: "sha256:<your chart digest>"
}
}' | api -X POST "$BASE/apps/$APP/releases" --data-binary @- \
| jq -r .data.releaseId)

RUN=$(api -X POST "$BASE/apps/$APP/releases/$REL/intake" -d '{}' \
| jq -r .data.intakeId)

api "$BASE/apps/$APP/releases/$REL/intake/$RUN" \
| jq '.data | {intakeStatus, releaseStatus, completedStages}'

Poll every ten seconds or so and allow ten minutes; the test deploy alone can take several. A run stops at the first failure, so later stages never ran — do not read them as passed.

Stop polling when ARMADA_REVIEW appears. It is the sixth and last stage, it is a person rather than a step in the pipeline, and it takes days. Watch completedStages for it: PENDING while the five automated stages run, RUNNING once they have all passed. That is your finish line.

Do not wait for intakeStatus to leave RUNNING. It covers the human review as well, so it reads RUNNING throughout, and it only turns SUCCESS once the release reaches READY_TO_PUBLISH — which takes a console action no key can make. A poll waiting for that never ends.

api "$BASE/apps/$APP/releases/$REL/intake/$RUN" \
| jq -r '.data.completedStages[] | select(.stage == "ARMADA_REVIEW") | .status'

Nothing lists intake runs. If you lose a run id, read the release: GET $BASE/apps/$APP/releases/$REL returns lastIntakeRunId.

That is as far as a key goes; approving and publishing are console actions. Come back later with GET $BASE/apps/$APP/releases/$REL and read releaseStatus: PENDING_APPROVAL is waiting for a reviewer, UNDER_REVIEW means one has it open, READY_TO_PUBLISH or PUBLISHED means it cleared, and REJECTED means it did not.

When a run fails​

A failed release stays editable and keeps its version number. PATCH it and start another intake. Editable means DRAFT, READY_TO_REVIEW, REVIEW_FAILED or REJECTED — not under review, not published. Published version numbers cannot be reused.

If a secret was missing, add an application vault, which takes no registry fields, and then write the secret your chart names. The vault alone changes nothing: SECRET_VALIDATION looks for a secret by name, so an empty vault fails the stage exactly as before.

AV=$(api -X POST "$BASE/vaults" \
-d '{"name":"acme-app-secrets","vaultType":"application"}' \
| jq -r .data.id)

jq -nc --arg n database-url '{name: $n, type: "opaque", value: env.DATABASE_URL}' \
| api -X POST "$BASE/vaults/$AV/secrets" --data-binary @-

The name must match the chart character for character. The value is never read or compared.

When a call is refused​

Three refusals look alike and mean different things. None is transient — do not retry.

errorMessageMeaningWho fixes it
organization and account must be valid identifiersNot a UUIDYou
this account is not enabled for partner application submissionThe account lacks Application ManagementArmada — ask your contact
the API key is not authorized for this organization and accountThe key's role lacks the permission, or the key was granted on a different account scopeYour Developer Admin

An expired or revoked key fails before any of these. Every key has an expiry, shown beside it in Admin → API keys. Once it passes, the token exchange is refused, so you never reach a call that could answer with the table above. A token already issued keeps working for its own short lifetime. Mint a replacement before the key lapses.

Two 404s mean different things. On an application that exists, it belongs to another account — answered as not-found deliberately, so a response cannot be used to enumerate another tenant. A bare 404 page not found means the route is console-only: publishing, approving, debug shells and key minting are not served on this surface at all, so they are missing rather than forbidden.

A 502 with INTAKE_ERR_12 is Armada-side: retry once, then report the requestId.

A 429 is the one refusal worth retrying, and it comes two ways. INTAKE_ERR_13 is a per-minute request budget, counted per route and per tenant — sleep for the Retry-After header and carry on. INTAKE_ERR_14 means the account already holds as many intake runs as it may, across every application it owns and counting any started from the console; there is no Retry-After, because the wait is for a run to finish rather than for a window to roll.

One more shape worth knowing. GET $BASE/apps returns an array, but GET $BASE/apps/$APP/releases returns an object with applicationListing and releases, and a release carries releaseStatus, not status.

Working with skill-based agents​

If you use Claude Code, Armada publishes a plugin that runs the sequence above from the machine your application lives on. It reads your chart, reuses the registry login you already have, and checks the chart locally before spending a run on it.

claude plugin marketplace add https://platform.armada.ai/skills/marketplace.json
claude plugin install armada-app-onboarding@armada-partner-toolkit

Put your key in the environment, open Claude Code in your application's repository, and ask it to onboard the application. It finds the organization and account itself. What it cannot guess is your listing copy and where your chart lives.

The download is checked against a digest in the catalogue, so a tampered archive is refused rather than installed.

This is a convenience, not a requirement — any agent, script or CI job can work just as well against the calls above.

Keeping the plugin current​

An installed plugin stays at its version until you update it:

claude plugin update armada-app-onboarding@armada-partner-toolkit

Restart Claude Code afterwards. If that reports already at the latest version and you expect newer, run claude plugin marketplace update first, then update again.