---
title: "Dispositivos: API da plataforma"
description: "API da plataforma APIBrasil (Controle de dispositivos). Os endpoints abaixo são os da conta e da operação do gateway."
lang: pt-BR
canonical: https://doc.apibrasil.io/apis/plataforma/dispositivos
markdown: https://doc.apibrasil.io/apis/plataforma/dispositivos.md
source: apibrasil-documentation
---

# Dispositivos: API da plataforma

> API da plataforma APIBrasil (Controle de dispositivos). Os endpoints abaixo são os da conta e da operação do gateway.

- **Especificação OpenAPI:** https://doc.apibrasil.io/apis/plataforma/dispositivos/openapi.json

## Como chamar

**Endereço base:** `https://gateway.apibrasil.io/api/v2`

## Endpoints (4 endpoints)

**Sumário**

1. `GET /devices`
2. `POST /devices/store`
3. `POST /devices/search`
4. `DELETE /devices/destroy`

### 1. GET /devices

Lista todos os dispositivos do usuario

- **Método:** `GET`
- **Endereço:** `https://gateway.apibrasil.io/api/v2/devices`
- **Versão da rota:** v2

**Cabeçalhos**

| Cabeçalho | Valor |
| --- | --- |
| `Content-Type` | `application/json` |

**Em cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/devices" \
  -H "Content-Type: application/json"
```

**Resposta de exemplo, do catálogo**

```json
[
  {
    "search": "07c2261b-6cc2-45d4-a38c-8b8390cb6f7d",
    "device_name": "positivo deg2",
    "device_key": "123",
    "server_search": null,
    "device_token": "f9427921-b93a-4e19-817a-d9fe2838b95f",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-03 18:52:51",
    "created_at": "2023-08-03T14:23:49.000000Z",
    "updated_at": "2023-08-03T21:52:51.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API Placa Dados Free",
      "search": "193b1f11-49ae-4a43-80bc-8b3349651632",
      "description": "Com essa API é possível buscar informações completas de um veículo informando apenas a placa."
    },
    "server_limited": null
  },
  {
    "search": "b8ca2c80-15a3-461c-9b98-d3f861d1a03f",
    "device_name": "teste3333",
    "device_key": "0987felizkk",
    "server_search": null,
    "device_token": "62a870d4-76fe-4cdc-b765-f410a6352b46",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:52:35",
    "created_at": "2023-08-03T14:29:30.000000Z",
    "updated_at": "2023-08-24T01:52:35.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API CPF Free",
      "search": "z3e01c0d-dd39-4e21-b73b-3e144de33a34",
      "description": "Com a API de CPF completo, você pode obter dados de uma pessoa apenas com o CPF"
    },
    "server_limited": null
  },
  {
    "search": "2abdc6e2-bfa1-4618-9c6d-abf93b759c5e",
    "device_name": "positivodebug3",
    "device_key": "positivodebug3",
    "server_search": "110fe94a-50eae6-b351-8c3-497a68bc35",
    "device_token": "dce0e78f-1e3c-4ef6-bd6d-dc177af46a5c",
    "device_ip": "0.0.0.0",
    "status": "open",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:47",
    "created_at": "2023-08-11T20:20:21.000000Z",
    "updated_at": "2023-08-24T02:25:47.000000Z",
    "status_situation": "active",
    "service": {
      "name": "Evolution API Baileys",
      "search": "5f7a3cb9-c3f4-451a-a421-67bdf86a7995",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "04adb4e2f055c978c9bb101ee1bc5cd4",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "110fe94a-50eae6-b351-8c3-497a68bc35",
      "servername": "SRV2 - Evolution API",
      "status": "active",
      "type": "baileys"
    }
  },
  {
    "search": "c9034f8c-5e28-42e1-9247-d0031b83fe26",
    "device_name": "positivodeg",
    "device_key": "123",
    "server_search": "276bfb9e-cf55-42de-8872-3497d4034fa5",
    "device_token": "99a17258-18d9-4342-ad3a-d1e0d6d775b5",
    "device_ip": "0.0.0.0",
    "status": "CONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:36:49",
    "created_at": "2023-08-23T05:22:51.000000Z",
    "updated_at": "2023-08-24T01:36:49.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "6f162710-93c7-4c95-ac59-15487bec9144",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "276bfb9e-cf55-42de-8872-3497d4034fa5",
      "servername": "SRV10 - PLUGZAP 01",
      "status": "active",
      "type": "whatsapp"
    }
  },
  {
    "search": "077dc943-7e23-4bcf-814d-23ea061873c6",
    "device_name": "positivodebug4",
    "device_key": "123",
    "server_search": "fb23a5b1-789b-4171-bffc-03d00e6b559a",
    "device_token": "c3ada284-33d1-4892-9e0f-133252952123",
    "device_ip": "179.221.165.221",
    "status": "open",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:48",
    "created_at": "2023-08-23T18:11:40.000000Z",
    "updated_at": "2023-08-24T02:25:48.000000Z",
    "status_situation": "active",
    "service": {
      "name": "Evolution API Baileys",
      "search": "5f7a3cb9-c3f4-451a-a421-67bdf86a7995",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "a00ef148-4eef-4785-8670-cf72392ae068",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "fb23a5b1-789b-4171-bffc-03d00e6b559a",
      "servername": "SRV3 - Evolution API",
      "status": "active",
      "type": "baileys"
    }
  },
  {
    "search": "f13b725a-ebdb-49b6-a96d-af435bb68141",
    "device_name": "positivodebug2",
    "device_key": "positivodebug3",
    "server_search": null,
    "device_token": "8a7adbd8-b62f-459a-9b35-11372766a878",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:51:29",
    "created_at": "2023-08-24T01:37:44.000000Z",
    "updated_at": "2023-08-24T01:51:29.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API CNPJ Basic",
      "search": "909af3d7-7ed7-417f-a61c-a102c7ffbc07",
      "description": "Com a API de CNPJ completo, você pode obter dados da empresa apenas com o CNPJ"
    },
    "server_limited": null
  },
  {
    "search": "340a2ba1-cfb0-4d54-bafe-d533c7073d1e",
    "device_name": "zap1",
    "device_key": "zapzap1",
    "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
    "device_token": "fe52e694-a857-46cd-9e49-0e250d98ecb8",
    "device_ip": "198.29.10.50",
    "status": "DISCONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:31",
    "created_at": "2023-08-24T02:25:31.000000Z",
    "updated_at": "2023-08-24T02:25:31.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "889160b0-a36f-11ed-a8fc-0242ac120002",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
      "servername": "SRV03 - ZAPDEV",
      "status": "active",
      "type": "whatsapp"
    }
  },
  {
    "search": "c4952cf5-0b57-4ee5-a9ad-287520457790",
    "device_name": "zap1",
    "device_key": "zapzap1",
    "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
    "device_token": "82faab0a-24f4-4b8b-9926-455ea9b3cdb7",
    "device_ip": "198.29.10.50",
    "status": "DISCONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:56",
    "created_at": "2023-08-24T02:25:56.000000Z",
    "updated_at": "2023-08-24T02:25:56.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "889160b0-a36f-11ed-a8fc-0242ac120002",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
      "servername": "SRV03 - ZAPDEV",
      "status": "active",
      "type": "whatsapp"
    }
  }
]
```

### 2. POST /devices/store

Cria um novo dispositivo na plataforma, em determinada api

- **Método:** `POST`
- **Endereço:** `https://gateway.apibrasil.io/api/v2/devices/store`
- **Versão da rota:** v2

**Cabeçalhos**

| Cabeçalho | Valor |
| --- | --- |
| `Content-Type` | `application/json` |
| `SecretKey` | `73b76b21-1790-4936-ad9d.....` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Corpo da requisição**

```json
{
  "type": "cellphone",
  "device_name": "zap1",
  "device_key": "zapzap1",
  "device_ip": "0.0.0.0",
  "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
  "webhook_wh_message": "",
  "webhook_wh_status": ""
}
```

**Em cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/devices/store" \
  -H "Content-Type: application/json" \
  -H "SecretKey: 73b76b21-1790-4936-ad9d....." \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"type":"cellphone","device_name":"zap1","device_key":"zapzap1","device_ip":"0.0.0.0","server_search":"341d6f36-b888-41b1-b0a6-e95aab5fe018","webhook_wh_message":"","webhook_wh_status":""}'
```

**Resposta de exemplo, do catálogo**

```json
[
  {
    "search": "07c2261b-6cc2-45d4-a38c-8b8390cb6f7d",
    "device_name": "positivo deg2",
    "device_key": "123",
    "server_search": null,
    "device_token": "f9427921-b93a-4e19-817a-d9fe2838b95f",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-03 18:52:51",
    "created_at": "2023-08-03T14:23:49.000000Z",
    "updated_at": "2023-08-03T21:52:51.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API Placa Dados Free",
      "search": "193b1f11-49ae-4a43-80bc-8b3349651632",
      "description": "Com essa API é possível buscar informações completas de um veículo informando apenas a placa."
    },
    "server_limited": null
  },
  {
    "search": "b8ca2c80-15a3-461c-9b98-d3f861d1a03f",
    "device_name": "teste3333",
    "device_key": "0987felizkk",
    "server_search": null,
    "device_token": "62a870d4-76fe-4cdc-b765-f410a6352b46",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:52:35",
    "created_at": "2023-08-03T14:29:30.000000Z",
    "updated_at": "2023-08-24T01:52:35.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API CPF Free",
      "search": "z3e01c0d-dd39-4e21-b73b-3e144de33a34",
      "description": "Com a API de CPF completo, você pode obter dados de uma pessoa apenas com o CPF"
    },
    "server_limited": null
  },
  {
    "search": "2abdc6e2-bfa1-4618-9c6d-abf93b759c5e",
    "device_name": "positivodebug3",
    "device_key": "positivodebug3",
    "server_search": "110fe94a-50eae6-b351-8c3-497a68bc35",
    "device_token": "dce0e78f-1e3c-4ef6-bd6d-dc177af46a5c",
    "device_ip": "0.0.0.0",
    "status": "open",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:47",
    "created_at": "2023-08-11T20:20:21.000000Z",
    "updated_at": "2023-08-24T02:25:47.000000Z",
    "status_situation": "active",
    "service": {
      "name": "Evolution API Baileys",
      "search": "5f7a3cb9-c3f4-451a-a421-67bdf86a7995",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "04adb4e2f055c978c9bb101ee1bc5cd4",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "110fe94a-50eae6-b351-8c3-497a68bc35",
      "servername": "SRV2 - Evolution API",
      "status": "active",
      "type": "baileys"
    }
  },
  {
    "search": "c9034f8c-5e28-42e1-9247-d0031b83fe26",
    "device_name": "positivodeg",
    "device_key": "123",
    "server_search": "276bfb9e-cf55-42de-8872-3497d4034fa5",
    "device_token": "99a17258-18d9-4342-ad3a-d1e0d6d775b5",
    "device_ip": "0.0.0.0",
    "status": "CONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:36:49",
    "created_at": "2023-08-23T05:22:51.000000Z",
    "updated_at": "2023-08-24T01:36:49.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "6f162710-93c7-4c95-ac59-15487bec9144",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "276bfb9e-cf55-42de-8872-3497d4034fa5",
      "servername": "SRV10 - PLUGZAP 01",
      "status": "active",
      "type": "whatsapp"
    }
  },
  {
    "search": "077dc943-7e23-4bcf-814d-23ea061873c6",
    "device_name": "positivodebug4",
    "device_key": "123",
    "server_search": "fb23a5b1-789b-4171-bffc-03d00e6b559a",
    "device_token": "c3ada284-33d1-4892-9e0f-133252952123",
    "device_ip": "179.221.165.221",
    "status": "open",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:48",
    "created_at": "2023-08-23T18:11:40.000000Z",
    "updated_at": "2023-08-24T02:25:48.000000Z",
    "status_situation": "active",
    "service": {
      "name": "Evolution API Baileys",
      "search": "5f7a3cb9-c3f4-451a-a421-67bdf86a7995",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "a00ef148-4eef-4785-8670-cf72392ae068",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "fb23a5b1-789b-4171-bffc-03d00e6b559a",
      "servername": "SRV3 - Evolution API",
      "status": "active",
      "type": "baileys"
    }
  },
  {
    "search": "f13b725a-ebdb-49b6-a96d-af435bb68141",
    "device_name": "positivodebug2",
    "device_key": "positivodebug3",
    "server_search": null,
    "device_token": "8a7adbd8-b62f-459a-9b35-11372766a878",
    "device_ip": "0.0.0.0",
    "status": "DISCONNECTED",
    "type": "computer",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 22:51:29",
    "created_at": "2023-08-24T01:37:44.000000Z",
    "updated_at": "2023-08-24T01:51:29.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API CNPJ Basic",
      "search": "909af3d7-7ed7-417f-a61c-a102c7ffbc07",
      "description": "Com a API de CNPJ completo, você pode obter dados da empresa apenas com o CNPJ"
    },
    "server_limited": null
  },
  {
    "search": "340a2ba1-cfb0-4d54-bafe-d533c7073d1e",
    "device_name": "zap1",
    "device_key": "zapzap1",
    "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
    "device_token": "fe52e694-a857-46cd-9e49-0e250d98ecb8",
    "device_ip": "198.29.10.50",
    "status": "DISCONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:31",
    "created_at": "2023-08-24T02:25:31.000000Z",
    "updated_at": "2023-08-24T02:25:31.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "889160b0-a36f-11ed-a8fc-0242ac120002",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
      "servername": "SRV03 - ZAPDEV",
      "status": "active",
      "type": "whatsapp"
    }
  },
  {
    "search": "c4952cf5-0b57-4ee5-a9ad-287520457790",
    "device_name": "zap1",
    "device_key": "zapzap1",
    "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
    "device_token": "82faab0a-24f4-4b8b-9926-455ea9b3cdb7",
    "device_ip": "198.29.10.50",
    "status": "DISCONNECTED",
    "type": "cellphone",
    "webhook_wh_message": null,
    "webhook_wh_status": null,
    "webhook_wh_connect": null,
    "webhook_wh_qr_code": null,
    "last_activity": "2023-08-23 23:25:56",
    "created_at": "2023-08-24T02:25:56.000000Z",
    "updated_at": "2023-08-24T02:25:56.000000Z",
    "status_situation": "active",
    "service": {
      "name": "API WhatsApp Wpp",
      "search": "f87eb607-a8cc-43ea-b439-980f9f181489",
      "description": "Com essa API do WhatsApp, você pode enviar e receber mensagens via Rest, é possível integrar com Webhook"
    },
    "server_limited": {
      "apitoken_public": "889160b0-a36f-11ed-a8fc-0242ac120002",
      "host_public": "https://cluster.apigratis.com/api/v1",
      "server_search": "341d6f36-b888-41b1-b0a6-e95aab5fe018",
      "servername": "SRV03 - ZAPDEV",
      "status": "active",
      "type": "whatsapp"
    }
  }
]
```

### 3. POST /devices/search

Atualiza um dispositivo na plataforma, em determinada api

- **Método:** `POST`
- **Endereço:** `https://gateway.apibrasil.io/api/v2/devices/search`
- **Versão da rota:** v2

**Cabeçalhos**

| Cabeçalho | Valor |
| --- | --- |
| `Content-Type` | `application/json` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Corpo da requisição**

```json
{
  "search": "82faab0a-24f4-4b8b-9926-455ea9b3cdb7",
  "server_search": "a2c85262-f830-4b90-a8da-ff67b7a7ed6e",
  "type": "cellphone",
  "device_name": "zap2",
  "device_key": "zapzap1",
  "device_ip": "0.0.0.0",
  "webhook_wh_message": "",
  "webhook_wh_status": ""
}
```

**Em cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/devices/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"search":"82faab0a-24f4-4b8b-9926-455ea9b3cdb7","server_search":"a2c85262-f830-4b90-a8da-ff67b7a7ed6e","type":"cellphone","device_name":"zap2","device_key":"zapzap1","device_ip":"0.0.0.0","webhook_wh_message":"","webhook_wh_status":""}'
```

**Resposta de exemplo, do catálogo**

```json
{
  "error": false,
  "message": "Dispositivo atualizado com sucesso"
}
```

### 4. DELETE /devices/destroy

Deleta um dispositivo na plataforma, em determinada api

- **Método:** `DELETE`
- **Endereço:** `https://gateway.apibrasil.io/api/v2/devices/destroy`
- **Versão da rota:** v2

**Cabeçalhos**

| Cabeçalho | Valor |
| --- | --- |
| `Content-Type` | `application/json` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Corpo da requisição**

```json
{
  "search": "7c50d42d-deca-43d7-864e-6a6bcd760c6b"
}
```

**Em cURL**

```bash
curl -X DELETE "https://gateway.apibrasil.io/api/v2/devices/destroy" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"search":"7c50d42d-deca-43d7-864e-6a6bcd760c6b"}'
```

**Resposta de exemplo, do catálogo**

```json
{
  "error": false,
  "message": "Dispositivo desativado com sucesso"
}
```

## Ver também

- Especificação OpenAPI: https://doc.apibrasil.io/apis/plataforma/dispositivos/openapi.json
- Catálogo de APIs: [Catálogo de APIs](https://doc.apibrasil.io/apis.md)
- SDKs oficiais: [SDKs oficiais](https://doc.apibrasil.io/sdks.md)
- Índice da documentação: https://doc.apibrasil.io/llms.txt
- Versão HTML desta página: https://doc.apibrasil.io/apis/plataforma/dispositivos
