import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const app = await client.ee.apps.create({ app_name: 'app_name' });
console.log(app.app_id);
{
"app_id": "<string>",
"app_name": "<string>",
"morphik_uri": "<string>",
"status": "<string>"
}
Provision a brand-new Neon database for request.app_name.
The caller must be authenticated to the dedicated Morphik instance. The authenticated user (represented by the JWT’s user_id) becomes the owner of the provisioned app.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const app = await client.ee.apps.create({ app_name: 'app_name' });
console.log(app.app_id);
{
"app_id": "<string>",
"app_name": "<string>",
"morphik_uri": "<string>",
"status": "<string>"
}
Successful Response
The response is of type object
.
Was this page helpful?