Pular para o conteúdo

Ver publicação

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

Traz os blocos (content, formato Editor.js), o HTML que a página mostra (content_html) e o endereço público.

id
required
string

The ID of the post.

Media typeapplication/json
object
data
object
id
string
title
string
status
string
content
object
blocks
Array<object>
object
id
string
type
string
data
object
text
string
content_html
string
public_url
string
profile_enabled
boolean
Example
{
"data": {
"id": "01J...",
"title": "O que é MRR",
"status": "published",
"content": {
"blocks": [
{
"id": "a1b2c3d4e5",
"type": "paragraph",
"data": {
"text": "..."
}
}
]
},
"content_html": "<p>...</p>",
"public_url": "https://www.spelt.com.br/@exemplo/post/o-que-e-mrr",
"profile_enabled": true
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}