Pular para o conteúdo

Ver página

GET
/api/seller/external/v1/page/{id}
curl --request GET \
--get "https://api.spelt.com.br/api/seller/external/v1/page/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF" \
--header "Authorization: Bearer splt_live_SUA_CHAVE" \
--header "Content-Type: application/json" \
--header "Accept: application/json"

Traz o rascunho (draft) e a versão em vigor (current_version), cada um com os blocos no formato Editor.js — é o que permite a quem integra saber se o texto dele já está lá antes de gravar.

id
required
string

The ID of the page.

Media typeapplication/json
object
data
object
id
string
title
string
draft
object
version
integer
blocks
object
blocks
array
current_version
object
version
integer
effective_at
string
blocks
object
blocks
array
Example
{
"data": {
"id": "01J...",
"title": "Termos de Serviço",
"draft": {
"version": 2,
"blocks": {
"blocks": []
}
},
"current_version": {
"version": 1,
"effective_at": "2026-11-03T10:00:00-03:00",
"blocks": {
"blocks": []
}
}
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}