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

const client = new Morphik({
  apiKey: 'My API Key',
});

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

console.log(response);
{}

Headers

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

Body

application/json

Request model for generating a cloud URI

app_id
string
required

ID of the application

name
string
required

Name of the application

user_id
string
required

ID of the user who owns the app

expiry_days
integer
default:30

Number of days until the token expires

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