Skip to main content
POST
/
v1
/
workers
/
{id}
/
tokens
Get worker connection tokens
curl --request POST \
  --url https://api.openworklabs.com/v1/workers/{id}/tokens
{
  "tokens": {
    "owner": "<string>",
    "host": "<string>",
    "client": "<string>"
  },
  "connect": {
    "openworkUrl": "<string>",
    "workspaceId": "<string>"
  }
}

Path Parameters

id
string<typeid>
required

Den TypeID with 'wrk_' prefix and a 26-character base32 suffix.

Required string length: 30
Pattern: ^wrk_.*

Response

Worker connection tokens returned successfully.

tokens
object
required
connect
object
required