Skip to content
openlaunch
Esc
↑↓navigate↵open⌘Jpreview

Create setup token (legacy alias)

Default lifetime is 10 minutes and default limit is one device. Setup credentials can only attach devices; attachment does not grant function access.

POST/v1/sdk-tokens
Authorization
AuthorizationBearer token (Clerk owner session) · headerrequired

Owner identity required.

Request body
requiredapplication/json
namestringrequired
min length 1 · max length 64
ttlSecondsinteger
min 60 · max 86400 · default: 600
deviceLimitinteger
min 1 · max 20 · default: 1
Responses
201

Created; setup token is returned once

dataNewConnectionrequired
Show properties
idstring<uuid>required
principalstringrequired
namestringrequired
expiresAtinteger | nullrequired
revokedbooleanrequired
accessstringrequired
Allowed:readact
oauthobject
Show properties
applicationIdstringrequired
clientIdstringrequired
redirectUrisstring<uri>[]required
publicbooleanrequired
purposestringrequired
Allowed:agentdevice-setup
canAttachbooleanrequired
deviceLimitintegerrequired
attachedDeviceCountinteger
tokenstringrequired

Returned once. Store securely; never log or commit.

400

Invalid request or validation failure

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
401

Missing or invalid credential

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
403

Insufficient access or grant

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
404

Resource not found

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
413

Request body exceeds the 16 KiB limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
429

Rate limit or workspace capacity limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
500

Internal error

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
503

Service or required integration is not configured

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://www.openlaunch.dev/v1/sdk-tokens' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "bench device",
  "ttlSeconds": 600,
  "deviceLimit": 1
}'
Response
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "principal": "string",
    "name": "string",
    "expiresAt": 0,
    "revoked": true,
    "access": "read",
    "oauth": {
      "applicationId": "string",
      "clientId": "string",
      "redirectUris": [
        "http://example.com"
      ],
      "public": true
    },
    "purpose": "agent",
    "canAttach": true,
    "deviceLimit": 0,
    "attachedDeviceCount": 0,
    "token": "string"
  }
}