Create a new deployment
const url = 'https://api.aetherpush.com/v1/apps/example/deployments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Beta"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aetherpush.com/v1/apps/example/deployments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Beta" }'Creates a new deployment channel under the app. Only accounts with the deployments.manage permission (Owner or Admin) can create deployments.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Optional pre-defined deployment key. If omitted, the server generates a secure random key. Pre-defined keys are useful when migrating from CodePush and need to preserve existing client deployments without redeploying app binaries. A key outside the length or character set above is refused with 400, so a migrated key containing other characters has to be rewritten on the client before the deployment is created.
Example
{ "name": "Beta"}Responses
Section titled “Responses”Deployment created.
object
object
Deployment key consumed by the React Native SDK at runtime. Replaced with “(hidden)” for accounts without the deploymentKeys.read capability.
object
Signed URL to download the package bundle.
True when this release is currently held by the automatic release
halt: the package is disabled and a halt event exists at its
current auto-halt generation. Present on
GET /v1/apps/{appName}/deployments/{deploymentName}/history
(and the paginated form of that route). False after an override
re-enables the release, after a manual disable with no live halt
event, or when the package is enabled. Omitted on Package
responses that do not compute the flag.
Server-minted release id (for example v3). Omitted when the
package has no label. Never null and never an empty string.
Set when releaseMethod is Promote.
Set when releaseMethod is Promote or Rollback.
SHA-256 hash of the package contents. The server computes this from the uploaded bytes; callers do not supply it.
Percentage of devices eligible for this release (1-100).
Full rollout is always 100 in responses; the server stores
completed rollouts as null and normalises them at the REST
boundary.
Package size in bytes.
Unix timestamp in milliseconds.
Example
{ "deployment": { "name": "Production", "key": "AbCdEf1234567890", "package": { "appVersion": "1.0.0", "label": "v3", "releaseMethod": "Upload" } }}Headers
Section titled “Headers”Validation error.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
object
object
Stable machine code for this field error.
Example
{ "error": "The requested resource was not found.", "code": "not_found", "requestId": "req_abc123"}Unauthenticated.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "code": "not_found", "requestId": "req_abc123"}The API key’s scopes do not grant apps, which answers
required_scopes; or the caller’s role on the app does not grant
deployments.manage, which answers a plain error. Access keys and
login sessions hold wildcard scope, so they never receive the
scope refusal. Other refusals raised before the route, such as a
request that did not arrive through the trusted edge, also answer
a plain error.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Returned when an API key’s scopes do not grant the scope a management
route requires. required_scopes lists what the route asked for, not
what the key holds. Access keys and login sessions carry wildcard
scope and pass the check without reaching this response, so only
apiKeyAuth callers receive it. A key whose only scope is keys gets
this on every management route, because that scope grants nothing,
which is also why keys never appears in required_scopes.
object
The scopes the route requires. Only these three appear: no
management route requires keys.
Examples
The API key's scopes do not grant apps
{ "error": "Insufficient permissions", "code": "insufficient_scopes", "required_scopes": [ "apps" ], "requestId": "req_abc123"}The caller's role does not grant deployments.manage
{ "error": "This action requires the deployments.manage permission on the app!", "code": "forbidden", "requestId": "req_abc123"}App not found.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "code": "not_found", "requestId": "req_abc123"}Two conditions answer this status: a deployment with that name
already exists in this app (deployment_name_in_use), or the
key is already registered on Aether (deployment_key_in_use).
Deployment keys are unique across every app and every workspace,
not per app, so a key held by an app you cannot see is still
refused here. A generated key can also hit that index: keys are
256 bits of randomness and are not retried on collision.
Read code rather than error to tell the two apart. Error
wording is not part of this contract. The name is checked before
the insert and answers a message naming it plus
deployment_name_in_use. A name lost to a concurrent create and
a taken key both answer the generic conflict body, now with the
matching code. code reports one unique; an insert that
violates both still answers a single code. A conflict outside
those two causes answers the plain error shape with
resource_already_exists.
Listing the app’s deployments remains the complete
discriminator. The name present with the key you
sent means the deployment you wanted is already there and the
retry is done; the name present with a different key is a name
conflict; the name absent means another deployment already holds
the key, either one listed here under a different name or one in
another app, whether or not you can see it. deployment_name_in_use
does not mean the key is free.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Returned with HTTP 409 by the deployment creation endpoint and
by the deployment rename endpoint.
code names which unique index fired, so a caller can act on it
without matching on error, whose wording is not part of the
contract. deployment_name_in_use means this app already has a
deployment with that name. deployment_key_in_use means the key
is already registered on Aether, on this app or another, including
one the caller cannot see. A generated key can also hit that index:
keys are 256 bits of randomness and are not retried on collision.
code reports one unique. An insert that violates both still
answers a single code. A conflict outside those two causes answers
the plain Error shape with a generic code such as
resource_already_exists. Listing the app’s deployments remains
the complete way to tell “already created with this key” from
“name taken” from “key held elsewhere”.
object
Examples
This app already has a deployment with that name
{ "error": "A deployment named 'Beta' already exists.", "code": "deployment_name_in_use", "requestId": "req_abc123"}The key is already registered on Aether
{ "error": "The provided resource already exists.", "code": "deployment_key_in_use", "requestId": "req_abc123"}A conflict outside the two named causes
{ "error": "The provided resource already exists.", "code": "resource_already_exists", "requestId": "req_abc123"}Two causes share this status. The tenant limiter answers
RateLimitErrorResponse (error, retryAfterSeconds) with Retry-After.
The plan’s per-app deployment quota answers the Error
envelope and no Retry-After.
Returned with HTTP 429 when an endpoint-specific rate limit is hit,
including the per-tenant management API budget. Not the process-wide
address limiter (see GlobalAddressRateLimitErrorResponse).
retryAfterSeconds
indicates how long the client should wait before retrying, and matches
the Retry-After header when that header is set. code names the
limit that fired so clients can translate without matching on error.
object
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Examples
Tenant management budget spent
{ "error": "Rate limit exceeded", "code": "tenant_rate_limit_exceeded", "retryAfterSeconds": 60}The app has reached its per-app deployment limit
{ "error": "Deployment limit reached. Maximum 3 deployments per app.", "code": "quota_exceeded", "requestId": "req_abc123"}Headers
Section titled “Headers”Present only for the tenant limiter.
The deployment could not be created because of database contention
on this app (lock wait expired, deadlock, or a serialization
failure). No deployment was created. The body includes
retryAfterSeconds and the response sets Retry-After to the
same value.
Returned with HTTP 503 when the server could not complete an
operation for a reason it expects to pass, and says so rather than
answering as though it had. On the management API, a release or
deployment write could not finish because of database contention
(lock wait expired, deadlock, or a serialization failure) and
nothing was written, or a release
upload could not read back the package it had just stored in order
to sign its URL. On the
acquisition endpoints, a database read the request depends on
could not be completed: resolving a deployment key with nothing
cached for it, reading that deployment’s releases, or refreshing
the download URL of the release it would serve. The release and
download-URL reads answer this way for the failures the server
recognises as transient, and the deployment lookup answers this
way for any failure it cannot serve from a cached entry, so an
outage no longer produces a different status depending on which
of them it reached.
retryAfterSeconds is the minimum interval before a
retry is useful for the path that failed, and is also sent as the
Retry-After response header. Management lock-contention 503s use
the commit lock wait; acquisition and other transient-read 503s use
the deployment-cache failure grace. Those intervals are independent
and can differ. code is connection_failed on every response this
schema describes, management lock contention included. The operation
and the message are what distinguish the paths.
object
Example
{ "error": "This release could not finish because another release was committing to the same deployment. No release was created. Please try again.", "code": "connection_failed", "retryAfterSeconds": 5, "requestId": "req_abc123"}Headers
Section titled “Headers”Seconds to wait before retrying.