Beta
Live updates are in Beta: fields and routes can still change. Guides: overview, CLI, SDK reference, plans and limits and dashboard.
OTA
Operations
Check for an OTA update
Called by the device SDK once per cold start. Returns the newest enabled release of the device's platform, channel and runtime_version for which the installation is in the rollout, with its signed manifest unchanged and a presigned download URL valid 15 minutes; or update null. A device already on the newest release it may get gets null. When none of its runtime's releases is enabled any more, revert_to_embedded is true. A plan without OTA or missing storage never offers a release and never errors: it answers revert_to_embedded true only when the device's current release is disabled and none of its runtime's releases is enabled, null otherwise. Rate limited to 30 requests a minute per installation_id and 600 per client IP; the SDK treats 429 as no update. Client key only.
Authorizations
App Client key (ck_...). Device-facing calls only.
Parameters
Path Parameters
App ID
Request Body
Responses
OK
Report OTA device events
Stores a batch of 1 to 50 events from one installation. Events carry no personal data: unknown fields (tokens, user attributes) are rejected. type and reason must come from the fixed lists. occurred_at (RFC3339) is kept within 7 days before to 5 minutes after the server time, otherwise the server time is stored. An event_id already received from the installation is counted in duplicates and stored once. Rate limited to 30 requests a minute per installation_id and 600 per client IP. Client key only.
Authorizations
App Client key (ck_...). Device-facing calls only.
Parameters
Path Parameters
App ID
Request Body
Responses
OK
List OTA signing keys
Lists the App's active OTA public keys, oldest first. Private keys are never stored by Notti. created_by_email is returned only to a dashboard session, never to a REST key.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Responses
OK
Register an OTA signing key
Registers an ECDSA P-256 public key that signs the App's OTA release manifests and returns its key_id (lowercase hex of the first 8 bytes of SHA-256 of the 65-byte uncompressed point). An App holds at most 5 active keys.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Request Body
Responses
Created
Remove an OTA signing key
Removes an active OTA public key. Releases it already signed stay valid; new releases signed with it are rejected.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Key ID
Responses
No Content
List OTA releases
Lists the App's releases newest first, cursor-paginated, with device event counts per type. Optional filters: platform (ios, android) and channel.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Query Parameters
ios or android
Channel slug
Page size, 1 to 100 (default 20)
next_cursor of the previous page
Responses
OK
Create an OTA release
Publishes an uploaded archive as an immutable release. In order: the upload must be unconsumed, unexpired and of this App (ota_upload_invalid); the key_id must be an active key of the App (ota_no_public_key, ota_unknown_key); the signature must verify over the manifest bytes as sent (ota_invalid_signature); the manifest must parse, name this App and allow the channel (invalid_content); the stored archive must match the manifest's size and SHA-256 and be at most 52428800 bytes (ota_artifact_mismatch); then the plan and the App's monthly release limit apply (402) and a release_id already used is refused (409). rollout_percent defaults to 100.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Request Body
Responses
Created
Get an OTA release
Returns one release with its device event counts per type and per reason code.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Release ID
Responses
OK
Update an OTA release
Changes the only mutable fields of a release: rollout_percent (1 to 100), mandatory and enabled. Lowering the rollout never moves a device off a release it already runs. Disabling a release offers devices the newest enabled older release, or a return to the embedded bundle. Disabling, lowering the rollout and setting mandatory to false are never blocked by the plan or the monthly limit. When the plan has no OTA, re-enabling a disabled release, raising the rollout and setting mandatory to true are refused with 402 ota_not_in_plan and nothing is written.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Release ID
Request Body
Responses
OK
Start an OTA archive upload
Returns a presigned URL (valid 15 minutes) to PUT one release archive (tar.gz, at most 52428800 bytes) to private storage, sending the returned headers unchanged. Pass the upload_id to create the release once the upload completes.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Responses
Created
OTA release usage this month
Returns how many releases the App published this UTC calendar month against the plan's monthly limit, and when the count resets. A limit of 0 means the plan has no OTA.
Authorizations
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
App REST key (rk_...). Server-to-server calls.
Parameters
Path Parameters
App ID
Responses
OK