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

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

Response

Successful Response

{key}
string
I