Sessions

Exchange a launch code

POST https://api.129.212.147.181.sslip.io/v1/launch-tokens

For "Open in example app": your portal's launch link carries a one-time code (dgl_…). Your server exchanges it here, without an API key, for an access token (dgt_…) that acts as the key the link was made for, until expires_at (8 hours). Send it like a key: Authorization: Bearer dgt_…. Keep it on your server; the code works once and for 5 minutes.

This endpoint needs no API key: the signed link is the credential.

Body

code string required
The one-time dgl_… code from the launch link.

Returns

201 Created: The access token.

Errors

StatusCodeWhat to do
422parameter_missingPass code.
401launch_code_invalidThe code is unknown, already used, expired (5 minutes), or its key was revoked. Open the link from the portal again.

Any endpoint can also return the common errors (bad key, rate limit, idempotency).