Skip to main content
POST
/
broker
/
alert
cURL
curl --request POST \
  --url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/broker/alert \
  --header 'Content-Type: <content-type>' \
  --header 'access_token: <access_token>' \
  --header 'client_id: <client_id>' \
  --data '
{
  "field": "consumptionCurrentDay",
  "name": "Teste",
  "thresholdValue": "31457280.000",
  "eventType": "CONSUMPTION",
  "operator": ">"
}
'
{
  "id": 308,
  "customerId": 10000,
  "terminalId": null,
  "contractId": null,
  "msisdn": null,
  "eventType": "CONSUMPTION",
  "field": "consumptionCurrentDay",
  "operator": ">",
  "thresholdValue": 31457280,
  "name": "Teste",
  "active": true,
  "createdAt": "2025-01-02T19:10:16.354",
  "createdBy": "vanilson_etica",
  "updatedAt": null,
  "updatedBy": null
}

Headers

Content-Type
string
default:application/json
required

Define o formato da requisição.

🔹 Valor padrão:

application/json

📌 Dica: Copie e cole esse valor no campo Content-Type.

Example:

"application/json"

client_id
string
required

Identificador do client id do sensedia

Example:

"123"

access_token
string
required

Token gerado

Example:

"Basic MzQ4OSozNDMyLTMOMzItMTIz"

Body

application/json

Informações necessárias para fazer a criação de alertas de um cliente.

field
string
Example:

"consumptionCurrentDay"

name
string
Example:

"Teste"

thresholdValue
string
Example:

"31457280.000"

eventType
string
Example:

"CONSUMPTION"

operator
string
Example:

">"

Response

Request report created successfully

OK
string
Example:
{
"id": 308,
"customerId": 10000,
"terminalId": null,
"contractId": null,
"msisdn": null,
"eventType": "CONSUMPTION",
"field": "consumptionCurrentDay",
"operator": ">",
"thresholdValue": 31457280,
"name": "Teste",
"active": true,
"createdAt": "2025-01-02T19:10:16.354",
"createdBy": "vanilson_etica",
"updatedAt": null,
"updatedBy": null
}