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
Was this page helpful?

