Pular para o conteúdo

Beta

Live updates are in Beta: fields and routes can still change. Guides: overview, CLI, SDK reference, plans and limits and dashboard.

Check for an OTA update​

POST
/v1/apps/{app_id}/ota/check

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.

Autorizações​

ClientKeyAuth

App Client key (ck_...). Device-facing calls only.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Corpo da Requisição​

application/json
JSON
{
  
"binary_identity": "string",
  
"channel": "string",
  
"current_release_id": "string",
  
"hermes_bytecode_version": 0,
  
"installation_id": "string",
  
"platform": "string",
  
"runtime_version": "string",
  
"sdk_version": "string"
}

Respostas​

OK

application/json
JSON
{
  
"revert_to_embedded": true,
  
"update": {
  
  
"download_url": "string",
  
  
"expires_at": "string",
  
  
"key_id": "string",
  
  
"mandatory": true,
  
  
"manifest": "string",
  
  
"release_id": "string",
  
  
"signature": "string"
  
}
}

Playground​

Autorização
Variáveis
Chave
Valor
Corpo

Exemplos​


Report OTA device events​

POST
/v1/apps/{app_id}/ota/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.

Autorizações​

ClientKeyAuth

App Client key (ck_...). Device-facing calls only.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Corpo da Requisição​

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"event_id": "string",
  
  
  
"occurred_at": "string",
  
  
  
"reason": "string",
  
  
  
"release_id": "string",
  
  
  
"type": "string"
  
  
}
  
],
  
"installation_id": "string",
  
"platform": "string"
}

Respostas​

OK

application/json
JSON
{
  
"accepted": 0,
  
"duplicates": 0
}

Playground​

Autorização
Variáveis
Chave
Valor
Corpo

Exemplos​


List OTA signing keys​

GET
/v1/apps/{app_id}/ota/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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Respostas​

OK

application/json
JSON
[
  
{
  
  
"created_at": "string",
  
  
"created_by": "string",
  
  
"created_by_email": "string",
  
  
"key_id": "string",
  
  
"public_key": "string"
  
}
]

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


Register an OTA signing key​

POST
/v1/apps/{app_id}/ota/keys

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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Corpo da Requisição​

application/json
JSON
{
  
"public_key": "string"
}

Respostas​

Created

application/json
JSON
{
  
"created_at": "string",
  
"created_by": "string",
  
"created_by_email": "string",
  
"key_id": "string",
  
"public_key": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor
Corpo

Exemplos​


Remove an OTA signing key​

DELETE
/v1/apps/{app_id}/ota/keys/{key_id}

Removes an active OTA public key. Releases it already signed stay valid; new releases signed with it are rejected.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório
key_id*

Key ID

Tipo
string
Obrigatório

Respostas​

No Content

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


List OTA releases​

GET
/v1/apps/{app_id}/ota/releases

Lists the App's releases newest first, cursor-paginated, with device event counts per type. Optional filters: platform (ios, android) and channel.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Parâmetros de Consulta

platform

ios or android

Tipo
string
channel

Channel slug

Tipo
string
limit

Page size, 1 to 100 (default 20)

Tipo
integer
cursor

next_cursor of the previous page

Tipo
string

Respostas​

OK

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"app_id": "string",
  
  
  
"archive_sha256": "string",
  
  
  
"archive_size": 0,
  
  
  
"channel": "string",
  
  
  
"counts": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"created_at": "string",
  
  
  
"created_by": "string",
  
  
  
"downloadable": true,
  
  
  
"enabled": true,
  
  
  
"hermes_bytecode_version": 0,
  
  
  
"id": "string",
  
  
  
"key_id": "string",
  
  
  
"mandatory": true,
  
  
  
"platform": "string",
  
  
  
"rollout_percent": 0,
  
  
  
"runtime_version": "string",
  
  
  
"updated_at": "string"
  
  
}
  
],
  
"next_cursor": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


Create an OTA release​

POST
/v1/apps/{app_id}/ota/releases

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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Corpo da Requisição​

application/json
JSON
{
  
"channel": "string",
  
"key_id": "string",
  
"mandatory": true,
  
"manifest": "string",
  
"rollout_percent": 0,
  
"signature": "string",
  
"upload_id": "string"
}

Respostas​

Created

application/json
JSON
{
  
"app_id": "string",
  
"archive_sha256": "string",
  
"archive_size": 0,
  
"channel": "string",
  
"created_at": "string",
  
"created_by": "string",
  
"downloadable": true,
  
"enabled": true,
  
"hermes_bytecode_version": 0,
  
"id": "string",
  
"key_id": "string",
  
"mandatory": true,
  
"platform": "string",
  
"rollout_percent": 0,
  
"runtime_version": "string",
  
"updated_at": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor
Corpo

Exemplos​


Get an OTA release​

GET
/v1/apps/{app_id}/ota/releases/{id}

Returns one release with its device event counts per type and per reason code.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório
id*

Release ID

Tipo
string
Obrigatório

Respostas​

OK

application/json
JSON
{
  
"app_id": "string",
  
"archive_sha256": "string",
  
"archive_size": 0,
  
"channel": "string",
  
"counts": {
  
  
"additionalProperties": 0
  
},
  
"created_at": "string",
  
"created_by": "string",
  
"downloadable": true,
  
"enabled": true,
  
"hermes_bytecode_version": 0,
  
"id": "string",
  
"key_id": "string",
  
"mandatory": true,
  
"platform": "string",
  
"reasons": {
  
  
"additionalProperties": {
  
  
  
"additionalProperties": 0
  
  
}
  
},
  
"rollout_percent": 0,
  
"runtime_version": "string",
  
"updated_at": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


Update an OTA release​

PATCH
/v1/apps/{app_id}/ota/releases/{id}

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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório
id*

Release ID

Tipo
string
Obrigatório

Corpo da Requisição​

application/json
JSON
{
  
"enabled": true,
  
"mandatory": true,
  
"rollout_percent": 0
}

Respostas​

OK

application/json
JSON
{
  
"app_id": "string",
  
"archive_sha256": "string",
  
"archive_size": 0,
  
"channel": "string",
  
"created_at": "string",
  
"created_by": "string",
  
"downloadable": true,
  
"enabled": true,
  
"hermes_bytecode_version": 0,
  
"id": "string",
  
"key_id": "string",
  
"mandatory": true,
  
"platform": "string",
  
"rollout_percent": 0,
  
"runtime_version": "string",
  
"updated_at": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor
Corpo

Exemplos​


Start an OTA archive upload​

POST
/v1/apps/{app_id}/ota/uploads

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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Respostas​

Created

application/json
JSON
{
  
"expires_at": "string",
  
"headers": {
  
  
"additionalProperties": "string"
  
},
  
"max_bytes": 0,
  
"method": "string",
  
"upload_id": "string",
  
"url": "string"
}

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


OTA release usage this month​

GET
/v1/apps/{app_id}/ota/usage

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.

Autorizações​

SessionAuth

Admin session cookie set by POST /v1/auth/login. Dashboard-only management.

Tipo
API Key (cookie: notti_session)
ou
RESTKeyAuth

App REST key (rk_...). Server-to-server calls.

Tipo
HTTP (bearer)

Parâmetros​

Parâmetros de Caminho

app_id*

App ID

Tipo
string
Obrigatório

Respostas​

OK

application/json
JSON
{
  
"limit": 0,
  
"resets_at": "string",
  
"used": 0
}

Playground​

Autorização
Variáveis
Chave
Valor

Exemplos​


Desenvolvido por VitePress OpenAPI