POST
/
cms
/
v3
/
blogs
/
posts
/
batch
/
read
Recuperar um lote de Posts do blog
curl --request POST \
  --url https://api.hubapi.com/cms/v3/blogs/posts/batch/read \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "inputs": [
    "<string>"
  ]
}'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "requestedAt": "2023-11-07T05:31:56Z",
  "startedAt": "2023-11-07T05:31:56Z",
  "links": {},
  "results": [
    {
      "publishDate": "2023-11-07T05:31:56Z",
      "language": "af",
      "enableLayoutStylesheets": true,
      "metaDescription": "<string>",
      "attachedStylesheets": [
        {}
      ],
      "password": "<string>",
      "htmlTitle": "<string>",
      "publishImmediately": true,
      "translations": {},
      "id": "<string>",
      "state": "<string>",
      "slug": "<string>",
      "createdById": "<string>",
      "rssBody": "<string>",
      "currentlyPublished": true,
      "archivedInDashboard": true,
      "created": "2023-11-07T05:31:56Z",
      "contentTypeCategory": "0",
      "mabExperimentId": "<string>",
      "updatedById": "<string>",
      "translatedFromId": "<string>",
      "folderId": "<string>",
      "widgetContainers": {},
      "pageExpiryRedirectId": 123,
      "dynamicPageDataSourceType": 123,
      "featuredImage": "<string>",
      "authorName": "<string>",
      "domain": "<string>",
      "name": "<string>",
      "dynamicPageHubDbTableId": "<string>",
      "campaign": "<string>",
      "dynamicPageDataSourceId": "<string>",
      "enableDomainStylesheets": true,
      "includeDefaultCustomCss": true,
      "layoutSections": {},
      "updated": "2023-11-07T05:31:56Z",
      "footerHtml": "<string>",
      "tagIds": [
        123
      ],
      "widgets": {},
      "postSummary": "<string>",
      "headHtml": "<string>",
      "pageExpiryRedirectUrl": "<string>",
      "abStatus": "master",
      "useFeaturedImage": true,
      "abTestId": "<string>",
      "featuredImageAltText": "<string>",
      "blogAuthorId": "<string>",
      "contentGroupId": "<string>",
      "rssSummary": "<string>",
      "pageExpiryEnabled": true,
      "url": "<string>",
      "enableGoogleAmpOutputOverride": true,
      "publicAccessRules": [
        {}
      ],
      "archivedAt": 123,
      "postBody": "<string>",
      "themeSettingsValues": {},
      "pageExpiryDate": 123,
      "publicAccessRulesEnabled": true,
      "currentState": "AUTOMATED",
      "categoryId": 123,
      "linkRelCanonicalUrl": "<string>"
    }
  ],
  "status": "PENDING"
}
Produtos suportados
Requer um dos seguintes produtos ou superior.
Marketing HubMarketing HubProfessional
Sales HubSales HubGrátis
Service HubService HubGrátis
Content HubContent HubStarter

Escopos Necessários

Esta API requer um dos seguintes escopos:
  • content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

archived
boolean

Especifica se deve retornar posts de blog excluídos. O padrão é "false".

Body

application/json

The JSON array of Blog Post ids.

Wrapper for providing an array of strings as inputs.

inputs
string[]
required

As strings para inserir.

Response

successful operation

Response object for batch operations on blog posts.

completedAt
string<date-time>
required

A hora em que a operação em lote foi concluída.

startedAt
string<date-time>
required

A hora em que a operação em lote foi iniciada.

results
object[]
required

Os resultados da operação em lote.

status
enum<string>
required

O status da operação em lote.

Available options:
PENDING,
PROCESSING,
CANCELED,
COMPLETE
requestedAt
string<date-time>

A hora em que a operação em lote foi solicitada.

Os links associados à operação em lote.