Realiza uma nova ação de ativação com dispositivos
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"action": 0,
"accountId": "A213215454",
"devices": [
{
"description": "string",
"devEui": "string",
"appEui": "string",
"activation": "string",
"encryption": "string",
"devAddr": "string",
"nwksKey": "string",
"appsKey": "string",
"devClass": "string",
"countersSize": 0,
"adr": {
"txPower": "string",
"datarate": "string",
"mode": "string"
},
"tags": [
"string"
],
"band": "string"
}
]
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation"
payload = {
"action": 0,
"accountId": "A213215454",
"devices": [
{
"description": "string",
"devEui": "string",
"appEui": "string",
"activation": "string",
"encryption": "string",
"devAddr": "string",
"nwksKey": "string",
"appsKey": "string",
"devClass": "string",
"countersSize": 0,
"adr": {
"txPower": "string",
"datarate": "string",
"mode": "string"
},
"tags": ["string"],
"band": "string"
}
]
}
headers = {
"Content-Type": "<content-type>",
"client_id": "<client_id>",
"access_token": "<access_token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
client_id: '<client_id>',
access_token: '<access_token>'
},
body: JSON.stringify({
action: 0,
accountId: 'A213215454',
devices: [
{
description: 'string',
devEui: 'string',
appEui: 'string',
activation: 'string',
encryption: 'string',
devAddr: 'string',
nwksKey: 'string',
appsKey: 'string',
devClass: 'string',
countersSize: 0,
adr: {txPower: 'string', datarate: 'string', mode: 'string'},
tags: ['string'],
band: 'string'
}
]
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'action' => 0,
'accountId' => 'A213215454',
'devices' => [
[
'description' => 'string',
'devEui' => 'string',
'appEui' => 'string',
'activation' => 'string',
'encryption' => 'string',
'devAddr' => 'string',
'nwksKey' => 'string',
'appsKey' => 'string',
'devClass' => 'string',
'countersSize' => 0,
'adr' => [
'txPower' => 'string',
'datarate' => 'string',
'mode' => 'string'
],
'tags' => [
'string'
],
'band' => 'string'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"access_token: <access_token>",
"client_id: <client_id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation"
payload := strings.NewReader("{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("client_id", "<client_id>")
req.Header.Add("access_token", "<access_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["client_id"] = '<client_id>'
request["access_token"] = '<access_token>'
request.body = "{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Ação criada com sucesso."
}{
"error": "Parâmetros inválidos."
}{
"error": "Erro desconhecido."
}Lorawan
Nova Ação de Ativação com Dispositivos
Envia uma solicitação para realizar uma nova ação de ativação com dispositivos.
POST
/
lorawan
/
broker
/
activation
Realiza uma nova ação de ativação com dispositivos
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"action": 0,
"accountId": "A213215454",
"devices": [
{
"description": "string",
"devEui": "string",
"appEui": "string",
"activation": "string",
"encryption": "string",
"devAddr": "string",
"nwksKey": "string",
"appsKey": "string",
"devClass": "string",
"countersSize": 0,
"adr": {
"txPower": "string",
"datarate": "string",
"mode": "string"
},
"tags": [
"string"
],
"band": "string"
}
]
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation"
payload = {
"action": 0,
"accountId": "A213215454",
"devices": [
{
"description": "string",
"devEui": "string",
"appEui": "string",
"activation": "string",
"encryption": "string",
"devAddr": "string",
"nwksKey": "string",
"appsKey": "string",
"devClass": "string",
"countersSize": 0,
"adr": {
"txPower": "string",
"datarate": "string",
"mode": "string"
},
"tags": ["string"],
"band": "string"
}
]
}
headers = {
"Content-Type": "<content-type>",
"client_id": "<client_id>",
"access_token": "<access_token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
client_id: '<client_id>',
access_token: '<access_token>'
},
body: JSON.stringify({
action: 0,
accountId: 'A213215454',
devices: [
{
description: 'string',
devEui: 'string',
appEui: 'string',
activation: 'string',
encryption: 'string',
devAddr: 'string',
nwksKey: 'string',
appsKey: 'string',
devClass: 'string',
countersSize: 0,
adr: {txPower: 'string', datarate: 'string', mode: 'string'},
tags: ['string'],
band: 'string'
}
]
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'action' => 0,
'accountId' => 'A213215454',
'devices' => [
[
'description' => 'string',
'devEui' => 'string',
'appEui' => 'string',
'activation' => 'string',
'encryption' => 'string',
'devAddr' => 'string',
'nwksKey' => 'string',
'appsKey' => 'string',
'devClass' => 'string',
'countersSize' => 0,
'adr' => [
'txPower' => 'string',
'datarate' => 'string',
'mode' => 'string'
],
'tags' => [
'string'
],
'band' => 'string'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"access_token: <access_token>",
"client_id: <client_id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation"
payload := strings.NewReader("{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("client_id", "<client_id>")
req.Header.Add("access_token", "<access_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["client_id"] = '<client_id>'
request["access_token"] = '<access_token>'
request.body = "{\n \"action\": 0,\n \"accountId\": \"A213215454\",\n \"devices\": [\n {\n \"description\": \"string\",\n \"devEui\": \"string\",\n \"appEui\": \"string\",\n \"activation\": \"string\",\n \"encryption\": \"string\",\n \"devAddr\": \"string\",\n \"nwksKey\": \"string\",\n \"appsKey\": \"string\",\n \"devClass\": \"string\",\n \"countersSize\": 0,\n \"adr\": {\n \"txPower\": \"string\",\n \"datarate\": \"string\",\n \"mode\": \"string\"\n },\n \"tags\": [\n \"string\"\n ],\n \"band\": \"string\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Ação criada com sucesso."
}{
"error": "Parâmetros inválidos."
}{
"error": "Erro desconhecido."
}Headers
Define o formato da requisição.
🔹 Valor padrão:
application/json
📌 Dica: Copie e cole esse valor no campo Content-Type.
Example:
"application/json"
Example:
"client_id"
Token gerado.
Example:
"access_token"
Body
application/json
Dados necessários para realizar a nova ação de ativação.
Response
Ação criada com sucesso.

