curl --request GET \
--url https://api.athenahq.ai/api/v1/content/items \
--header 'x-api-key: <api-key>'import requests
url = "https://api.athenahq.ai/api/v1/content/items"
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://api.athenahq.ai/api/v1/content/items', 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.athenahq.ai/api/v1/content/items",
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://api.athenahq.ai/api/v1/content/items"
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://api.athenahq.ai/api/v1/content/items")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.athenahq.ai/api/v1/content/items")
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{
"content": [
{
"content_id": "11111111-2222-3333-4444-555555555555",
"title": "How to Apply Foundation on Mature Skin",
"type": "draft",
"stage": "generated",
"url": null,
"normalized_url": null,
"sheet_id": "00000000-0000-4000-8000-000000000001",
"sheet_name": "Drafts - sprint 1",
"topic_name": "Makeup for Mature Skin",
"prompt_ids": [
"aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee"
],
"prompt_count": 1,
"mark_as_done_time": null,
"created_at": "2026-09-01T20:59:53.000Z",
"updated_at": "2026-09-01T21:09:04.000Z"
}
],
"pagination": {
"page_num": 0,
"page_size": 50,
"has_more": false
}
}Listar elementos de contenido
Devuelve todos los elementos del centro de contenidos de un sitio, publicados o no: borradores en curso, planes, ejecuciones de snipe, optimize y slice, elementos programados y fallidos y páginas monitorizadas. Permite pasar de sheet_id a sus filas sin publicar. POST /api/v1/content solo lista filas terminadas con métricas; una hoja de borradores generados parece vacía allí: usa este endpoint para verlos.
Solo devuelve identidad (id, título, tipo, fase, hoja, URL, fechas e ID de consultas objetivo), sin métricas. Lee el almacén principal sin caché, por lo que el elemento aparece cuando POST /api/v1/content/generate devuelve content_id. Lee el texto con GET /api/v1/content/{content_id}.
stage es estado interno del proceso, no indicador de publicación: null significa sin registro (la mayoría de externos e importados) y los elementos manuales tienen generated. Solo considera publicado uno con fase done (o externo o importado) y url; done sin url es un huérfano sin publicar.
El sheet_id de una pestaña de tipo vista (consulta sheet_type en GET /api/v1/content/sheets) lista el repositorio principal compartido sin sus filtros guardados. Excluye ocultos (is_hidden = true). Usa consulta anticipada de page_size + 1: pagination.has_more === true indica otra página, sin total. Un sheet_id o prompt_id desconocido o ajeno devuelve 403.
También disponible como herramienta MCP list_content.
curl --request GET \
--url https://api.athenahq.ai/api/v1/content/items \
--header 'x-api-key: <api-key>'import requests
url = "https://api.athenahq.ai/api/v1/content/items"
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://api.athenahq.ai/api/v1/content/items', 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.athenahq.ai/api/v1/content/items",
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://api.athenahq.ai/api/v1/content/items"
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://api.athenahq.ai/api/v1/content/items")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.athenahq.ai/api/v1/content/items")
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{
"content": [
{
"content_id": "11111111-2222-3333-4444-555555555555",
"title": "How to Apply Foundation on Mature Skin",
"type": "draft",
"stage": "generated",
"url": null,
"normalized_url": null,
"sheet_id": "00000000-0000-4000-8000-000000000001",
"sheet_name": "Drafts - sprint 1",
"topic_name": "Makeup for Mature Skin",
"prompt_ids": [
"aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee"
],
"prompt_count": 1,
"mark_as_done_time": null,
"created_at": "2026-09-01T20:59:53.000Z",
"updated_at": "2026-09-01T21:09:04.000Z"
}
],
"pagination": {
"page_num": 0,
"page_size": 50,
"has_more": false
}
}Parámetros de consulta
Sitio web cuyo centro de contenido se enumerará.
Limita los resultados a una pestaña del centro de contenidos. Obtén los ID con GET /api/v1/content/sheets. Una pestaña de tipo vista se resuelve al repositorio principal compartido. Omítelo para incluir todas.
Limita los resultados a un tipo de contenido. athena_created es un atajo para los cuatro subtipos generados por Athena (draft, snipe, optimize, slice). Omítelo para incluir todos los tipos.
external, imported, athena_created, draft, snipe, optimize, slice, manual Limita los resultados a una fase del proceso. Solo coincide con el registro del proceso, así que nunca selecciona filas sin él (la mayoría de páginas externas e importadas). Omítelo para incluir todas las fases.
scheduled, pending, pending_brief, generated_brief, pending_article, generated, done, failed Limita los resultados a elementos escritos para esta consulta (sus consultas objetivo, los mismos ID que admite POST /api/v1/content/generate). Las consultas eliminadas de forma lógica siguen coincidiendo.
Número de página, empezando en cero.
x >= 0Número de elementos por página (1-100).
1 <= x <= 100Respuesta
Respuesta correcta con la página de elementos de contenido.
¿Esta página le ayudó?