Exchange local runner pairing token

POST/v1/local-runner-pairing-tokens/exchange

Public 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

FieldTypeRequiredDescription
tokenstringYes
deviceobjectNo
device.namestringYesHuman-readable name.
device.platformstringNo
device.hostnamestringNo
device.appVersionstringNo
device.daemonVersionstringNo
device.statusonline | offlineNoCurrent lifecycle status.
device.capabilitiesobjectNo
namestringNoHuman-readable name.
capabilitiesobjectNo

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Pairing token exchangedapplication/json
FieldTypeRequiredDescription
deviceobjectNo
device.idstringNoUnique identifier.
device.userIdstringNoUser ID.
device.namestringNoHuman-readable name.
device.platformstringNo
device.hostnamestringNo
device.appVersionstringNo
device.daemonVersionstringNo
device.statusonline | offlineNoCurrent lifecycle status.
device.capabilitiesobjectNo
device.lastSeenAtstringNo
device.createdAtstringNoISO 8601 timestamp.
device.updatedAtstringNoISO 8601 timestamp.
apiKeystringNoScoped daemon API key returned only during token exchange.
apiKeyPrefixstringNo
pairingTokenobjectNo
pairingToken.idstringNoUnique identifier.
pairingToken.userIdstringNoUser ID.
pairingToken.tokenPrefixstringNo
pairingToken.namestringNoHuman-readable name.
pairingToken.statuspending | completed | expired | revokedNoCurrent lifecycle status.
pairingToken.deviceIdstringNo
pairingToken.expiresAtstringNo
pairingToken.completedAtstringNoISO 8601 timestamp.
pairingToken.createdAtstringNoISO 8601 timestamp.
pairingToken.updatedAtstringNoISO 8601 timestamp.
404Resource not foundapplication/json
FieldTypeRequiredDescription
errorstringNo
Exchange local runner pairing token
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow