Exchange local runner pairing token
POST
/v1/local-runner-pairing-tokens/exchangePublic one-time token exchange used by a local daemon to register a device and receive a scoped daemon API key.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
None.
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | Yes | — |
| device | object | No | — |
| device.name | string | Yes | Human-readable name. |
| device.platform | string | No | — |
| device.hostname | string | No | — |
| device.appVersion | string | No | — |
| device.daemonVersion | string | No | — |
| device.status | online | offline | No | Current lifecycle status. |
| device.capabilities | object | No | — |
| name | string | No | Human-readable name. |
| capabilities | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Pairing token exchangedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| device | object | No | — |
| device.id | string | No | Unique identifier. |
| device.userId | string | No | User ID. |
| device.name | string | No | Human-readable name. |
| device.platform | string | No | — |
| device.hostname | string | No | — |
| device.appVersion | string | No | — |
| device.daemonVersion | string | No | — |
| device.status | online | offline | No | Current lifecycle status. |
| device.capabilities | object | No | — |
| device.lastSeenAt | string | No | — |
| device.createdAt | string | No | ISO 8601 timestamp. |
| device.updatedAt | string | No | ISO 8601 timestamp. |
| apiKey | string | No | Scoped daemon API key returned only during token exchange. |
| apiKeyPrefix | string | No | — |
| pairingToken | object | No | — |
| pairingToken.id | string | No | Unique identifier. |
| pairingToken.userId | string | No | User ID. |
| pairingToken.tokenPrefix | string | No | — |
| pairingToken.name | string | No | Human-readable name. |
| pairingToken.status | pending | completed | expired | revoked | No | Current lifecycle status. |
| pairingToken.deviceId | string | No | — |
| pairingToken.expiresAt | string | No | — |
| pairingToken.completedAt | string | No | ISO 8601 timestamp. |
| pairingToken.createdAt | string | No | ISO 8601 timestamp. |
| pairingToken.updatedAt | string | No | ISO 8601 timestamp. |
404Resource not foundapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | No | — |
Exchange local runner pairing token
Loading...
Response 200
Loading...