curl --request POST \
--url https://api.extole.io/v6/report-types \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_scopes": [
"CLIENT_ADMIN"
],
"categories": [
"categorie"
],
"component_ids": [
"component_id"
],
"component_references": [
{
"component_id": "component_id",
"socket_names": [
"socket_name"
]
}
],
"data_start": "2025-10-24T09:00:00.000Z",
"description": "description",
"display_name": "display_name",
"formats": [
"CSV"
],
"parameters": [
{
"category": "category",
"default_value": "default_value",
"description": "description",
"display_name": "display_name",
"is_required": true,
"name": "name",
"order": 1,
"type": "DYNAMIC",
"type_name": "AUDIENCE_ID",
"values": [
"value"
]
}
],
"parent_report_type_id": "parent_report_type_id",
"scopes": [
"CLIENT_ADMIN"
],
"tags": [
{
"name": "name",
"type": "GLOBAL"
}
],
"type": "CONFIGURED",
"visibility": "EXTOLE_ONLY"
}
'import requests
url = "https://api.extole.io/v6/report-types"
payload = {
"allowed_scopes": ["CLIENT_ADMIN"],
"categories": ["categorie"],
"component_ids": ["component_id"],
"component_references": [
{
"component_id": "component_id",
"socket_names": ["socket_name"]
}
],
"data_start": "2025-10-24T09:00:00.000Z",
"description": "description",
"display_name": "display_name",
"formats": ["CSV"],
"parameters": [
{
"category": "category",
"default_value": "default_value",
"description": "description",
"display_name": "display_name",
"is_required": True,
"name": "name",
"order": 1,
"type": "DYNAMIC",
"type_name": "AUDIENCE_ID",
"values": ["value"]
}
],
"parent_report_type_id": "parent_report_type_id",
"scopes": ["CLIENT_ADMIN"],
"tags": [
{
"name": "name",
"type": "GLOBAL"
}
],
"type": "CONFIGURED",
"visibility": "EXTOLE_ONLY"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowed_scopes: ['CLIENT_ADMIN'],
categories: ['categorie'],
component_ids: ['component_id'],
component_references: [{component_id: 'component_id', socket_names: ['socket_name']}],
data_start: '2025-10-24T09:00:00.000Z',
description: 'description',
display_name: 'display_name',
formats: ['CSV'],
parameters: [
{
category: 'category',
default_value: 'default_value',
description: 'description',
display_name: 'display_name',
is_required: true,
name: 'name',
order: 1,
type: 'DYNAMIC',
type_name: 'AUDIENCE_ID',
values: ['value']
}
],
parent_report_type_id: 'parent_report_type_id',
scopes: ['CLIENT_ADMIN'],
tags: [{name: 'name', type: 'GLOBAL'}],
type: 'CONFIGURED',
visibility: 'EXTOLE_ONLY'
})
};
fetch('https://api.extole.io/v6/report-types', 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://api.extole.io/v6/report-types",
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([
'allowed_scopes' => [
'CLIENT_ADMIN'
],
'categories' => [
'categorie'
],
'component_ids' => [
'component_id'
],
'component_references' => [
[
'component_id' => 'component_id',
'socket_names' => [
'socket_name'
]
]
],
'data_start' => '2025-10-24T09:00:00.000Z',
'description' => 'description',
'display_name' => 'display_name',
'formats' => [
'CSV'
],
'parameters' => [
[
'category' => 'category',
'default_value' => 'default_value',
'description' => 'description',
'display_name' => 'display_name',
'is_required' => true,
'name' => 'name',
'order' => 1,
'type' => 'DYNAMIC',
'type_name' => 'AUDIENCE_ID',
'values' => [
'value'
]
]
],
'parent_report_type_id' => 'parent_report_type_id',
'scopes' => [
'CLIENT_ADMIN'
],
'tags' => [
[
'name' => 'name',
'type' => 'GLOBAL'
]
],
'type' => 'CONFIGURED',
'visibility' => 'EXTOLE_ONLY'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://api.extole.io/v6/report-types"
payload := strings.NewReader("{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.extole.io/v6/report-types")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v6/report-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}"
response = http.request(request)
puts response.read_bodyCreate a report type
Creates a new report-type definition (SQL- or CONFIGURED-shaped). Returns the persisted report type with its server-assigned id and any defaulted fields. Marked expert: report-type definitions are typically managed by Extole staff.
curl --request POST \
--url https://api.extole.io/v6/report-types \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_scopes": [
"CLIENT_ADMIN"
],
"categories": [
"categorie"
],
"component_ids": [
"component_id"
],
"component_references": [
{
"component_id": "component_id",
"socket_names": [
"socket_name"
]
}
],
"data_start": "2025-10-24T09:00:00.000Z",
"description": "description",
"display_name": "display_name",
"formats": [
"CSV"
],
"parameters": [
{
"category": "category",
"default_value": "default_value",
"description": "description",
"display_name": "display_name",
"is_required": true,
"name": "name",
"order": 1,
"type": "DYNAMIC",
"type_name": "AUDIENCE_ID",
"values": [
"value"
]
}
],
"parent_report_type_id": "parent_report_type_id",
"scopes": [
"CLIENT_ADMIN"
],
"tags": [
{
"name": "name",
"type": "GLOBAL"
}
],
"type": "CONFIGURED",
"visibility": "EXTOLE_ONLY"
}
'import requests
url = "https://api.extole.io/v6/report-types"
payload = {
"allowed_scopes": ["CLIENT_ADMIN"],
"categories": ["categorie"],
"component_ids": ["component_id"],
"component_references": [
{
"component_id": "component_id",
"socket_names": ["socket_name"]
}
],
"data_start": "2025-10-24T09:00:00.000Z",
"description": "description",
"display_name": "display_name",
"formats": ["CSV"],
"parameters": [
{
"category": "category",
"default_value": "default_value",
"description": "description",
"display_name": "display_name",
"is_required": True,
"name": "name",
"order": 1,
"type": "DYNAMIC",
"type_name": "AUDIENCE_ID",
"values": ["value"]
}
],
"parent_report_type_id": "parent_report_type_id",
"scopes": ["CLIENT_ADMIN"],
"tags": [
{
"name": "name",
"type": "GLOBAL"
}
],
"type": "CONFIGURED",
"visibility": "EXTOLE_ONLY"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowed_scopes: ['CLIENT_ADMIN'],
categories: ['categorie'],
component_ids: ['component_id'],
component_references: [{component_id: 'component_id', socket_names: ['socket_name']}],
data_start: '2025-10-24T09:00:00.000Z',
description: 'description',
display_name: 'display_name',
formats: ['CSV'],
parameters: [
{
category: 'category',
default_value: 'default_value',
description: 'description',
display_name: 'display_name',
is_required: true,
name: 'name',
order: 1,
type: 'DYNAMIC',
type_name: 'AUDIENCE_ID',
values: ['value']
}
],
parent_report_type_id: 'parent_report_type_id',
scopes: ['CLIENT_ADMIN'],
tags: [{name: 'name', type: 'GLOBAL'}],
type: 'CONFIGURED',
visibility: 'EXTOLE_ONLY'
})
};
fetch('https://api.extole.io/v6/report-types', 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://api.extole.io/v6/report-types",
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([
'allowed_scopes' => [
'CLIENT_ADMIN'
],
'categories' => [
'categorie'
],
'component_ids' => [
'component_id'
],
'component_references' => [
[
'component_id' => 'component_id',
'socket_names' => [
'socket_name'
]
]
],
'data_start' => '2025-10-24T09:00:00.000Z',
'description' => 'description',
'display_name' => 'display_name',
'formats' => [
'CSV'
],
'parameters' => [
[
'category' => 'category',
'default_value' => 'default_value',
'description' => 'description',
'display_name' => 'display_name',
'is_required' => true,
'name' => 'name',
'order' => 1,
'type' => 'DYNAMIC',
'type_name' => 'AUDIENCE_ID',
'values' => [
'value'
]
]
],
'parent_report_type_id' => 'parent_report_type_id',
'scopes' => [
'CLIENT_ADMIN'
],
'tags' => [
[
'name' => 'name',
'type' => 'GLOBAL'
]
],
'type' => 'CONFIGURED',
'visibility' => 'EXTOLE_ONLY'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://api.extole.io/v6/report-types"
payload := strings.NewReader("{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.extole.io/v6/report-types")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v6/report-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowed_scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"categories\": [\n \"categorie\"\n ],\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"data_start\": \"2025-10-24T09:00:00.000Z\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"formats\": [\n \"CSV\"\n ],\n \"parameters\": [\n {\n \"category\": \"category\",\n \"default_value\": \"default_value\",\n \"description\": \"description\",\n \"display_name\": \"display_name\",\n \"is_required\": true,\n \"name\": \"name\",\n \"order\": 1,\n \"type\": \"DYNAMIC\",\n \"type_name\": \"AUDIENCE_ID\",\n \"values\": [\n \"value\"\n ]\n }\n ],\n \"parent_report_type_id\": \"parent_report_type_id\",\n \"scopes\": [\n \"CLIENT_ADMIN\"\n ],\n \"tags\": [\n {\n \"name\": \"name\",\n \"type\": \"GLOBAL\"\n }\n ],\n \"type\": \"CONFIGURED\",\n \"visibility\": \"EXTOLE_ONLY\"\n}"
response = http.request(request)
puts response.read_bodyBody
- CONFIGURED
- SQL
Body of POST /v6/report-types. Polymorphic on type: SQL- and CONFIGURED-shaped report types share the metadata fields below and add their own type-specific fields.
RFC 3339 UTC date-time with a Z suffix. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$"2025-10-24T09:00:00.000Z"
Response
Report type definition including display metadata, parameters, formats, scopes, visibility, tags, and component references.
- CONFIGURED
- DASHBOARD
- SPARK
- SQL
Report type definition. Polymorphic on type: SQL, SPARK, DASHBOARD, and CONFIGURED share the common metadata below (display name, description, scopes, parameters, formats, tags, data sources) and add their own type-specific fields.
Underlying data sources the report type reads from.
Underlying data sources the report type reads from.
AUDIT_EMAIL, BATCH, CLIENT, CLIENT_CHANGE, CONSUMER, CONSUMER_PROFILE, DASHBOARD, DATA_INTELLIGENCE, MESSAGE, NOTIFICATION, PROFILE, REWARD, REWARD_COMMAND, WEBHOOK, WEBHOOK_DISPATCH_RESULT RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Access scopes the report type is available to (e.g. CLIENT_ADMIN, USER_SUPPORT). Lists only the scopes the caller can see.
Access scopes the report type is available to (e.g. CLIENT_ADMIN, USER_SUPPORT). Lists only the scopes the caller can see.
CLIENT_ADMIN, CLIENT_SUPERUSER, CONSUMER_PUBLIC, USER_SUPPORT RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Was this page helpful?
