Listar páginas
GET
/api/seller/external/v1/page
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/page?per_page=16&slug=architecto&role=architecto" \ --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/page");
const params = { "per_page": "16", "slug": "architecto", "role": "architecto",};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/page';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'per_page' => '16', 'slug' => 'architecto', 'role' => 'architecto', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/page'params = { 'per_page': '16', 'slug': 'architecto', 'role': 'architecto',}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 /page/{id}.
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).
slug
Filtrar por slug exato.
string
Filtrar por slug exato.
role
Filtrar por papel: privacy_policy | terms_of_service | refund_policy | data_processing_agreement.
string
Filtrar por papel: privacy_policy | terms_of_service | refund_policy | data_processing_agreement.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
current_page
integer
data
Array<object>
object
id
string
title
string
slug
string
status
string
role
string
public_url
string
total
integer
Example
{ "data": { "current_page": 1, "data": [ { "id": "01J...", "title": "Termos de Serviço", "slug": "termos-de-servico", "status": "published", "role": "terms_of_service", "public_url": "https://..." } ], "total": 1 }}