{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources. Success responses include a `source` block to cite. Apizie Finance endpoints (SEC EDGAR, FRED, ECB, U.S. Treasury, GLEIF, World Bank, official:*) need a Finance plan."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-marketing-emails-v3":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_marketing_emails_v3","summary":"List Emails","description":"GET /marketing/emails/2026-09","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"after","in":"query","required":false,"description":"The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged…","schema":{"type":"string","description":"The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged…"}},{"name":"archived","in":"query","required":false,"description":"Whether to return only results that have been archived.","schema":{"type":"boolean","description":"Whether to return only results that have been archived."}},{"name":"campaign","in":"query","required":false,"description":"Filter emails by campaign name.","schema":{"type":"string","description":"Filter emails by campaign name."}},{"name":"createdAfter","in":"query","required":false,"description":"Filter emails created after a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails created after a specific date. Format should be date-time."}},{"name":"createdAt","in":"query","required":false,"description":"Filter emails by the exact creation date. Format should be date-time.","schema":{"type":"string","description":"Filter emails by the exact creation date. Format should be date-time."}},{"name":"createdBefore","in":"query","required":false,"description":"Filter emails created before a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails created before a specific date. Format should be date-time."}},{"name":"includedProperties","in":"query","required":false,"description":"Specify additional properties to include in the response. Accepts an array of strings.","schema":{"type":"array","description":"Specify additional properties to include in the response. Accepts an array of strings."}},{"name":"includeStats","in":"query","required":false,"description":"Include statistics in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Include statistics in the response. Accepts a boolean value."}},{"name":"isPublished","in":"query","required":false,"description":"Filter emails by their published status. Accepts a boolean value.","schema":{"type":"boolean","description":"Filter emails by their published status. Accepts a boolean value."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of results to display per page.","schema":{"type":"integer","description":"The maximum number of results to display per page."}},{"name":"marketingCampaignNames","in":"query","required":false,"description":"Include marketing campaign names in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Include marketing campaign names in the response. Accepts a boolean value."}},{"name":"publishedAfter","in":"query","required":false,"description":"Filter emails published after a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails published after a specific date. Format should be date-time."}},{"name":"publishedAt","in":"query","required":false,"description":"Filter emails by the exact publication date. Format should be date-time.","schema":{"type":"string","description":"Filter emails by the exact publication date. Format should be date-time."}},{"name":"publishedBefore","in":"query","required":false,"description":"Filter emails published before a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails published before a specific date. Format should be date-time."}},{"name":"sort","in":"query","required":false,"description":"Specify the sorting order for the results. Accepts an array of strings.","schema":{"type":"array","description":"Specify the sorting order for the results. Accepts an array of strings."}},{"name":"type","in":"query","required":false,"description":"Filter emails by type. Accepts specific email types such as AB_EMAIL, BATCH_EMAIL, etc.","schema":{"type":"string","enum":["AB_EMAIL","AUTOMATED_AB_EMAIL","AUTOMATED_EMAIL","BATCH_EMAIL","BLOG_EMAIL","BLOG_EMAIL_CHILD","FEEDBACK_CES_EMAIL","FEEDBACK_CUSTOM_EMAIL","FEEDBACK_CUSTOM_SURVEY_EMAIL","FEEDBACK_NPS_EMAIL","FOLLOWUP_EMAIL","LEADFLOW_EMAIL","LOCALTIME_EMAIL","MANAGE_PREFERENCES_EMAIL","MARKETING_SINGLE_SEND_API","MEMBERSHIP_EMAIL_VERIFICATION_EMAIL","MEMBERSHIP_FOLLOW_UP_EMAIL","MEMBERSHIP_OTP_LOGIN_EMAIL","MEMBERSHIP_PASSWORD_RESET_EMAIL","MEMBERSHIP_PASSWORD_SAVED_EMAIL","MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL","MEMBERSHIP_REGISTRATION_EMAIL","MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL","MEMBERSHIP_VERIFICATION_EMAIL","OPTIN_EMAIL","OPTIN_FOLLOWUP_EMAIL","RESUBSCRIBE_EMAIL","RSS_EMAIL","RSS_EMAIL_CHILD","SINGLE_SEND_API","SMTP_TOKEN","TICKET_EMAIL"],"description":"Filter emails by type. Accepts specific email types such as AB_EMAIL, BATCH_EMAIL, etc."}},{"name":"updatedAfter","in":"query","required":false,"description":"Filter emails updated after a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails updated after a specific date. Format should be date-time."}},{"name":"updatedAt","in":"query","required":false,"description":"Filter emails by the exact update date. Format should be date-time.","schema":{"type":"string","description":"Filter emails by the exact update date. Format should be date-time."}},{"name":"updatedBefore","in":"query","required":false,"description":"Filter emails updated before a specific date. Format should be date-time.","schema":{"type":"string","description":"Filter emails updated before a specific date. Format should be date-time."}},{"name":"variantStats","in":"query","required":false,"description":"Include variant statistics in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Include variant statistics in the response. Accepts a boolean value."}},{"name":"workflowNames","in":"query","required":false,"description":"Include workflow names in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Include workflow names in the response. Accepts a boolean value."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-marketing-emails-v3":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_marketing_emails_v3","summary":"Create Email","description":"POST /marketing/emails/2026-09","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-ab-test-create-variation-creat":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_ab_test_create_variation_creat","summary":"Create an A/B test variation of a marketing email","description":"POST /marketing/emails/2026-09/ab-test/create-variation","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-clone-clone":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_clone_clone","summary":"Clone a marketing email","description":"POST /marketing/emails/2026-09/clone","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-statistics-histogram-get-histog":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_statistics_histogram_get_histog","summary":"Get aggregated statistic intervals","description":"GET /marketing/emails/2026-09/statistics/histogram","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailIds","in":"query","required":false,"description":"A list of email IDs to filter the statistics. This is a form-style parameter that can include multiple IDs.","schema":{"type":"array","description":"A list of email IDs to filter the statistics. This is a form-style parameter that can include multiple IDs."}},{"name":"endTimestamp","in":"query","required":false,"description":"The end timestamp for the statistics data range. Must be in date-time format.","schema":{"type":"string","description":"The end timestamp for the statistics data range. Must be in date-time format."}},{"name":"interval","in":"query","required":false,"description":"The time interval for the histogram. Valid values are YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, QUARTER_HOUR, MINUTE, and SECOND.","schema":{"type":"string","enum":["DAY","HOUR","MINUTE","MONTH","QUARTER","QUARTER_HOUR","SECOND","WEEK","YEAR"],"description":"The time interval for the histogram. Valid values are YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, QUARTER_HOUR, MINUTE, and SECOND."}},{"name":"startTimestamp","in":"query","required":false,"description":"The start timestamp for the statistics data range. Must be in date-time format.","schema":{"type":"string","description":"The start timestamp for the statistics data range. Must be in date-time format."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-statistics-list-get-emails-list":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_statistics_list_get_emails_list","summary":"Get aggregated statistics","description":"GET /marketing/emails/2026-09/statistics/list","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailIds","in":"query","required":false,"description":"A list of email IDs to filter the statistics. This should be a comma-separated list of integer IDs.","schema":{"type":"array","description":"A list of email IDs to filter the statistics. This should be a comma-separated list of integer IDs."}},{"name":"endTimestamp","in":"query","required":false,"description":"The end of the time range for the statistics, in ISO 8601 date-time format.","schema":{"type":"string","description":"The end of the time range for the statistics, in ISO 8601 date-time format."}},{"name":"property","in":"query","required":false,"description":"The specific property of the email statistics to retrieve.","schema":{"type":"string","description":"The specific property of the email statistics to retrieve."}},{"name":"startTimestamp","in":"query","required":false,"description":"The start of the time range for the statistics, in ISO 8601 date-time format.","schema":{"type":"string","description":"The start of the time range for the statistics, in ISO 8601 date-time format."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-email-id-get-by-id":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_email_id_get_by_id","summary":"Get the details of a specified marketing email","description":"GET /marketing/emails/2026-09/{emailId}","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailId","in":"query","required":true,"description":"The unique identifier of the email to retrieve.","schema":{"type":"string","description":"The unique identifier of the email to retrieve."}},{"name":"archived","in":"query","required":false,"description":"Whether to return only results that have been archived.","schema":{"type":"boolean","description":"Whether to return only results that have been archived."}},{"name":"includedProperties","in":"query","required":false,"description":"A list of specific properties to include in the response.","schema":{"type":"array","description":"A list of specific properties to include in the response."}},{"name":"includeStats","in":"query","required":false,"description":"Whether to include statistics in the response.","schema":{"type":"boolean","description":"Whether to include statistics in the response."}},{"name":"marketingCampaignNames","in":"query","required":false,"description":"Whether to include marketing campaign names in the response.","schema":{"type":"boolean","description":"Whether to include marketing campaign names in the response."}},{"name":"variantStats","in":"query","required":false,"description":"Whether to include variant statistics in the response.","schema":{"type":"boolean","description":"Whether to include variant statistics in the response."}},{"name":"workflowNames","in":"query","required":false,"description":"Whether to include workflow names in the response.","schema":{"type":"boolean","description":"Whether to include workflow names in the response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/patch-marketing-emails-2026-09-email-id-update":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_patch_marketing_emails_2026_09_email_id_update","summary":"Update a marketing email","description":"PATCH /marketing/emails/2026-09/{emailId}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId","body"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email to update."},"archived":{"type":"boolean","description":"Whether to return only results that have been archived."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/delete-marketing-emails-2026-09-email-id-archive":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_delete_marketing_emails_2026_09_email_id_archive","summary":"Delete a marketing email","description":"DELETE /marketing/emails/2026-09/{emailId}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email to delete."},"archived":{"type":"boolean","description":"Whether to return only results that have been archived."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-email-id-ab-test-get-variation":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_email_id_ab_test_get_variation","summary":"Get the variation of a an A/B marketing email","description":"GET /marketing/emails/2026-09/{emailId}/ab-test/get-variation","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailId","in":"query","required":true,"description":"The unique identifier of the email for which the A/B test variation is being retrieved.","schema":{"type":"string","description":"The unique identifier of the email for which the A/B test variation is being retrieved."}},{"name":"archived","in":"query","required":false,"description":"Whether to return only results that have been archived.","schema":{"type":"boolean","description":"Whether to return only results that have been archived."}},{"name":"includedProperties","in":"query","required":false,"description":"An array of property names to include in the response.","schema":{"type":"array","description":"An array of property names to include in the response."}},{"name":"includeStats","in":"query","required":false,"description":"Whether to include statistics in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Whether to include statistics in the response. Accepts a boolean value."}},{"name":"marketingCampaignNames","in":"query","required":false,"description":"Whether to include marketing campaign names in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Whether to include marketing campaign names in the response. Accepts a boolean value."}},{"name":"variantStats","in":"query","required":false,"description":"Whether to include variant-specific statistics. Accepts a boolean value.","schema":{"type":"boolean","description":"Whether to include variant-specific statistics. Accepts a boolean value."}},{"name":"workflowNames","in":"query","required":false,"description":"Whether to include workflow names in the response. Accepts a boolean value.","schema":{"type":"boolean","description":"Whether to include workflow names in the response. Accepts a boolean value."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-email-id-draft-get-draft":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_email_id_draft_get_draft","summary":"Get draft version of a marketing email","description":"GET /marketing/emails/2026-09/{emailId}/draft","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailId","in":"query","required":true,"description":"The unique identifier of the email draft to retrieve.","schema":{"type":"string","description":"The unique identifier of the email draft to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/patch-marketing-emails-2026-09-email-id-draft-upsert-draft":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_patch_marketing_emails_2026_09_email_id_draft_upsert_draft","summary":"Create or update draft version","description":"PATCH /marketing/emails/2026-09/{emailId}/draft","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId","body"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email draft to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-email-id-draft-reset-reset-dra":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_email_id_draft_reset_reset_dra","summary":"Reset the draft version","description":"POST /marketing/emails/2026-09/{emailId}/draft/reset","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email draft to reset."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-email-id-publish-publish-or-se":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_email_id_publish_publish_or_se","summary":"Publish or send a marketing email","description":"POST /marketing/emails/2026-09/{emailId}/publish","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email to be published."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-email-id-revisions-get-revision":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_email_id_revisions_get_revision","summary":"Get revisions of a marketing email","description":"GET /marketing/emails/2026-09/{emailId}/revisions","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailId","in":"query","required":true,"description":"The unique identifier of the email for which to retrieve revisions.","schema":{"type":"string","description":"The unique identifier of the email for which to retrieve revisions."}},{"name":"after","in":"query","required":false,"description":"The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged…","schema":{"type":"string","description":"The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged…"}},{"name":"before","in":"query","required":false,"description":"A cursor token for pagination to retrieve results before a specific point.","schema":{"type":"string","description":"A cursor token for pagination to retrieve results before a specific point."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of results to display per page.","schema":{"type":"integer","description":"The maximum number of results to display per page."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/get-marketing-emails-2026-09-email-id-revisions-revision-id":{"get":{"operationId":"business_hubspot_marketing_marketing_emails_get_marketing_emails_2026_09_email_id_revisions_revision_id","summary":"Get a revision of a marketing email","description":"GET /marketing/emails/2026-09/{emailId}/revisions/{revisionId}","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"emailId","in":"query","required":true,"description":"The unique identifier of the email for which the revision is being retrieved.","schema":{"type":"string","description":"The unique identifier of the email for which the revision is being retrieved."}},{"name":"revisionId","in":"query","required":true,"description":"The unique identifier of the specific revision of the email to retrieve.","schema":{"type":"string","description":"The unique identifier of the specific revision of the email to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-email-id-revisions-revision-id":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_email_id_revisions_revision_id","summary":"Restore a revision of a marketing email","description":"POST /marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId","revisionId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email whose revision is to be restored."},"revisionId":{"type":"string","description":"The unique identifier of the revision to restore."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-email-id-revisions-revision-id-2":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_email_id_revisions_revision_id_2","summary":"Restore a revision of a marketing email to DRAFT state","description":"POST /marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore-to-draft","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId","revisionId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email to restore."},"revisionId":{"type":"integer","description":"The unique identifier of the revision to restore to draft."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:hubspot-marketing-marketing-emails/post-marketing-emails-2026-09-email-id-unpublish-unpublish-o":{"post":{"operationId":"business_hubspot_marketing_marketing_emails_post_marketing_emails_2026_09_email_id_unpublish_unpublish_o","summary":"Unpublish or cancel a marketing email","description":"POST /marketing/emails/2026-09/{emailId}/unpublish","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailId"],"properties":{"emailId":{"type":"string","description":"The unique identifier of the email to unpublish."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"official:company"},"data":{},"source":{"type":"object","description":"Where the data came from. Cite it.","properties":{"official":{"type":"boolean"},"provider":{"type":"string","example":"SEC EDGAR"},"publisher":{"type":"string","example":"U.S. Securities and Exchange Commission"},"url":{"type":"string","format":"uri","description":"A page a person can open to check the value"},"apiUrl":{"type":"string","format":"uri","description":"The official API URL that was called (credentials removed)"},"retrievedAt":{"type":"string","format":"date-time"},"license":{"type":"string"},"licenseUrl":{"type":"string","format":"uri"},"attribution":{"type":"string"},"notice":{"type":"string"}}},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}