Approves a pending device pairing request, allowing the device to connect to your Alfred instance.
This endpoint uses requestId in the URL path, not deviceId. The request ID is the identifier of the pending pairing request, which is different from the device ID assigned after pairing.
The unique identifier of the pending pairing request to approve.
If true, approves only the most recent request from this device. Prevents approval of stale requests.
curl -X POST https://alfred.black/api/v1/devices/req_7k9m3p2q1/approve \
-H "Authorization: Bearer alf_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"latest": true
}'
{
"message": "Device approved"
}
A status message confirming the device was approved.