---
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
- `X-Morphik-Admin-Secret` string, nullable

## Request body

- GenerateUriRequest — 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 — Number of days until the token expires
  - `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

## Changes

- **2025-11-13** `b9ae748cb938` — 3 info
  - added the new optional `header` request parameter `X-Morphik-Admin-Secret`
  - added the new optional request property `created_by_user_id`
  - added the new optional request property `org_id`

[Change history](https://skmtc.dev/morphik-org/apis/fastapi/changes/cloud/generate_uri/post.md)

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/40c31e73d375/schema)
