Skip to content

API

The public API is at https://api.nultr.com. Ten endpoints, bearer auth with a key from the dashboard. The CLI and Action above call these on your behalf. The API is part of Business and Enterprise.

Authentication

Create an API key in the dashboard and send it as a bearer token on api.nultr.com. Keys are workspace-scoped and revocable.

curl https://api.nultr.com/jobs \
  -H "Authorization: Bearer $NULTR_API_KEY"

Submit and poll

# submit a build
curl -X POST https://api.nultr.com/jobs \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -F [email protected] \
  -F app_id=$NULTR_APP_ID

# poll until ready, then download
curl https://api.nultr.com/jobs/{id} \
  -H "Authorization: Bearer $NULTR_API_KEY"
# → { "status": "queued" | "running" | "ready" | "failed", … }
EndpointWhat it does
GET /jobsList your jobs. Optional app_id, status and limit (up to 100).
GET /jobs/quote?app_id={id}How the next build of an app is paid for (plan, trial or a build ticket), your build ticket balance, and whether a test build is available.
POST /jobsUpload a build to protect. Multipart: artifact (your .apk/.aab) plus app_id. A build paid with a build ticket also needs use_ticket=true; test_build=true makes a free test build.
GET /jobs/{id}Check a job. status is queued, running, ready, or failed.
GET /jobs/{id}/downloadDownload the protected build once status is ready.
POST /jobs/{id}/download-linkGet a short-lived download link for a ready build, 15 minutes by default (expiresInMinutes, up to 60). The link needs no key, so a later step can fetch the build.
DELETE /jobs/{id}Delete a build and its files at once, before retention removes them. Takes an API key from an owner or admin.
GET /keysList your API keys.
GET /stats/summaryYour workspace’s usage for the last 7, 30 and 90 days, per app and in total. See Usage summary below.
GET /events?app_id={id}Read an app's detection events, newest first. Business and Enterprise.

A build that needs a build ticket is refused with 402 ticket_confirmation_required unless it sends use_ticket=true or expect_funding=ticket, so a pipeline never spends a ticket by accident. Send expect_funding (plan, trial, ticket or test) to have the build refused with 409 funding_changed if how it is paid for changed since you checked. Test builds answer 422 for an App Bundle or when the app doesn't need one, 429 when the app's test builds are used up, and 410 for a download after the build stopped running.

The job object

GET /jobs/{id} returns the job as JSON. These are the fields you will use:

FieldWhat it does
idThe job ID.
statusqueued, running, ready or failed.
progress0 to 100 while the job runs.
stageThe step the job is on while it runs.
queuePositionPlace in the queue while the job waits.
failureReasonWhy a failed job stopped, in plain words.
warningsNotices on a ready build (see below).
outputSizeSize of the protected build in bytes.
outputExpiresAtWhen the protected build is deleted from nultr.
autosignedtrue when nultr signed the build for you.
testBuildtrue for a free test build.
testExpiresAtWhen a test build stops working.

Large builds

A build can be up to 200 MB. A single upload above about 100 MB may be refused on the way, so send larger files in parts: open an upload, send each part (the size the open call returns, 32 MiB) with its SHA-256, complete the upload, then call POST /jobs with upload_id in place of the file. The CLI does this for you. For an app larger than 200 MB, write to [email protected].

# 1. open an upload (size in bytes)
curl -X POST https://api.nultr.com/jobs/uploads \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileName":"app-release.aab","size":157286400,"purpose":"build","appId":"YOUR_APP_ID"}'
# => {"id":"UPLOAD_ID","partSize":33554432,"parts":5,...}

# 2. send each part, numbered from 1, with its SHA-256
curl -X PUT https://api.nultr.com/jobs/uploads/UPLOAD_ID/parts/1 \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -H "X-Part-Sha256: <sha256 of this part>" \
  --data-binary @part-1

# 3. complete the upload
curl -X POST https://api.nultr.com/jobs/uploads/UPLOAD_ID/complete \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -H "Content-Type: application/json" -d '{}'

# 4. start the job with the upload instead of the file
curl -X POST https://api.nultr.com/jobs \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -F upload_id=UPLOAD_ID \
  -F app_id=$NULTR_APP_ID

Build notices

A ready job can carry non-fatal notices in a "warnings" array, so you can surface them in your own pipeline. Each has a stable "code", a "severity" of "warning" (a protection came out weaker than asked, or the app needs a change) or "info", a human "message", and, when there is something to do, an "action". New codes may be added over time, so treat an unknown code by showing its message.

# a ready job carries any build notices under "warnings"
{
  "status": "ready",
  "warnings": [
    {
      "code": "server-bound-no-network-state",
      "severity": "warning",
      "message": "This app doesn't declare the ACCESS_NETWORK_STATE permission, …",
      "action": "Declare android.permission.ACCESS_NETWORK_STATE in the app's manifest, …"
    }
  ]
}

Usage summary

GET /stats/summary shows how your workspace used nultr in the last 7, 30 and 90 days, per app and in total. It counts the builds submitted, protected and downloaded. On Business and Enterprise apps it also counts detections per category and per day. Any key of the workspace can read it, read only keys too. So can the dashboard while you are signed in. If you show it on your own pages, keep the answer on your server for its max-age, then send its ETag as below.

curl https://api.nultr.com/stats/summary \
  -H "Authorization: Bearer $NULTR_API_KEY" \
  -H 'If-None-Match: "9f2c4e1a7b3d5f60a8c2e4b6d1f3a5c7"'
# → 200 with the summary, or 304 with no body while it has not changed
# ETag: "…"   Cache-Control: private, max-age=2410
{
  "generatedAt": "2026-11-07T09:00:00Z",
  "refreshSeconds": 3600,
  "total": {
    "builds": {
      "last7Days":  { "submitted": 12, "protected": 11, "downloaded": 9 },
      "last30Days": { "submitted": 41, "protected": 39, "downloaded": 30 },
      "last90Days": { "submitted": 97, "protected": 92, "downloaded": 71 }
    },
    "detections": { "byCategory": { … }, "daily": [ … ] }
  },
  "apps": [
    {
      "appId": "…",
      "packageName": "com.example.shop",
      "name": "Example Shop",
      "builds": { "last7Days": { … }, "last30Days": { … }, "last90Days": { … } },
      "detections": {
        "historyDays": 180,
        "byCategory": {
          "last7Days":  { "root": 14, "emulator": 3 },
          "last30Days": { "root": 52, "emulator": 9, "debugger": 1 },
          "last90Days": { "root": 160, "emulator": 21, "debugger": 4 }
        },
        "daily": [
          { "date": "2026-11-06", "counts": { "root": 2, "emulator": 1 } }
        ]
      }
    }
  ]
}

Caching and refresh

We rebuild the summary about once an hour. generatedAt is when it was built, and refreshSeconds is how often we rebuild it. Every answer has an ETag and Cache-Control: private, max-age=N. N is the seconds left until the next rebuild, so keep the answer until then. After that, send its ETag in If-None-Match. While the summary has not changed, you get 304 Not Modified with no body. A new workspace gets its first summary within about 10 minutes. Until then the call answers 503 stats_not_ready with a Retry-After.

What the numbers count

Periods are UTC calendar days, today included. submitted counts the builds whose upload finished, by the day they were sent, whatever came of them. protected counts the ones that came out protected. downloaded counts the builds downloaded at least once in the period. total adds up the apps listed. The summary holds counts only. The only names in it are your own apps, and it never holds a device, a person or a network address.

Detections

An app has detections when its plan shows them in the dashboard: Business or Enterprise. On other plans detections is null, and the build counts are still there. historyDays is how far back the plan keeps detections: 14 days on Business, 180 on Enterprise. A longer period counts only those days. daily lists only the days that had a detection. Categories use the names in the table below. A category added later counts as other until it gets its own name.

Limits

This call has its own limit on top of the key’s usual one. Each key can make 10 calls at once, then one every 2 seconds. A workspace can make 20 at once across all its keys, then one a second. Past that, the call answers 429 rate_limited with a Retry-After. A refused call does not count toward the key’s usual limit, so your builds keep theirs. A signed-in dashboard has its own limit: 10 at once, then one every 2 seconds.

Detection categories have these names in byCategory and daily:

Name in the APIWhat it is
rootRooted device
emulatorEmulator
instrumentationCode instrumentation
tamperTamper and repackage
hookRuntime hooking
debuggerDebugger attachment
autoclickerAutomated input
automationAutomation and macros
overlayScreen overlay
captureScreen capture
vpnVPN or tunnel
fakegpsMock location
tls_interceptionTLS interception
untrusted_certUser-installed certificate
proxyNetwork proxy
usbUSB debugging
installerUntrusted installer
cloneApp cloning
attestationHardware attestation
apk_signerRe-signed app
unknownUnclassified signal
test_eventTest event
otherA category added after this list

Detection events

GET /events returns one app's detection events, newest first: when, the category, whether the app blocked it or only reported it, a device ID that is unique to your app, and the incident code. Source IPs are never part of this feed. Optional: since and until (RFC 3339) and limit (1 to 500, default 100). When more is true, pass next as until to read the following page. The plan's view window applies, as in the dashboard. Business and Enterprise.

curl "https://api.nultr.com/events?app_id=$NULTR_APP_ID&limit=100" \
  -H "Authorization: Bearer $NULTR_API_KEY"

# => {"appId":"...","package":"com.example.app","more":true,
#     "next":"2026-11-23T08:14:02Z",
#     "events":[{"at":"2026-11-23T08:15:40Z","category":"debugger",
#               "response":"blocked","device":"3f9c...","code":"..."}]}

# next page: pass next as until
curl "https://api.nultr.com/events?app_id=$NULTR_APP_ID&until=2026-11-23T08:14:02Z" \
  -H "Authorization: Bearer $NULTR_API_KEY"

Errors & limits

Conventional status codes: 401 for a missing or invalid key, 404 for unknown jobs, 429 when rate-limited. Error responses are JSON with a message.

Build retention

Each app keeps its finished builds for up to 30 days: 1 hour, 1 day, 7 or 30 days, 30 days by default. When that time is up, we delete the protected file and anything else we stored for the build. The build stays in your history without its file, and a download then answers 410 build_file_deleted. Every job shows outputExpiresAt, the time its files go, and outputDeletedAt once they are gone. You can delete a build yourself with DELETE /jobs/{id}, which takes an API key from an owner or admin on a plan with the API: its files go at once and it drops out of your builds list. The period itself is set in the dashboard under Protection, or with the requests below while you are signed in to the dashboard. Those three do not take an API key, so a pipeline sets the period once in the dashboard.

EndpointWhat it does
GET /api/apps/{id}/build-retentionRead the period in force in hours, the choices, and whether it has been acknowledged.
PUT /api/apps/{id}/build-retentionSet hours to 1, 24, 168 or 720 (1 hour, 1 day, 7 or 30 days). Owner or admin. Setting it also acknowledges it.
POST /api/apps/{id}/build-retention/acknowledgeAcknowledge the period in force. Owner or admin.

Keys are named and revocable from the dashboard. A key works only in the workspace it was created in, so if you run more than one workspace, create a key in each.