Get All Action Classes
curl --request GET \
--url https://{baseurl}/api/v1/management/action-classes \
--header 'x-Api-Key: <x-api-key>'import requests
url = "https://{baseurl}/api/v1/management/action-classes"
headers = {"x-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-Api-Key': '<x-api-key>'}};
fetch('https://{baseurl}/api/v1/management/action-classes', 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://{baseurl}/api/v1/management/action-classes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-Api-Key: <x-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://{baseurl}/api/v1/management/action-classes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-Api-Key", "<x-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://{baseurl}/api/v1/management/action-classes")
.header("x-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseurl}/api/v1/management/action-classes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "Gets fired when a new session is created",
"id": "clurwouax000bzffxv3fqy6mt",
"name": "New Session",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "A user on Desktop leaves the website with the cursor.",
"id": "clurwouax000czffx4wj0qldi",
"name": "Exit Intent (Desktop)",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "A user scrolled 50% of the current page",
"id": "clurwouax000dzffx3dfxc91d",
"name": "50% Scroll",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-22T08:59:01.144Z",
"description": "hhehe",
"id": "clvaq6nx40000mhqfuu74rv92",
"name": "new_action_v2",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-22T09:03:55.509Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-22T09:04:30.756Z",
"description": null,
"id": "clvaqdq8z000bmhqfu0km5rv4",
"name": "new_action_v20",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-22T09:04:30.756Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-23T07:11:17.032Z",
"description": null,
"id": "clvc1ryuf0001494jc8oesfwl",
"name": "new_action_v1",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T07:11:17.032Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
}
]
}{
"code": "not_authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
},
"message": "Not authenticated"
}Management API - Action Class
Get All Action Classes
Fetches all the action classes available in the workspace
GET
/
api
/
v1
/
management
/
action-classes
Get All Action Classes
curl --request GET \
--url https://{baseurl}/api/v1/management/action-classes \
--header 'x-Api-Key: <x-api-key>'import requests
url = "https://{baseurl}/api/v1/management/action-classes"
headers = {"x-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-Api-Key': '<x-api-key>'}};
fetch('https://{baseurl}/api/v1/management/action-classes', 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://{baseurl}/api/v1/management/action-classes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-Api-Key: <x-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://{baseurl}/api/v1/management/action-classes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-Api-Key", "<x-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://{baseurl}/api/v1/management/action-classes")
.header("x-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseurl}/api/v1/management/action-classes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "Gets fired when a new session is created",
"id": "clurwouax000bzffxv3fqy6mt",
"name": "New Session",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "A user on Desktop leaves the website with the cursor.",
"id": "clurwouax000czffx4wj0qldi",
"name": "Exit Intent (Desktop)",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-09T04:53:29.577Z",
"description": "A user scrolled 50% of the current page",
"id": "clurwouax000dzffx3dfxc91d",
"name": "50% Scroll",
"noCodeConfig": null,
"type": "automatic",
"updatedAt": "2024-04-09T04:53:29.577Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-22T08:59:01.144Z",
"description": "hhehe",
"id": "clvaq6nx40000mhqfuu74rv92",
"name": "new_action_v2",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-22T09:03:55.509Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-22T09:04:30.756Z",
"description": null,
"id": "clvaqdq8z000bmhqfu0km5rv4",
"name": "new_action_v20",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-22T09:04:30.756Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
},
{
"createdAt": "2024-04-23T07:11:17.032Z",
"description": null,
"id": "clvc1ryuf0001494jc8oesfwl",
"name": "new_action_v1",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T07:11:17.032Z",
"workspaceId": "clurwouax000azffxt7n5unn3"
}
]
}{
"code": "not_authenticated",
"details": {
"x-Api-Key": "Header not provided or API Key invalid"
},
"message": "Not authenticated"
}Headers
Response
OK
The response is of type object.
Was this page helpful?
⌘I