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);curl https://api.morphik.ai/cloud/generate_uri \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"name": "name"
}'{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Generate Cloud Uri
Generate an authenticated URI for a cloud-hosted Morphik application.
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);curl https://api.morphik.ai/cloud/generate_uri \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"name": "name"
}'{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Request model for generating a cloud URI
Name of the application
Optional client-generated app ID (UUID recommended). If omitted, the server generates one.
Optional owner user ID. If omitted, derived from the bearer token.
Number of days until the token expires (default: 15 years)
Optional organization identifier for multi-tenant control planes
ID of the admin or service user that initiated the request
Response
Successful Response
Was this page helpful?

