---
title: "Create app embed link"
method: POST
path: "/v1/projects/{project_id}/apps/{app_id}/embed-links"
tags: ["apps"]
---

# Create app embed link

`POST /v1/projects/{project_id}/apps/{app_id}/embed-links`

## Request

- Base URL: `https://api.connic.co`
- URL: `https://api.connic.co/v1/projects/{project_id}/apps/{app_id}/embed-links`
- Auth: HTTP bearer

Creates a link that opens the app, or one of its instances, signed in as `user`.

Use it for users your own sign-in already knows: the link skips the app's sign-in, and access
rules see `user` as given. It also works inside an iframe on the sites in the app's embed origins.
Anyone with the link opens the app as that user until it expires or is revoked.

Required permission: `apps.embed`.

## Path parameters

- `project_id` string, uuid, required
- `app_id` string, uuid, required

## Request body

- EmbedLinkCreate
  - `user` EmbedUser, required: The user the link signs its visitor in as.
    - `id` string, required: The user's ID in your system; `user.id` in access rules.
    - `email` string, nullable: `user.email` in access rules.
    - `name` string, nullable: `user.name` in access rules.
    - `groups` string[]: `user.groups` in access rules.
  - `instance_id` string, uuid, nullable: An instance of the app; the link then opens only that instance.
  - `expires_in_days` integer, nullable: Days the link works. Defaults to the instance's lifetime for instance links and 30 days otherwise.

## Response `201`

Successful Response

- EmbedLinkCreated
  - `id` string, uuid, required: ID of the link, to revoke it.
  - `url` string, required: Open it in the browser or use it as an iframe's src.
  - `expires_at` string, date-time, nullable, required: When the link stops working; null when it lasts as long as its instance.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required permission or access to the environment.
- `404`: The resource does not exist in this project.
- `422`: Validation Error
- `429`: Rate limit exceeded.

## Changes

- **2026-11-21** `86499eb60c3e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/connic/apis/connic-api/changes/v1/projects/:project_id/apps/:app_id/embed-links/post.md)

---

[API](https://skmtc.dev/connic/apis/connic-api.md) - [All operations](https://skmtc.dev/connic/apis/connic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/connic/apis/connic-api/revisions/da5f0d500a9d?raw)
