Skip to content

Create a new app

POST
/v1/apps
curl --request POST \
--url https://api.aetherpush.com/v1/apps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "my-react-native-app", "manuallyProvisionDeployments": false }'

Creates a new app under the current account. By default, two deployments named Production and Staging are auto-provisioned in the same transaction as the app: either the create returns 201 with both deployments, or it fails and leaves no app row. Pass manuallyProvisionDeployments: true to skip this and create deployments manually; the app then comes back with an empty deployments list.

Media typeapplication/json
object
name
required
string
>= 1 characters <= 255 characters
manuallyProvisionDeployments

When true, the app is created without the default Production and Staging deployments. Defaults to false.

boolean

Example

{
"name": "my-react-native-app",
"manuallyProvisionDeployments": false
}

App created.

Media typeapplication/json
object
app
required
object
name
required
string
<= 255 characters
collaborators

Map keyed by collaborator email.

object
key
additional properties
object
permission
required

App role. Owner controls the app; Admin manages collaborators and deployments on top of Developer; Developer performs release operations; Viewer is read-only.

string
Allowed values: Owner Admin Developer Viewer
isCurrentAccount
boolean
deployments

List of deployment names registered under this app.

Array<string>
capabilities

Named permissions the requesting account holds on this app.

Array<string>
Allowed values: app.read app.manage app.delete app.transfer collaborators.manage deployments.manage releases.deploy releases.promote releases.rollback metrics.read deploymentKeys.read

Example

{
"app": {
"name": "my-react-native-app",
"deployments": [
"Production",
"Staging"
]
}
}
Location
string

Validation error.

Media typeapplication/json
One of:
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
error
required

Human-readable error message.

string
code
required

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.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string

Example

{
"error": "The requested resource was not found.",
"code": "not_found",
"requestId": "req_abc123"
}

Unauthenticated.

Media typeapplication/json
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
error
required

Human-readable error message.

string
code
required

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.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string

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. A refusal raised before the route is reached, such as a request that did not arrive through the trusted edge, answers a plain error instead.

Media typeapplication/json
One of:
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
error
required

Human-readable error message.

string
code
required

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.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string

Examples

The API key's scopes do not grant apps

{
"error": "Insufficient permissions",
"code": "insufficient_scopes",
"required_scopes": [
"apps"
],
"requestId": "req_abc123"
}

An app with that name already exists.

Media typeapplication/json
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
error
required

Human-readable error message.

string
code
required

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.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string

Example

{
"error": "The requested resource was not found.",
"code": "not_found",
"requestId": "req_abc123"
}

Three causes share this status. The tenant limiter answers RateLimitErrorResponse (error, retryAfterSeconds) with Retry-After. The plan’s app quota and a default-seed deployment-per-app quota both answer the Error envelope and no Retry-After. Default seed requires room for Production and Staging; when max_deployments_per_app is below 2 the create rolls back and leaves no app.

Media typeapplication/json
One of:
RateLimitError

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
error
required
string
code
required
string
retryAfterSeconds
required
integer
>= 1
requestId
string

Examples

Tenant management budget spent

{
"error": "Rate limit exceeded",
"code": "tenant_rate_limit_exceeded",
"retryAfterSeconds": 60
}
Retry-After
integer
>= 1

Present only for the tenant limiter.