Notificações do sistema
Base: https://api.nivesistemas.com.br · 9 endpoints
GET /system-notifications
Seção intitulada “GET /system-notifications”Listar notificações
curl -X GET "https://api.nivesistemas.com.br/system-notifications" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/system-notifications", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/system-notifications", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /whatsapp-customer-replies
Seção intitulada “GET /whatsapp-customer-replies”Mensagens de clientes (respostas aos avisos no WhatsApp)
curl -X GET "https://api.nivesistemas.com.br/whatsapp-customer-replies" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-customer-replies", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/whatsapp-customer-replies", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /whatsapp-customer-replies/handled
Seção intitulada “POST /whatsapp-customer-replies/handled”Marcar conversa como resolvida ou reabrir
curl -X POST "https://api.nivesistemas.com.br/whatsapp-customer-replies/handled" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-customer-replies/handled", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/whatsapp-customer-replies/handled", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /whatsapp-customer-replies/:id/media
Seção intitulada “GET /whatsapp-customer-replies/:id/media”Foto, áudio ou documento enviado pelo cliente
Parâmetros de rota: id
curl -X GET "https://api.nivesistemas.com.br/whatsapp-customer-replies/{id}/media" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-customer-replies/{id}/media", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/whatsapp-customer-replies/{id}/media", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /system-notifications/mark-all-read
Seção intitulada “POST /system-notifications/mark-all-read”Marcar todas como lidas
curl -X POST "https://api.nivesistemas.com.br/system-notifications/mark-all-read" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/system-notifications/mark-all-read", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/system-notifications/mark-all-read", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /system-notifications/read
Seção intitulada “POST /system-notifications/read”Marcar notificações como lidas
curl -X POST "https://api.nivesistemas.com.br/system-notifications/read" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/system-notifications/read", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/system-notifications/read", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /system-notifications/:notificationId/read
Seção intitulada “POST /system-notifications/:notificationId/read”Marcar notificação como lida
Parâmetros de rota: notificationId
curl -X POST "https://api.nivesistemas.com.br/system-notifications/{notificationId}/read" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/system-notifications/{notificationId}/read", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/system-notifications/{notificationId}/read", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /whatsapp-customer-replies/notices
Seção intitulada “GET /whatsapp-customer-replies/notices”Avisos que a loja enviou para um telefone
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
telefone |
string | sim | Telefone só com dígitos |
curl -X GET "https://api.nivesistemas.com.br/whatsapp-customer-replies/notices" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-customer-replies/notices", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/whatsapp-customer-replies/notices", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /whatsapp-customer-replies/sent
Seção intitulada “GET /whatsapp-customer-replies/sent”Clientes que receberam mensagem da loja, tenham respondido ou não
curl -X GET "https://api.nivesistemas.com.br/whatsapp-customer-replies/sent" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-customer-replies/sent", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/whatsapp-customer-replies/sent", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())
