Create a new app
const url = 'https://api.aetherpush.com/v1/apps';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"my-react-native-app","manuallyProvisionDeployments":false}'};
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 \ --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.
Pass manuallyProvisionDeployments: true to skip this and create
deployments manually.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
When true, the app is created without the default Production
and Staging deployments. Defaults to false.
Example
{ "name": "my-react-native-app", "manuallyProvisionDeployments": false}Responses
Section titled “Responses”App created.
object
object
Map keyed by collaborator email.
object
object
App role. Owner controls the app; Admin manages collaborators and deployments on top of Developer; Developer performs release operations; Viewer is read-only.
List of deployment names registered under this app.
Named permissions the requesting account holds on this app.
Example
{ "app": { "name": "my-react-native-app", "deployments": [ "Production", "Staging" ] }}Headers
Section titled “Headers”Validation error.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
object
object
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Unauthenticated.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}An app with that name already exists.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}