List this week's tasks — work in motion and work done
curl --request GET \
--url https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks \
--header 'X-API-KEY: <api-key>'import requests
url = "https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks', 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://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks",
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: <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://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks"
req, _ := http.NewRequest("GET", 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.get("https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action_type": "create_article",
"status": "in_progress",
"title": "<string>",
"type_label": "<string>",
"tone": "positive",
"document": {
"kind": "brief",
"brief_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"article_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_state": "new",
"published": true,
"published_url": "<string>"
},
"progress_pct": 123,
"cta": {
"kind": "deep_link",
"to": "audiences",
"params": {},
"secondary": {
"kind": "mutation",
"name": "create_article",
"params": {},
"link": "<unknown>",
"label_hint": "<string>",
"secondary": "<unknown>",
"snooze": "<unknown>"
},
"snooze": {
"kind": "mutation",
"name": "create_article",
"params": {},
"link": "<unknown>",
"label_hint": "<string>",
"secondary": "<unknown>",
"snooze": "<unknown>"
}
},
"performed_at": "2023-11-07T05:31:56Z",
"week_start": "2023-12-25"
}
],
"meta": {
"week_start": "2023-12-25",
"counts": {
"in_progress": 123,
"failed": 123,
"completed": 123,
"snoozed": 123,
"dismissed": 123
},
"content_schedule": {
"next_publish_at": "2023-11-07T05:31:56Z",
"next_title": "<string>",
"scheduled_next_30_days": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}
}WeeklyTasks
List this week's tasks — work in motion and work done
The home’s work rail, fully server-composed: /weekly_actions stays the decision deck (pending cards to act on), this endpoint carries everything those decisions set in motion plus everything already settled this week. One task per piece of work — a brief that morphed create → generating → ready_to_review is ONE row, its live phase winning. Each brief-backed task ships a document that answers brief-vs-article authoritatively, so clients never probe briefs per row to decide whether to show Publish. Task ids are weekly_action ids: dismiss and details reuse the weekly_actions member endpoints; retry rides the failed task’s cta.
GET
/
api
/
v2
/
brands
/
{brand_id}
/
weekly_tasks
List this week's tasks — work in motion and work done
curl --request GET \
--url https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks \
--header 'X-API-KEY: <api-key>'import requests
url = "https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks', 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://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks",
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: <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://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks"
req, _ := http.NewRequest("GET", 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.get("https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cognizo.ai/api/v2/brands/{brand_id}/weekly_tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action_type": "create_article",
"status": "in_progress",
"title": "<string>",
"type_label": "<string>",
"tone": "positive",
"document": {
"kind": "brief",
"brief_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"article_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_state": "new",
"published": true,
"published_url": "<string>"
},
"progress_pct": 123,
"cta": {
"kind": "deep_link",
"to": "audiences",
"params": {},
"secondary": {
"kind": "mutation",
"name": "create_article",
"params": {},
"link": "<unknown>",
"label_hint": "<string>",
"secondary": "<unknown>",
"snooze": "<unknown>"
},
"snooze": {
"kind": "mutation",
"name": "create_article",
"params": {},
"link": "<unknown>",
"label_hint": "<string>",
"secondary": "<unknown>",
"snooze": "<unknown>"
}
},
"performed_at": "2023-11-07T05:31:56Z",
"week_start": "2023-12-25"
}
],
"meta": {
"week_start": "2023-12-25",
"counts": {
"in_progress": 123,
"failed": 123,
"completed": 123,
"snoozed": 123,
"dismissed": 123
},
"content_schedule": {
"next_publish_at": "2023-11-07T05:31:56Z",
"next_title": "<string>",
"scheduled_next_30_days": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}
}
