---
title: "Generate Cloud Uri"
method: POST
path: "/cloud/generate_uri"
---

# Generate Cloud Uri

`POST /cloud/generate_uri`

Generate an authenticated URI for a cloud-hosted Morphik application.

## Headers

- `authorization` string, nullable
- `X-Morphik-Admin-Secret` string, nullable

## Request body

- GenerateUriRequest — Request model for generating a cloud URI
  - `app_id` string, nullable — Optional client-generated app ID (UUID recommended). If omitted, the server generates one.
  - `name` string, required — Name of the application
  - `user_id` string, nullable — Optional owner user ID. If omitted, derived from the bearer token.
  - `expiry_days` integer — Number of days until the token expires (default: 15 years)
  - `org_id` string, nullable — Optional organization identifier for multi-tenant control planes
  - `created_by_user_id` string, nullable — ID of the admin or service user that initiated the request

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.net/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morphik-org/fastapi/versions/2d9291c3821d/schema)
