Listar publicações
GET
/api/seller/external/v1/hub/post
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/hub/post?per_page=20&status=published&external_ref=blog%3Ao-que-e-mrr" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/hub/post");
const params = { "per_page": "20", "status": "published", "external_ref": "blog:o-que-e-mrr",};Object.keys(params) .forEach(key => url.searchParams.append(key, params[key]));
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/hub/post';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'per_page' => '20', 'status' => 'published', 'external_ref' => 'blog:o-que-e-mrr', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/hub/post'params = { 'per_page': '20', 'status': 'published', 'external_ref': 'blog:o-que-e-mrr',}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers, params=params)response.json()Sem o conteúdo: ele vem no GET /hub/post/{id}. Da mais recente para a mais antiga.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”per_page
Itens por página (máx: 100, padrão: 20).
integer
Itens por página (máx: 100, padrão: 20).
status
Filtrar por status: draft, published ou removed.
string
Filtrar por status: draft, published ou removed.
external_ref
Filtrar pelo id da publicação no seu sistema.
string
Filtrar pelo id da publicação no seu sistema.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
current_page
integer
data
Array<object>
object
id
string
title
string
slug
string
type
string
type_label
string
excerpt
string
cover_image_url
string
canonical_url
string
external_ref
string
status
string
status_label
string
published_at
string
public_url
string
total
integer
Example
{ "data": { "current_page": 1, "data": [ { "id": "01J...", "title": "O que é MRR", "slug": "o-que-e-mrr", "type": "article", "type_label": "Artigo", "excerpt": "...", "cover_image_url": "https://cdn.../hub/....png", "canonical_url": "https://blog.exemplo.com.br/o-que-e-mrr", "external_ref": "blog:o-que-e-mrr", "status": "published", "status_label": "Publicada", "published_at": "2026-11-15T13:00:00.000000Z", "public_url": "https://www.spelt.com.br/@exemplo/post/o-que-e-mrr" } ], "total": 1 }}