---
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.

Args:
    request: Parameters for URI generation including ``app_id`` and ``name``.
    authorization: Bearer token of the user requesting the URI.

Returns:
    A dictionary with the generated ``uri`` and associated ``app_id``.

## Headers

- `authorization` string

## 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

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[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/9ade02dd7b1d/schema)
