Skip to main content
POST
/
cloud
/
generate_uri
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});

const response = await client.cloud.generateUri({ name: 'name' });

console.log(response);
{}

Headers

authorization
string | null
X-Morphik-Admin-Secret
string | null

Body

application/json

Request model for generating a cloud URI

name
string
required

Name of the application

app_id
string | null

Optional client-generated app ID (UUID recommended). If omitted, the server generates one.

user_id
string | null

Optional owner user ID. If omitted, derived from the bearer token.

expiry_days
integer
default:5475

Number of days until the token expires (default: 15 years)

org_id
string | null

Optional organization identifier for multi-tenant control planes

created_by_user_id
string | null

ID of the admin or service user that initiated the request

Response

Successful Response

{key}
string