Skip to main content
POST
/
api
/
v1
/
devices
/
{requestId}
/
reject
curl -X POST https://alfred.black/api/v1/devices/req_7k9m3p2q1/reject \
  -H "Authorization: Bearer alf_your_key_here"
{
  "message": "Device rejected"
}
Rejects a pending device pairing request, preventing the device from connecting 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.
requestId
string
required
The unique identifier of the pending pairing request to reject.
curl -X POST https://alfred.black/api/v1/devices/req_7k9m3p2q1/reject \
  -H "Authorization: Bearer alf_your_key_here"
{
  "message": "Device rejected"
}
message
string
A status message confirming the device was rejected.