{ "opencollection": "1.0.0", "info": { "name": "HubSpot Analytics Events Access Tokens Site Pages API", "version": "3.0.0" }, "items": [ { "info": { "name": "Site Pages", "type": "folder" }, "items": [ { "info": { "name": "Hubspot List Site Pages", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubapi.com/cms/v3/pages/site-pages", "params": [ { "name": "sort", "value": "example-value", "type": "query", "description": "Field to sort results by." }, { "name": "after", "value": "example-value", "type": "query", "description": "The cursor for pagination to get the next page of results." }, { "name": "limit", "value": "20", "type": "query", "description": "The maximum number of results to return per page." }, { "name": "createdAt", "value": "2025-03-15T14:30:00Z", "type": "query", "description": "Filter pages created at this timestamp." }, { "name": "updatedAt", "value": "2025-03-15T14:30:00Z", "type": "query", "description": "Filter pages updated at this timestamp." }, { "name": "archived", "value": "false", "type": "query", "description": "Whether to return archived pages." } ] }, "docs": "Returns a list of site pages in the portal. You can filter by various properties and paginate through results. Both draft and published pages are accessible through this endpoint." }, { "info": { "name": "Hubspot Create a Site Page", "type": "http" }, "http": { "method": "POST", "url": "https://api.hubapi.com/cms/v3/pages/site-pages", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new site page with the specified content and settings. The new page starts in draft state and must be published to make it publicly accessible." }, { "info": { "name": "Hubspot Get a Site Page", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubapi.com/cms/v3/pages/site-pages/:objectId", "params": [ { "name": "objectId", "value": "500123", "type": "path", "description": "The ID of the site page to retrieve." }, { "name": "archived", "value": "false", "type": "query", "description": "Whether to return archived pages." } ] }, "docs": "Returns the details of a specific site page by its ID, including content, SEO settings, publish state, and metadata." }, { "info": { "name": "Hubspot Update a Site Page", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.hubapi.com/cms/v3/pages/site-pages/:objectId", "params": [ { "name": "objectId", "value": "500123", "type": "path", "description": "The ID of the site page to update." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Performs a partial update of a site page. Only the properties included in the request body will be updated. Changes are applied to the draft version and must be published." }, { "info": { "name": "Hubspot Delete a Site Page", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.hubapi.com/cms/v3/pages/site-pages/:objectId", "params": [ { "name": "objectId", "value": "500123", "type": "path", "description": "The ID of the site page to delete." } ] }, "docs": "Archives (soft deletes) a site page by its ID. Archived pages are no longer publicly accessible but can be restored using the HubSpot UI." }, { "info": { "name": "Hubspot Publish a Site Page", "type": "http" }, "http": { "method": "POST", "url": "https://api.hubapi.com/cms/v3/pages/site-pages/:objectId/draft/push-live", "params": [ { "name": "objectId", "value": "500123", "type": "path", "description": "The ID of the site page to publish." } ] }, "docs": "Publishes the draft version of a site page, making all pending content changes live and publicly accessible. After publishing, the page becomes visible at its URL." } ] } ], "bundled": true }