Add suggested task from briefing
curl --request POST \
--url https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}', 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.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-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://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-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.post("https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"access": [
"<string>"
],
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"assignee": "<string>",
"automation": "<string>",
"automation_config": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"automation_data": "<unknown>",
"automation_logs": [
{
"code": "<string>",
"execution_time": 123,
"message": "<string>",
"timestamp": "<string>",
"traceback": "<string>",
"type": "<string>"
}
],
"automation_timing": {
"anchor": "<string>",
"date": "<string>",
"run_after_days": 123,
"run_hour": 123
},
"billable": true,
"blocked_fields": [
"<string>"
],
"client": "<string>",
"client_task_data": {
"allow_skip_census_upload": "<string>",
"census_upload_instructions": "<string>",
"census_v2_employee_data_policy": "any",
"census_v2_export_field": "<string>",
"census_v2_export_file_type": "<string>",
"census_v2_flow_preset": "company_contacts_ownership_payroll_census",
"destination": "<string>",
"download_file": "<string>",
"file_upload": "<string>",
"follow_up_interval": 123,
"follow_up_to": [
"<string>"
],
"form_file": "<string>",
"form_response": "<string>",
"form_template": "<string>",
"last_follow_up": "<string>",
"notice_file": "<string>",
"payroll_connect_instructions": "<string>",
"payroll_enabled": "<string>",
"payroll_upload_instructions": "<string>",
"py": "<string>",
"url": "<string>",
"w2_upload_instructions": "<string>"
},
"client_task_type": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"description": "<string>",
"due": "<string>",
"fields_to_complete": [
"<string>"
],
"flagged_at": "<string>",
"in_queue": true,
"internal_task_data": {
"efast_data": {
"attachments": [
"<unknown>"
],
"dcg_attachments": [
"<unknown>"
],
"file_names": [
"<string>"
],
"form": "<string>",
"schedule_instances": {},
"schedules": [
"<string>"
]
},
"form_id": "<string>",
"py": "<string>",
"task_type": "<string>",
"url": "<string>"
},
"internal_task_type": "<string>",
"log_completion_to": "<string>",
"log_completion_type": "<string>",
"meeting": {
"_id": "<string>",
"added_tasks": [
"<string>"
],
"attendees": [
{
"address": "<string>",
"name": "<string>",
"user": "<string>"
}
],
"client": "<string>",
"created_at": "<string>",
"date": "<string>",
"deleted_at": "<string>",
"duration": 123,
"format": "<string>",
"location": "<string>",
"notes": "<string>",
"raw_transcript": "<string>",
"tasks": [
"<string>"
],
"team": "<string>",
"transcript": [
{
"speaker": "<string>",
"text": "<string>",
"timestamp": 123
}
]
},
"message": {
"_id": "<string>",
"attachments": [
{
"content_id": "<string>",
"file": "<string>",
"filename": "<string>",
"isInline": true,
"size": 123,
"source_id": "<string>",
"url": "<string>"
}
],
"bcc": "<string>",
"bookmark": true,
"brief": "<string>",
"cc": "<string>",
"checksum": "<string>",
"clients": [
"<string>"
],
"created_at": "<string>",
"date": "<string>",
"deleted_at": "<string>",
"domains": [
"<string>"
],
"draft": true,
"from": "<string>",
"html": "<string>",
"importance": 123,
"in_reply_to": "<string>",
"internal": true,
"message_folders": [
"<string>"
],
"outbox": true,
"private": true,
"read": "<string>",
"references": "<string>",
"reply": "<string>",
"requires_response": true,
"responses": [
"<string>"
],
"safe_for_everyone": true,
"schedule_id": "<string>",
"schedule_send_at": "<string>",
"secure": true,
"send_failed": true,
"send_scheduled": true,
"send_state": "<string>",
"sentiment": 123,
"source": "<string>",
"source_history_id": "<string>",
"source_id": "<string>",
"subject": "<string>",
"summary": [
"<string>"
],
"tags": [
"<string>"
],
"tasks": [
"<string>"
],
"team": "<string>",
"text": "<string>",
"thread": "<string>",
"to": "<string>",
"unique_key": "<string>",
"user": "<string>"
},
"next_at": "<string>",
"notes": "<string>",
"order": 123,
"plan": "<string>",
"priority": 123,
"project": "<string>",
"queue_group": "<string>",
"queued_at": "<string>",
"scheduled_at": "<string>",
"started_at": "<string>",
"suggestion": 123,
"team": "<string>",
"team_wide_access": true,
"template": "<string>",
"work_logs": [
{
"_id": "<string>",
"ended_at": "<string>",
"notes": "<string>",
"started_at": "<string>",
"time_spent": 123,
"user": "<string>"
}
]
}{}{}{}dashboard
Add suggested task from briefing
Create a new task from a suggested task in a daily briefing. The task is created with the suggested description and associated with the client and message from the briefing.
POST
/
dashboard
/
brief
/
{brief}
/
{summary}
/
{task}
Add suggested task from briefing
curl --request POST \
--url https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}', 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.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-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://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-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.post("https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/dashboard/brief/{brief}/{summary}/{task}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"access": [
"<string>"
],
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"assignee": "<string>",
"automation": "<string>",
"automation_config": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"automation_data": "<unknown>",
"automation_logs": [
{
"code": "<string>",
"execution_time": 123,
"message": "<string>",
"timestamp": "<string>",
"traceback": "<string>",
"type": "<string>"
}
],
"automation_timing": {
"anchor": "<string>",
"date": "<string>",
"run_after_days": 123,
"run_hour": 123
},
"billable": true,
"blocked_fields": [
"<string>"
],
"client": "<string>",
"client_task_data": {
"allow_skip_census_upload": "<string>",
"census_upload_instructions": "<string>",
"census_v2_employee_data_policy": "any",
"census_v2_export_field": "<string>",
"census_v2_export_file_type": "<string>",
"census_v2_flow_preset": "company_contacts_ownership_payroll_census",
"destination": "<string>",
"download_file": "<string>",
"file_upload": "<string>",
"follow_up_interval": 123,
"follow_up_to": [
"<string>"
],
"form_file": "<string>",
"form_response": "<string>",
"form_template": "<string>",
"last_follow_up": "<string>",
"notice_file": "<string>",
"payroll_connect_instructions": "<string>",
"payroll_enabled": "<string>",
"payroll_upload_instructions": "<string>",
"py": "<string>",
"url": "<string>",
"w2_upload_instructions": "<string>"
},
"client_task_type": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"description": "<string>",
"due": "<string>",
"fields_to_complete": [
"<string>"
],
"flagged_at": "<string>",
"in_queue": true,
"internal_task_data": {
"efast_data": {
"attachments": [
"<unknown>"
],
"dcg_attachments": [
"<unknown>"
],
"file_names": [
"<string>"
],
"form": "<string>",
"schedule_instances": {},
"schedules": [
"<string>"
]
},
"form_id": "<string>",
"py": "<string>",
"task_type": "<string>",
"url": "<string>"
},
"internal_task_type": "<string>",
"log_completion_to": "<string>",
"log_completion_type": "<string>",
"meeting": {
"_id": "<string>",
"added_tasks": [
"<string>"
],
"attendees": [
{
"address": "<string>",
"name": "<string>",
"user": "<string>"
}
],
"client": "<string>",
"created_at": "<string>",
"date": "<string>",
"deleted_at": "<string>",
"duration": 123,
"format": "<string>",
"location": "<string>",
"notes": "<string>",
"raw_transcript": "<string>",
"tasks": [
"<string>"
],
"team": "<string>",
"transcript": [
{
"speaker": "<string>",
"text": "<string>",
"timestamp": 123
}
]
},
"message": {
"_id": "<string>",
"attachments": [
{
"content_id": "<string>",
"file": "<string>",
"filename": "<string>",
"isInline": true,
"size": 123,
"source_id": "<string>",
"url": "<string>"
}
],
"bcc": "<string>",
"bookmark": true,
"brief": "<string>",
"cc": "<string>",
"checksum": "<string>",
"clients": [
"<string>"
],
"created_at": "<string>",
"date": "<string>",
"deleted_at": "<string>",
"domains": [
"<string>"
],
"draft": true,
"from": "<string>",
"html": "<string>",
"importance": 123,
"in_reply_to": "<string>",
"internal": true,
"message_folders": [
"<string>"
],
"outbox": true,
"private": true,
"read": "<string>",
"references": "<string>",
"reply": "<string>",
"requires_response": true,
"responses": [
"<string>"
],
"safe_for_everyone": true,
"schedule_id": "<string>",
"schedule_send_at": "<string>",
"secure": true,
"send_failed": true,
"send_scheduled": true,
"send_state": "<string>",
"sentiment": 123,
"source": "<string>",
"source_history_id": "<string>",
"source_id": "<string>",
"subject": "<string>",
"summary": [
"<string>"
],
"tags": [
"<string>"
],
"tasks": [
"<string>"
],
"team": "<string>",
"text": "<string>",
"thread": "<string>",
"to": "<string>",
"unique_key": "<string>",
"user": "<string>"
},
"next_at": "<string>",
"notes": "<string>",
"order": 123,
"plan": "<string>",
"priority": 123,
"project": "<string>",
"queue_group": "<string>",
"queued_at": "<string>",
"scheduled_at": "<string>",
"started_at": "<string>",
"suggestion": 123,
"team": "<string>",
"team_wide_access": true,
"template": "<string>",
"work_logs": [
{
"_id": "<string>",
"ended_at": "<string>",
"notes": "<string>",
"started_at": "<string>",
"time_spent": 123,
"user": "<string>"
}
]
}{}{}{}Authorizations
Path Parameters
Response
Created task