---
title: "Refuse a link"
method: POST
path: "/api/v1/device_links/{id}/deny"
tags: ["Devices"]
---

# Refuse a link

`POST /api/v1/device_links/{id}/deny`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/device_links/{id}/deny`
- Auth: API key in header `api-key`

Only a pending, unexpired link: otherwise 409 `{status}`. Not available to a `sat_` or `sld_` bearer.

## Path parameters

- `id` string, required

## Response `200`

Denied.

- object
  - `status` 'pending' | 'approved' | 'claimed' | 'denied' | 'expired'

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Unknown link.
- `409`: Not pending, or expired.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
