Create recording view
Create a recording view. The view is public and owned by the workspace member identified by creatorEmail.
curl --request POST \
--url https://api.claap.io/v1/recordings/views \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"name": "<string>",
"creatorEmail": "jsmith@example.com",
"columns": [
{
"type": "Default",
"isHidden": true,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": [
"<string>"
],
"companyIdNotIn": [
"<string>"
],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": [
"<string>"
],
"dealAmountCurrencyNotIn": [
"<string>"
],
"dealAmountValue": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": [
"<string>"
],
"dealIdNotIn": [
"<string>"
],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": [
"<string>"
],
"dealOwnerNameNotIn": [
"<string>"
],
"dealPipelineIdIn": [
"<string>"
],
"dealPipelineIdNotIn": [
"<string>"
],
"dealStageIn": [
"<string>"
],
"dealStageNotIn": [
"<string>"
],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": [
"<string>"
],
"dealTypeNotIn": [
"<string>"
],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": {
"is": true
}
}
],
"interactivityScore": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": [
"<string>"
],
"labelIdNotIn": [
"<string>"
],
"langIso2In": [
"<string>"
],
"langIso2NotIn": [
"<string>"
],
"longestCustomerStorySeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": [
"<string>"
],
"recordingIdNotIn": [
"<string>"
],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": [
"<string>"
],
"teamIdNotIn": [
"<string>"
],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": true,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": [
"<string>"
],
"topicIdNotIn": [
"<string>"
],
"userGroupIn": [
"<string>"
],
"userGroupNotIn": [
"<string>"
],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"icon": "<string>",
"sort": [
{}
],
"visibility": "Public"
}
'import requests
url = "https://api.claap.io/v1/recordings/views"
payload = {
"name": "<string>",
"creatorEmail": "jsmith@example.com",
"columns": [
{
"type": "Default",
"isHidden": True,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": ["<string>"],
"companyIdNotIn": ["<string>"],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": ["<string>"],
"dealAmountCurrencyNotIn": ["<string>"],
"dealAmountValue": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": ["<string>"],
"dealIdNotIn": ["<string>"],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": ["<string>"],
"dealOwnerNameNotIn": ["<string>"],
"dealPipelineIdIn": ["<string>"],
"dealPipelineIdNotIn": ["<string>"],
"dealStageIn": ["<string>"],
"dealStageNotIn": ["<string>"],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": ["<string>"],
"dealTypeNotIn": ["<string>"],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": { "is": True }
}
],
"interactivityScore": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": ["<string>"],
"labelIdNotIn": ["<string>"],
"langIso2In": ["<string>"],
"langIso2NotIn": ["<string>"],
"longestCustomerStorySeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": ["<string>"],
"recordingIdNotIn": ["<string>"],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": ["<string>"],
"teamIdNotIn": ["<string>"],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": True,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": ["<string>"],
"topicIdNotIn": ["<string>"],
"userGroupIn": ["<string>"],
"userGroupNotIn": ["<string>"],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"icon": "<string>",
"sort": [{}],
"visibility": "Public"
}
headers = {
"X-Claap-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Claap-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
creatorEmail: 'jsmith@example.com',
columns: [{type: 'Default', isHidden: true, width: 123}],
filters: {
authorIdIn: [{type: 'User', userId: '<string>'}],
authorIdNotIn: [{type: 'User', userId: '<string>'}],
companyIdIn: ['<string>'],
companyIdNotIn: ['<string>'],
createdAfterAt: '<string>',
createdAfterRelative: 123,
createdBeforeAt: '<string>',
createdBeforeRelative: 123,
dealAiStatusIn: [],
dealAiStatusNotIn: [],
dealAmountCurrencyIn: ['<string>'],
dealAmountCurrencyNotIn: ['<string>'],
dealAmountValue: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
dealClosedAfterRelative: 123,
dealClosedBeforeRelative: 123,
dealIdIn: ['<string>'],
dealIdNotIn: ['<string>'],
dealOpenedAfterRelative: 123,
dealOpenedBeforeRelative: 123,
dealOwnerNameIn: ['<string>'],
dealOwnerNameNotIn: ['<string>'],
dealPipelineIdIn: ['<string>'],
dealPipelineIdNotIn: ['<string>'],
dealStageIn: ['<string>'],
dealStageNotIn: ['<string>'],
dealStatusIn: [],
dealStatusNotIn: [],
dealTypeIn: ['<string>'],
dealTypeNotIn: ['<string>'],
insights: [{type: 'boolean', sectionId: '<string>', boolFilter: {is: true}}],
interactivityScore: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
labelIdIn: ['<string>'],
labelIdNotIn: ['<string>'],
langIso2In: ['<string>'],
langIso2NotIn: ['<string>'],
longestCustomerStorySeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
longestMonologueSeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
patienceSeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
peopleIn: [{type: 'User', userId: '<string>', name: '<string>', email: '<string>'}],
peopleNotIn: [{type: 'User', userId: '<string>', name: '<string>', email: '<string>'}],
questionsPerHour: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
recordingIdIn: ['<string>'],
recordingIdNotIn: ['<string>'],
recordingTypeIn: [],
sourceIn: [],
sourceNotIn: [],
stateIn: [],
talkingRatio: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
teamIdIn: ['<string>'],
teamIdNotIn: ['<string>'],
title: {
contains: '<string>',
containsNot: '<string>',
exists: true,
is: '<string>',
isNot: '<string>'
},
topicIdIn: ['<string>'],
topicIdNotIn: ['<string>'],
userGroupIn: ['<string>'],
userGroupNotIn: ['<string>'],
videoDurationSecBetween: {gte: 123, lte: 123}
},
icon: '<string>',
sort: [{}],
visibility: 'Public'
})
};
fetch('https://api.claap.io/v1/recordings/views', 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.claap.io/v1/recordings/views",
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([
'name' => '<string>',
'creatorEmail' => 'jsmith@example.com',
'columns' => [
[
'type' => 'Default',
'isHidden' => true,
'width' => 123
]
],
'filters' => [
'authorIdIn' => [
[
'type' => 'User',
'userId' => '<string>'
]
],
'authorIdNotIn' => [
[
'type' => 'User',
'userId' => '<string>'
]
],
'companyIdIn' => [
'<string>'
],
'companyIdNotIn' => [
'<string>'
],
'createdAfterAt' => '<string>',
'createdAfterRelative' => 123,
'createdBeforeAt' => '<string>',
'createdBeforeRelative' => 123,
'dealAiStatusIn' => [
],
'dealAiStatusNotIn' => [
],
'dealAmountCurrencyIn' => [
'<string>'
],
'dealAmountCurrencyNotIn' => [
'<string>'
],
'dealAmountValue' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'dealClosedAfterRelative' => 123,
'dealClosedBeforeRelative' => 123,
'dealIdIn' => [
'<string>'
],
'dealIdNotIn' => [
'<string>'
],
'dealOpenedAfterRelative' => 123,
'dealOpenedBeforeRelative' => 123,
'dealOwnerNameIn' => [
'<string>'
],
'dealOwnerNameNotIn' => [
'<string>'
],
'dealPipelineIdIn' => [
'<string>'
],
'dealPipelineIdNotIn' => [
'<string>'
],
'dealStageIn' => [
'<string>'
],
'dealStageNotIn' => [
'<string>'
],
'dealStatusIn' => [
],
'dealStatusNotIn' => [
],
'dealTypeIn' => [
'<string>'
],
'dealTypeNotIn' => [
'<string>'
],
'insights' => [
[
'type' => 'boolean',
'sectionId' => '<string>',
'boolFilter' => [
'is' => true
]
]
],
'interactivityScore' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'labelIdIn' => [
'<string>'
],
'labelIdNotIn' => [
'<string>'
],
'langIso2In' => [
'<string>'
],
'langIso2NotIn' => [
'<string>'
],
'longestCustomerStorySeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'longestMonologueSeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'patienceSeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'peopleIn' => [
[
'type' => 'User',
'userId' => '<string>',
'name' => '<string>',
'email' => '<string>'
]
],
'peopleNotIn' => [
[
'type' => 'User',
'userId' => '<string>',
'name' => '<string>',
'email' => '<string>'
]
],
'questionsPerHour' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'recordingIdIn' => [
'<string>'
],
'recordingIdNotIn' => [
'<string>'
],
'recordingTypeIn' => [
],
'sourceIn' => [
],
'sourceNotIn' => [
],
'stateIn' => [
],
'talkingRatio' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'teamIdIn' => [
'<string>'
],
'teamIdNotIn' => [
'<string>'
],
'title' => [
'contains' => '<string>',
'containsNot' => '<string>',
'exists' => true,
'is' => '<string>',
'isNot' => '<string>'
],
'topicIdIn' => [
'<string>'
],
'topicIdNotIn' => [
'<string>'
],
'userGroupIn' => [
'<string>'
],
'userGroupNotIn' => [
'<string>'
],
'videoDurationSecBetween' => [
'gte' => 123,
'lte' => 123
]
],
'icon' => '<string>',
'sort' => [
[
]
],
'visibility' => 'Public'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Claap-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.claap.io/v1/recordings/views"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Claap-Key", "<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.claap.io/v1/recordings/views")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/recordings/views")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Claap-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"viewId": "<string>",
"name": "<string>",
"ownerId": "<string>",
"columns": [
{
"type": "Default",
"columnId": "<string>",
"isHidden": true,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": [
"<string>"
],
"companyIdNotIn": [
"<string>"
],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": [
"<string>"
],
"dealAmountCurrencyNotIn": [
"<string>"
],
"dealAmountValue": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": [
"<string>"
],
"dealIdNotIn": [
"<string>"
],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": [
"<string>"
],
"dealOwnerNameNotIn": [
"<string>"
],
"dealPipelineIdIn": [
"<string>"
],
"dealPipelineIdNotIn": [
"<string>"
],
"dealStageIn": [
"<string>"
],
"dealStageNotIn": [
"<string>"
],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": [
"<string>"
],
"dealTypeNotIn": [
"<string>"
],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": {
"is": true
}
}
],
"interactivityScore": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": [
"<string>"
],
"labelIdNotIn": [
"<string>"
],
"langIso2In": [
"<string>"
],
"langIso2NotIn": [
"<string>"
],
"longestCustomerStorySeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": [
"<string>"
],
"recordingIdNotIn": [
"<string>"
],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": [
"<string>"
],
"teamIdNotIn": [
"<string>"
],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": true,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": [
"<string>"
],
"topicIdNotIn": [
"<string>"
],
"userGroupIn": [
"<string>"
],
"userGroupNotIn": [
"<string>"
],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"sort": [
{
"insight": {
"sectionId": "<string>"
}
}
],
"icon": "<string>"
}
}creatorEmail must belong to an active workspace member, who becomes the view owner. Only public views can be created through the API.Authorizations
Body
The view name.
Email address of the view creator. It must belong to an active workspace member, who becomes the view owner.
The columns of the recordings table. When omitted, the default columns are used.
A column of the recordings table, either a built-in column (Default) or an AI insight column (AiSection).
- Option 1
- Option 2
Show child attributes
Show child attributes
The filters applied by the view. When omitted, the view matches all recordings.
Show child attributes
Show child attributes
The view icon.
The sort order of the recordings table. When omitted, the default sort order is used.
Show child attributes
Show child attributes
The view visibility. Only Public views can be created through the API.
Public Response
Recording view was successfully created
A saved view of the recordings table.
Show child attributes
Show child attributes
curl --request POST \
--url https://api.claap.io/v1/recordings/views \
--header 'Content-Type: application/json' \
--header 'X-Claap-Key: <api-key>' \
--data '
{
"name": "<string>",
"creatorEmail": "jsmith@example.com",
"columns": [
{
"type": "Default",
"isHidden": true,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": [
"<string>"
],
"companyIdNotIn": [
"<string>"
],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": [
"<string>"
],
"dealAmountCurrencyNotIn": [
"<string>"
],
"dealAmountValue": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": [
"<string>"
],
"dealIdNotIn": [
"<string>"
],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": [
"<string>"
],
"dealOwnerNameNotIn": [
"<string>"
],
"dealPipelineIdIn": [
"<string>"
],
"dealPipelineIdNotIn": [
"<string>"
],
"dealStageIn": [
"<string>"
],
"dealStageNotIn": [
"<string>"
],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": [
"<string>"
],
"dealTypeNotIn": [
"<string>"
],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": {
"is": true
}
}
],
"interactivityScore": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": [
"<string>"
],
"labelIdNotIn": [
"<string>"
],
"langIso2In": [
"<string>"
],
"langIso2NotIn": [
"<string>"
],
"longestCustomerStorySeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": [
"<string>"
],
"recordingIdNotIn": [
"<string>"
],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": [
"<string>"
],
"teamIdNotIn": [
"<string>"
],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": true,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": [
"<string>"
],
"topicIdNotIn": [
"<string>"
],
"userGroupIn": [
"<string>"
],
"userGroupNotIn": [
"<string>"
],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"icon": "<string>",
"sort": [
{}
],
"visibility": "Public"
}
'import requests
url = "https://api.claap.io/v1/recordings/views"
payload = {
"name": "<string>",
"creatorEmail": "jsmith@example.com",
"columns": [
{
"type": "Default",
"isHidden": True,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": ["<string>"],
"companyIdNotIn": ["<string>"],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": ["<string>"],
"dealAmountCurrencyNotIn": ["<string>"],
"dealAmountValue": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": ["<string>"],
"dealIdNotIn": ["<string>"],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": ["<string>"],
"dealOwnerNameNotIn": ["<string>"],
"dealPipelineIdIn": ["<string>"],
"dealPipelineIdNotIn": ["<string>"],
"dealStageIn": ["<string>"],
"dealStageNotIn": ["<string>"],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": ["<string>"],
"dealTypeNotIn": ["<string>"],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": { "is": True }
}
],
"interactivityScore": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": ["<string>"],
"labelIdNotIn": ["<string>"],
"langIso2In": ["<string>"],
"langIso2NotIn": ["<string>"],
"longestCustomerStorySeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": ["<string>"],
"recordingIdNotIn": ["<string>"],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": True,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": ["<string>"],
"teamIdNotIn": ["<string>"],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": True,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": ["<string>"],
"topicIdNotIn": ["<string>"],
"userGroupIn": ["<string>"],
"userGroupNotIn": ["<string>"],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"icon": "<string>",
"sort": [{}],
"visibility": "Public"
}
headers = {
"X-Claap-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Claap-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
creatorEmail: 'jsmith@example.com',
columns: [{type: 'Default', isHidden: true, width: 123}],
filters: {
authorIdIn: [{type: 'User', userId: '<string>'}],
authorIdNotIn: [{type: 'User', userId: '<string>'}],
companyIdIn: ['<string>'],
companyIdNotIn: ['<string>'],
createdAfterAt: '<string>',
createdAfterRelative: 123,
createdBeforeAt: '<string>',
createdBeforeRelative: 123,
dealAiStatusIn: [],
dealAiStatusNotIn: [],
dealAmountCurrencyIn: ['<string>'],
dealAmountCurrencyNotIn: ['<string>'],
dealAmountValue: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
dealClosedAfterRelative: 123,
dealClosedBeforeRelative: 123,
dealIdIn: ['<string>'],
dealIdNotIn: ['<string>'],
dealOpenedAfterRelative: 123,
dealOpenedBeforeRelative: 123,
dealOwnerNameIn: ['<string>'],
dealOwnerNameNotIn: ['<string>'],
dealPipelineIdIn: ['<string>'],
dealPipelineIdNotIn: ['<string>'],
dealStageIn: ['<string>'],
dealStageNotIn: ['<string>'],
dealStatusIn: [],
dealStatusNotIn: [],
dealTypeIn: ['<string>'],
dealTypeNotIn: ['<string>'],
insights: [{type: 'boolean', sectionId: '<string>', boolFilter: {is: true}}],
interactivityScore: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
labelIdIn: ['<string>'],
labelIdNotIn: ['<string>'],
langIso2In: ['<string>'],
langIso2NotIn: ['<string>'],
longestCustomerStorySeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
longestMonologueSeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
patienceSeconds: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
peopleIn: [{type: 'User', userId: '<string>', name: '<string>', email: '<string>'}],
peopleNotIn: [{type: 'User', userId: '<string>', name: '<string>', email: '<string>'}],
questionsPerHour: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
recordingIdIn: ['<string>'],
recordingIdNotIn: ['<string>'],
recordingTypeIn: [],
sourceIn: [],
sourceNotIn: [],
stateIn: [],
talkingRatio: {exists: true, gte: 123, is: 123, isNot: 123, lte: 123},
teamIdIn: ['<string>'],
teamIdNotIn: ['<string>'],
title: {
contains: '<string>',
containsNot: '<string>',
exists: true,
is: '<string>',
isNot: '<string>'
},
topicIdIn: ['<string>'],
topicIdNotIn: ['<string>'],
userGroupIn: ['<string>'],
userGroupNotIn: ['<string>'],
videoDurationSecBetween: {gte: 123, lte: 123}
},
icon: '<string>',
sort: [{}],
visibility: 'Public'
})
};
fetch('https://api.claap.io/v1/recordings/views', 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.claap.io/v1/recordings/views",
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([
'name' => '<string>',
'creatorEmail' => 'jsmith@example.com',
'columns' => [
[
'type' => 'Default',
'isHidden' => true,
'width' => 123
]
],
'filters' => [
'authorIdIn' => [
[
'type' => 'User',
'userId' => '<string>'
]
],
'authorIdNotIn' => [
[
'type' => 'User',
'userId' => '<string>'
]
],
'companyIdIn' => [
'<string>'
],
'companyIdNotIn' => [
'<string>'
],
'createdAfterAt' => '<string>',
'createdAfterRelative' => 123,
'createdBeforeAt' => '<string>',
'createdBeforeRelative' => 123,
'dealAiStatusIn' => [
],
'dealAiStatusNotIn' => [
],
'dealAmountCurrencyIn' => [
'<string>'
],
'dealAmountCurrencyNotIn' => [
'<string>'
],
'dealAmountValue' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'dealClosedAfterRelative' => 123,
'dealClosedBeforeRelative' => 123,
'dealIdIn' => [
'<string>'
],
'dealIdNotIn' => [
'<string>'
],
'dealOpenedAfterRelative' => 123,
'dealOpenedBeforeRelative' => 123,
'dealOwnerNameIn' => [
'<string>'
],
'dealOwnerNameNotIn' => [
'<string>'
],
'dealPipelineIdIn' => [
'<string>'
],
'dealPipelineIdNotIn' => [
'<string>'
],
'dealStageIn' => [
'<string>'
],
'dealStageNotIn' => [
'<string>'
],
'dealStatusIn' => [
],
'dealStatusNotIn' => [
],
'dealTypeIn' => [
'<string>'
],
'dealTypeNotIn' => [
'<string>'
],
'insights' => [
[
'type' => 'boolean',
'sectionId' => '<string>',
'boolFilter' => [
'is' => true
]
]
],
'interactivityScore' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'labelIdIn' => [
'<string>'
],
'labelIdNotIn' => [
'<string>'
],
'langIso2In' => [
'<string>'
],
'langIso2NotIn' => [
'<string>'
],
'longestCustomerStorySeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'longestMonologueSeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'patienceSeconds' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'peopleIn' => [
[
'type' => 'User',
'userId' => '<string>',
'name' => '<string>',
'email' => '<string>'
]
],
'peopleNotIn' => [
[
'type' => 'User',
'userId' => '<string>',
'name' => '<string>',
'email' => '<string>'
]
],
'questionsPerHour' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'recordingIdIn' => [
'<string>'
],
'recordingIdNotIn' => [
'<string>'
],
'recordingTypeIn' => [
],
'sourceIn' => [
],
'sourceNotIn' => [
],
'stateIn' => [
],
'talkingRatio' => [
'exists' => true,
'gte' => 123,
'is' => 123,
'isNot' => 123,
'lte' => 123
],
'teamIdIn' => [
'<string>'
],
'teamIdNotIn' => [
'<string>'
],
'title' => [
'contains' => '<string>',
'containsNot' => '<string>',
'exists' => true,
'is' => '<string>',
'isNot' => '<string>'
],
'topicIdIn' => [
'<string>'
],
'topicIdNotIn' => [
'<string>'
],
'userGroupIn' => [
'<string>'
],
'userGroupNotIn' => [
'<string>'
],
'videoDurationSecBetween' => [
'gte' => 123,
'lte' => 123
]
],
'icon' => '<string>',
'sort' => [
[
]
],
'visibility' => 'Public'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Claap-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.claap.io/v1/recordings/views"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Claap-Key", "<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.claap.io/v1/recordings/views")
.header("X-Claap-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.claap.io/v1/recordings/views")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Claap-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"creatorEmail\": \"jsmith@example.com\",\n \"columns\": [\n {\n \"type\": \"Default\",\n \"isHidden\": true,\n \"width\": 123\n }\n ],\n \"filters\": {\n \"authorIdIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"authorIdNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\"\n }\n ],\n \"companyIdIn\": [\n \"<string>\"\n ],\n \"companyIdNotIn\": [\n \"<string>\"\n ],\n \"createdAfterAt\": \"<string>\",\n \"createdAfterRelative\": 123,\n \"createdBeforeAt\": \"<string>\",\n \"createdBeforeRelative\": 123,\n \"dealAiStatusIn\": [],\n \"dealAiStatusNotIn\": [],\n \"dealAmountCurrencyIn\": [\n \"<string>\"\n ],\n \"dealAmountCurrencyNotIn\": [\n \"<string>\"\n ],\n \"dealAmountValue\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"dealClosedAfterRelative\": 123,\n \"dealClosedBeforeRelative\": 123,\n \"dealIdIn\": [\n \"<string>\"\n ],\n \"dealIdNotIn\": [\n \"<string>\"\n ],\n \"dealOpenedAfterRelative\": 123,\n \"dealOpenedBeforeRelative\": 123,\n \"dealOwnerNameIn\": [\n \"<string>\"\n ],\n \"dealOwnerNameNotIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdIn\": [\n \"<string>\"\n ],\n \"dealPipelineIdNotIn\": [\n \"<string>\"\n ],\n \"dealStageIn\": [\n \"<string>\"\n ],\n \"dealStageNotIn\": [\n \"<string>\"\n ],\n \"dealStatusIn\": [],\n \"dealStatusNotIn\": [],\n \"dealTypeIn\": [\n \"<string>\"\n ],\n \"dealTypeNotIn\": [\n \"<string>\"\n ],\n \"insights\": [\n {\n \"type\": \"boolean\",\n \"sectionId\": \"<string>\",\n \"boolFilter\": {\n \"is\": true\n }\n }\n ],\n \"interactivityScore\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"labelIdIn\": [\n \"<string>\"\n ],\n \"labelIdNotIn\": [\n \"<string>\"\n ],\n \"langIso2In\": [\n \"<string>\"\n ],\n \"langIso2NotIn\": [\n \"<string>\"\n ],\n \"longestCustomerStorySeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"longestMonologueSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"patienceSeconds\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"peopleIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"peopleNotIn\": [\n {\n \"type\": \"User\",\n \"userId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"questionsPerHour\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"recordingIdIn\": [\n \"<string>\"\n ],\n \"recordingIdNotIn\": [\n \"<string>\"\n ],\n \"recordingTypeIn\": [],\n \"sourceIn\": [],\n \"sourceNotIn\": [],\n \"stateIn\": [],\n \"talkingRatio\": {\n \"exists\": true,\n \"gte\": 123,\n \"is\": 123,\n \"isNot\": 123,\n \"lte\": 123\n },\n \"teamIdIn\": [\n \"<string>\"\n ],\n \"teamIdNotIn\": [\n \"<string>\"\n ],\n \"title\": {\n \"contains\": \"<string>\",\n \"containsNot\": \"<string>\",\n \"exists\": true,\n \"is\": \"<string>\",\n \"isNot\": \"<string>\"\n },\n \"topicIdIn\": [\n \"<string>\"\n ],\n \"topicIdNotIn\": [\n \"<string>\"\n ],\n \"userGroupIn\": [\n \"<string>\"\n ],\n \"userGroupNotIn\": [\n \"<string>\"\n ],\n \"videoDurationSecBetween\": {\n \"gte\": 123,\n \"lte\": 123\n }\n },\n \"icon\": \"<string>\",\n \"sort\": [\n {}\n ],\n \"visibility\": \"Public\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"viewId": "<string>",
"name": "<string>",
"ownerId": "<string>",
"columns": [
{
"type": "Default",
"columnId": "<string>",
"isHidden": true,
"width": 123
}
],
"filters": {
"authorIdIn": [
{
"type": "User",
"userId": "<string>"
}
],
"authorIdNotIn": [
{
"type": "User",
"userId": "<string>"
}
],
"companyIdIn": [
"<string>"
],
"companyIdNotIn": [
"<string>"
],
"createdAfterAt": "<string>",
"createdAfterRelative": 123,
"createdBeforeAt": "<string>",
"createdBeforeRelative": 123,
"dealAiStatusIn": [],
"dealAiStatusNotIn": [],
"dealAmountCurrencyIn": [
"<string>"
],
"dealAmountCurrencyNotIn": [
"<string>"
],
"dealAmountValue": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"dealClosedAfterRelative": 123,
"dealClosedBeforeRelative": 123,
"dealIdIn": [
"<string>"
],
"dealIdNotIn": [
"<string>"
],
"dealOpenedAfterRelative": 123,
"dealOpenedBeforeRelative": 123,
"dealOwnerNameIn": [
"<string>"
],
"dealOwnerNameNotIn": [
"<string>"
],
"dealPipelineIdIn": [
"<string>"
],
"dealPipelineIdNotIn": [
"<string>"
],
"dealStageIn": [
"<string>"
],
"dealStageNotIn": [
"<string>"
],
"dealStatusIn": [],
"dealStatusNotIn": [],
"dealTypeIn": [
"<string>"
],
"dealTypeNotIn": [
"<string>"
],
"insights": [
{
"type": "boolean",
"sectionId": "<string>",
"boolFilter": {
"is": true
}
}
],
"interactivityScore": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"labelIdIn": [
"<string>"
],
"labelIdNotIn": [
"<string>"
],
"langIso2In": [
"<string>"
],
"langIso2NotIn": [
"<string>"
],
"longestCustomerStorySeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"longestMonologueSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"patienceSeconds": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"peopleIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"peopleNotIn": [
{
"type": "User",
"userId": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"questionsPerHour": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"recordingIdIn": [
"<string>"
],
"recordingIdNotIn": [
"<string>"
],
"recordingTypeIn": [],
"sourceIn": [],
"sourceNotIn": [],
"stateIn": [],
"talkingRatio": {
"exists": true,
"gte": 123,
"is": 123,
"isNot": 123,
"lte": 123
},
"teamIdIn": [
"<string>"
],
"teamIdNotIn": [
"<string>"
],
"title": {
"contains": "<string>",
"containsNot": "<string>",
"exists": true,
"is": "<string>",
"isNot": "<string>"
},
"topicIdIn": [
"<string>"
],
"topicIdNotIn": [
"<string>"
],
"userGroupIn": [
"<string>"
],
"userGroupNotIn": [
"<string>"
],
"videoDurationSecBetween": {
"gte": 123,
"lte": 123
}
},
"sort": [
{
"insight": {
"sectionId": "<string>"
}
}
],
"icon": "<string>"
}
}