List Activities
curl --request GET \
--url https://console.lomaplatform.com/api/org/v1/activities \
--header 'API-Key: <api-key>'import requests
url = "https://console.lomaplatform.com/api/org/v1/activities"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://console.lomaplatform.com/api/org/v1/activities', 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://console.lomaplatform.com/api/org/v1/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.lomaplatform.com/api/org/v1/activities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.lomaplatform.com/api/org/v1/activities")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.lomaplatform.com/api/org/v1/activities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"status": "<string>",
"spend": "<string>",
"executed_by": "<string>",
"notes": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"preset": {
"id": "<string>",
"name": "<string>"
},
"category": {
"id": "<string>",
"name": "<string>"
},
"kpis": [
{
"id": "<string>",
"name": "<string>",
"value": 123,
"description": "<string>",
"is_positive_better": true
}
],
"locations": [
{
"id": "<string>",
"name": "<string>",
"external_id": "<string>"
}
]
}
]{
"error": {
"issues": [
"<unknown>"
],
"name": "<string>"
}
}{
"error": {
"status": 401,
"message": "Invalid API Key"
}
}Activities
List Activities
Lists activities for an organization
GET
/
api
/
org
/
v1
/
activities
List Activities
curl --request GET \
--url https://console.lomaplatform.com/api/org/v1/activities \
--header 'API-Key: <api-key>'import requests
url = "https://console.lomaplatform.com/api/org/v1/activities"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://console.lomaplatform.com/api/org/v1/activities', 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://console.lomaplatform.com/api/org/v1/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.lomaplatform.com/api/org/v1/activities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.lomaplatform.com/api/org/v1/activities")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.lomaplatform.com/api/org/v1/activities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"status": "<string>",
"spend": "<string>",
"executed_by": "<string>",
"notes": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"preset": {
"id": "<string>",
"name": "<string>"
},
"category": {
"id": "<string>",
"name": "<string>"
},
"kpis": [
{
"id": "<string>",
"name": "<string>",
"value": 123,
"description": "<string>",
"is_positive_better": true
}
],
"locations": [
{
"id": "<string>",
"name": "<string>",
"external_id": "<string>"
}
]
}
]{
"error": {
"issues": [
"<unknown>"
],
"name": "<string>"
}
}{
"error": {
"status": 401,
"message": "Invalid API Key"
}
}Authorizations
API Key for the organization
Query Parameters
Required range:
x >= 1Required range:
1 <= x <= 1000Available options:
created_at, updated_at Available options:
asc, desc Response
200 OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I