Create an embed sign-in token
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Creates a single-use sign-in token for a provisioned app user and returns embed_url, the chosen surface's address with the token on it. Load it in an iframe and the app opens signed in as that user. The app's owner can be signed in without being provisioned, by a workspace API key or by the owner's own token. live_preview starts the app's sandbox if it isn't running; until it is, the URL shows a loading page. Call it with a personal access token whose owner can edit the app, or with a workspace API key that has the Mint embed sign-in tokens permission. Limited to 300 requests a minute per app. Higher plans get a higher limit.
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/embed-url
- Auth
- HTTP bearer
- or API key in header api_key
- or HTTP bearer
Path parameters
ID of the app.
Request body
Response
Successful Response
Example response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.sig",
"expires_in": 60,
"embed_url": "https://weekly-report.base44.app/?ott=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.sig"
}Changes
- info
the endpoint scheme security
WorkspaceApiKeyBearerAuthwas added to the API
- info
- info
the security scope
app_users:embed_tokenwas added to the endpoint's security schemeWorkspaceApiKeyAuth - info
the security scope
full_accesswas added to the endpoint's security schemePersonalAccessTokenAuth
- info