Criar
POST {{APIV2}}/api/v2/devices/store
Com esse endpoint você pode cadastrar um novo dispositivo
Request Body
{"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"=>""}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
SecretKey | string |
RESPONSES
status: OK
{"error":false,"message":"Dispositivo cadastrado com sucesso, você tem dispositivos ativos","device":{"type":"cellphone","search":"c4952cf5-0b57-4ee5-a9ad-287520457790","device_name":"zap1","server_search":"341d6f36-b888-41b1-b0a6-e95aab5fe018","device_key":"zapzap1","device_token":"82faab0a-24f4-4b8b-9926-455ea9b3cdb7","device_ip":"198.29.10.50","webhook_wh_message":null,"webhook_wh_status":null,"webhook_wh_connect":null,"webhook_wh_qr_code":null,"status":"DISCONNECTED","status_situation":"active","last_activity":"2023-08-24T02:25:56.307311Z","updated_at":"2023-08-24T02:25:56.000000Z","created_at":"2023-08-24T02:25:56.000000Z"}}