openapi: 3.1.0 info: title: HubSpot Analytics Events Access Tokens Landing Pages API description: "The HubSpot Analytics Events API allows you to retrieve event completion data \nfrom your HubSpot account. Use this API to query event instances associated with \nCRM objects, filter by event types, and analyze user behavior and engagement patterns.\n\n## Key Features\n- Retrieve event instances for CRM objects\n- Filter events by type, date range, and object\n- Paginate through large result sets\n- Query available event types\n" version: 3.0.0 contact: name: HubSpot Developer Support url: https://developers.hubspot.com license: name: MIT url: https://opensource.org/licenses/MIT servers: - url: https://api.hubapi.com description: HubSpot Production API Server tags: - name: Landing Pages description: Operations for managing landing pages paths: /cms/v3/pages/landing-pages: get: operationId: listLandingPages summary: Hubspot List Landing Pages description: Returns a list of landing pages in the portal. You can filter by various properties and paginate through results. Both draft and published landing pages are accessible. tags: - Landing Pages parameters: - name: sort in: query description: Field to sort results by. schema: type: string example: example-value - name: after in: query description: The cursor for pagination to get the next page of results. schema: type: string example: example-value - name: limit in: query description: The maximum number of results to return per page. schema: type: integer default: 20 example: 20 - name: createdAt in: query description: Filter landing pages created at this timestamp. schema: type: string format: date-time example: '2025-03-15T14:30:00Z' - name: updatedAt in: query description: Filter landing pages updated at this timestamp. schema: type: string format: date-time example: '2025-03-15T14:30:00Z' - name: archived in: query description: Whether to return archived landing pages. schema: type: boolean default: false example: false responses: '200': description: Successful response with a list of landing pages. content: application/json: schema: $ref: '#/components/schemas/CollectionResponsePage' examples: Listlandingpages200Example: summary: Default listLandingPages 200 response x-microcks-default: true value: results: - id: '500123' name: Example Record htmlTitle: Example Record slug: example-value state: DRAFT currentState: active contentTypeCategory: 100 publishDate: '2025-03-15T14:30:00Z' metaDescription: This is an example description. url: https://app.hubspot.com/contacts/12345 domain: example.hubspot.com language: en templatePath: /content/templates/example createdAt: '2025-03-15T14:30:00Z' updatedAt: '2025-03-15T14:30:00Z' archived: true paging: next: {} '401': $ref: '#/components/responses/Unauthorized' x-microcks-operation: delay: 0 dispatcher: FALLBACK post: operationId: createLandingPage summary: Hubspot Create a Landing Page description: Creates a new landing page with the specified content and settings. The new landing page starts in draft state and must be published to make it publicly accessible. tags: - Landing Pages requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PageCreateRequest' examples: CreatelandingpageRequestExample: summary: Default createLandingPage request x-microcks-default: true value: name: Example Record htmlTitle: Example Record slug: example-value metaDescription: This is an example description. domain: example.hubspot.com language: en templatePath: /content/templates/example layoutSections: key: value responses: '201': description: Landing page created successfully. content: application/json: schema: $ref: '#/components/schemas/Page' examples: Createlandingpage201Example: summary: Default createLandingPage 201 response x-microcks-default: true value: id: '500123' name: Example Record htmlTitle: Example Record slug: example-value state: DRAFT currentState: active contentTypeCategory: 100 publishDate: '2025-03-15T14:30:00Z' metaDescription: This is an example description. url: https://app.hubspot.com/contacts/12345 domain: example.hubspot.com language: en templatePath: /content/templates/example createdAt: '2025-03-15T14:30:00Z' updatedAt: '2025-03-15T14:30:00Z' archived: true '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' x-microcks-operation: delay: 0 dispatcher: FALLBACK /cms/v3/pages/landing-pages/{objectId}: get: operationId: getLandingPage summary: Hubspot Get a Landing Page description: Returns the details of a specific landing page by its ID, including content, form connections, SEO settings, and publish state. tags: - Landing Pages parameters: - name: objectId in: path required: true description: The ID of the landing page to retrieve. schema: type: string example: '500123' - name: archived in: query description: Whether to return archived landing pages. schema: type: boolean default: false example: false responses: '200': description: Successful response with the landing page details. content: application/json: schema: $ref: '#/components/schemas/Page' examples: Getlandingpage200Example: summary: Default getLandingPage 200 response x-microcks-default: true value: id: '500123' name: Example Record htmlTitle: Example Record slug: example-value state: DRAFT currentState: active contentTypeCategory: 100 publishDate: '2025-03-15T14:30:00Z' metaDescription: This is an example description. url: https://app.hubspot.com/contacts/12345 domain: example.hubspot.com language: en templatePath: /content/templates/example createdAt: '2025-03-15T14:30:00Z' updatedAt: '2025-03-15T14:30:00Z' archived: true '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK delete: operationId: deleteLandingPage summary: Hubspot Delete a Landing Page description: Archives (soft deletes) a landing page by its ID. Archived landing pages are no longer publicly accessible but can be restored using the HubSpot UI. tags: - Landing Pages parameters: - name: objectId in: path required: true description: The ID of the landing page to delete. schema: type: string example: '500123' responses: '204': description: Landing page deleted successfully. '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: responses: NotFound: description: The requested resource was not found. content: application/json: schema: $ref: '#/components/schemas/Error' BadRequest: description: The request is invalid or missing required parameters. content: application/json: schema: $ref: '#/components/schemas/Error' Unauthorized: description: Authentication credentials are missing or invalid. content: application/json: schema: $ref: '#/components/schemas/Error' schemas: Error: type: object description: An error response. properties: status: type: string example: active message: type: string example: This is an example description. correlationId: type: string example: '500123' category: type: string example: standard Paging: type: object description: Pagination information. properties: next: type: object properties: after: type: string example: after: example-value Page: type: object description: A HubSpot CMS page (site page or landing page). properties: id: type: string description: The unique identifier for the page. example: '500123' name: type: string description: The internal name of the page. example: Example Record htmlTitle: type: string description: The HTML title tag content for the page. example: Example Record slug: type: string description: The URL slug for the page. example: example-value state: type: string description: The current publish state of the page. enum: - DRAFT - PUBLISHED - ARCHIVED example: DRAFT currentState: type: string description: The current display state of the page. example: active contentTypeCategory: type: integer description: The content type category code. example: 100 publishDate: type: string format: date-time description: The date and time the page was or will be published. example: '2025-03-15T14:30:00Z' metaDescription: type: string description: The meta description for SEO. example: This is an example description. url: type: string description: The full URL of the published page. example: https://app.hubspot.com/contacts/12345 domain: type: string description: The domain the page is hosted on. example: example.hubspot.com language: type: string description: The language code for the page content. example: en templatePath: type: string description: The path to the template used by the page. example: /content/templates/example createdAt: type: string format: date-time description: The date and time the page was created. example: '2025-03-15T14:30:00Z' updatedAt: type: string format: date-time description: The date and time the page was last updated. example: '2025-03-15T14:30:00Z' archived: type: boolean description: Whether the page has been archived. example: true PageCreateRequest: type: object description: Request body for creating a CMS page. required: - name - slug properties: name: type: string description: The internal name of the page. example: Example Record htmlTitle: type: string description: The HTML title tag content. example: Example Record slug: type: string description: The URL slug for the page. example: example-value metaDescription: type: string description: The meta description for SEO. example: This is an example description. domain: type: string description: The domain to host the page on. example: example.hubspot.com language: type: string description: The language code for the page content. example: en templatePath: type: string description: The path to the template to use for the page. example: /content/templates/example layoutSections: type: object description: The layout sections and widget data for the page content. additionalProperties: true example: key: value CollectionResponsePage: type: object description: A paginated list of CMS pages. properties: results: type: array items: $ref: '#/components/schemas/Page' example: - id: '500123' name: Example Record htmlTitle: Example Record slug: example-value state: DRAFT currentState: active contentTypeCategory: 100 publishDate: '2025-03-15T14:30:00Z' metaDescription: This is an example description. url: https://app.hubspot.com/contacts/12345 domain: example.hubspot.com language: en templatePath: /content/templates/example createdAt: '2025-03-15T14:30:00Z' updatedAt: '2025-03-15T14:30:00Z' archived: true paging: $ref: '#/components/schemas/Paging' securitySchemes: OAuth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://app.hubspot.com/oauth/authorize tokenUrl: https://api.hubapi.com/oauth/v1/token scopes: analytics.read: Read analytics data