{"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-crm-public-app-feature-flags-v3/get-feature-flags-2026-09-app-id-flags-all-feature-flags-v3":{"get":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_get_feature_flags_2026_09_app_id_flags_all_feature_flags_v3","summary":"List Flags","description":"GET /feature-flags/2026-09/{appId}/flags/all","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"appId","in":"query","required":true,"description":"The unique identifier of the application for which to retrieve all feature flags.","schema":{"type":"integer","description":"The unique identifier of the application for which to retrieve all feature flags."}}],"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-crm-public-app-feature-flags-v3/get-feature-flags-2026-09-app-id-flags-flag-name":{"get":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_get_feature_flags_2026_09_app_id_flags_flag_name","summary":"Retrieve an app's feature flags","description":"GET /feature-flags/2026-09/{appId}/flags/{flagName}","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"appId","in":"query","required":true,"description":"The unique identifier of the app associated with the feature flag.","schema":{"type":"integer","description":"The unique identifier of the app associated with the feature flag."}},{"name":"flagName","in":"query","required":true,"description":"The name of the feature flag to retrieve.","schema":{"type":"string","description":"The name of the feature flag 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-crm-public-app-feature-flags-v3/put-feature-flags-2026-09-app-id-flags-flag-name":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_put_feature_flags_2026_09_app_id_flags_flag_name","summary":"Set an app's feature flag","description":"PUT /feature-flags/2026-09/{appId}/flags/{flagName}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName","body"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the application associated with the feature flag."},"flagName":{"type":"string","description":"The name of the feature flag 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-crm-public-app-feature-flags-v3/delete-feature-flags-2026-09-app-id-flags-flag-name":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_delete_feature_flags_2026_09_app_id_flags_flag_name","summary":"Delete an app's feature flag","description":"DELETE /feature-flags/2026-09/{appId}/flags/{flagName}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the application from which the feature flag will be deleted."},"flagName":{"type":"string","description":"The name of the feature flag to be deleted."}}}}}},"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-crm-public-app-feature-flags-v3/get-feature-flags-2026-09-app-id-flags-flag-name-portals":{"get":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_get_feature_flags_2026_09_app_id_flags_flag_name_portals","summary":"Retrieve accounts with a set flag state","description":"GET /feature-flags/2026-09/{appId}/flags/{flagName}/portals","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"appId","in":"query","required":true,"description":"The unique identifier of the app associated with the feature flag.","schema":{"type":"integer","description":"The unique identifier of the app associated with the feature flag."}},{"name":"flagName","in":"query","required":true,"description":"The name of the feature flag to retrieve portal information for.","schema":{"type":"string","description":"The name of the feature flag to retrieve portal information for."}},{"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":"startPortalId","in":"query","required":false,"description":"The ID of the portal to start the list from. Useful for pagination.","schema":{"type":"integer","description":"The ID of the portal to start the list from. Useful for pagination."}}],"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-crm-public-app-feature-flags-v3/post-feature-flags-2026-09-app-id-flags-flag-name-portals-ba":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_post_feature_flags_2026_09_app_id_flags_flag_name_portals_ba","summary":"Batch delete account flag state","description":"POST /feature-flags/2026-09/{appId}/flags/{flagName}/portals/batch/delete","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName","body"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the application associated with the feature flag."},"flagName":{"type":"string","description":"The name of the feature flag to be deleted."},"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-crm-public-app-feature-flags-v3/post-feature-flags-2026-09-app-id-flags-flag-name-portals-ba-2":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_post_feature_flags_2026_09_app_id_flags_flag_name_portals_ba_2","summary":"Batch set account flag state","description":"POST /feature-flags/2026-09/{appId}/flags/{flagName}/portals/batch/upsert","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName","body"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the app for which the feature flags are being managed."},"flagName":{"type":"string","description":"The name of the feature flag to upsert."},"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-crm-public-app-feature-flags-v3/get-feature-flags-2026-09-app-id-flags-flag-name-portals-por":{"get":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_get_feature_flags_2026_09_app_id_flags_flag_name_portals_por","summary":"Retrieve account flag state","description":"GET /feature-flags/2026-09/{appId}/flags/{flagName}/portals/{portalId}","tags":["business"],"x-apizie-access":"read","parameters":[{"name":"appId","in":"query","required":true,"description":"The unique identifier of the app containing the feature flag.","schema":{"type":"integer","description":"The unique identifier of the app containing the feature flag."}},{"name":"flagName","in":"query","required":true,"description":"The name of the feature flag to retrieve.","schema":{"type":"string","description":"The name of the feature flag to retrieve."}},{"name":"portalId","in":"query","required":true,"description":"The unique identifier of the portal for which the flag state is being retrieved.","schema":{"type":"integer","description":"The unique identifier of the portal for which the flag state is being retrieved."}}],"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-crm-public-app-feature-flags-v3/put-feature-flags-2026-09-app-id-flags-flag-name-portals-por":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_put_feature_flags_2026_09_app_id_flags_flag_name_portals_por","summary":"Set an account flag state","description":"PUT /feature-flags/2026-09/{appId}/flags/{flagName}/portals/{portalId}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName","portalId","body"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the application associated with the feature flag."},"flagName":{"type":"string","description":"The name of the feature flag to update."},"portalId":{"type":"integer","description":"The unique identifier of the portal where the feature flag state is being updated."},"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-crm-public-app-feature-flags-v3/delete-feature-flags-2026-09-app-id-flags-flag-name-portals":{"post":{"operationId":"business_hubspot_crm_public_app_feature_flags_v3_delete_feature_flags_2026_09_app_id_flags_flag_name_portals","summary":"Delete an account flag state","description":"DELETE /feature-flags/2026-09/{appId}/flags/{flagName}/portals/{portalId}","tags":["business"],"x-apizie-access":"write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["appId","flagName","portalId"],"properties":{"appId":{"type":"integer","description":"The unique identifier of the app associated with the feature flag."},"flagName":{"type":"string","description":"The name of the feature flag to delete."},"portalId":{"type":"integer","description":"The unique identifier of the portal from which the feature flag will be deleted."}}}}}},"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"}}}}}}}