apps

Create app embed link

Changed on

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.

post/v1/projects/{project_id}/apps/{app_id}/embed-links

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

app_id, string uuid required

App ID.

Request body

EmbedLinkCreate required
user, EmbedUser required

The user the link signs its visitor in as.

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

Successful Response

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

Changes