Connect external services to your app with managed or custom API keys.
API Connections let you integrate external services into your app—like AI models, payment processors, analytics tools, and more. Bloom can automatically provide and manage API keys for you, or you can bring your own.
Why API connections matter
Most modern apps rely on external services:
AI & Machine Learning
Connect to services like Google AI, OpenAI, or Anthropic to add smart features—chatbots, content generation, image analysis, etc.
Payments
Integrate Stripe, PayPal, or other payment processors to accept payments in your app.
Analytics
Track user behavior and app performance with services like Mixpanel, Segment, or Google Analytics.
API keys are like passwords that let your app talk to external services securely. Bloom helps you manage them safely.
Auto-provisioned API keys
Bloom can automatically provide API keys for popular services, so you can start using them immediately without creating accounts or managing credentials yourself.
How it works
Enabled (Recommended)
Disabled
When auto-provisioning is ON:
Bloom provides API keys automatically for supported services
Keys are securely managed and rotated by Bloom
Usage counts against your plan’s credits
No need to create external accounts or manage credentials
Start using services immediately
This is the fastest way to add external services to your app—perfect for development, testing, and most production use cases.
Supported services:
Google AI (Gemini models)
Additional services coming soon
Auto-provisioned keys are shared across your Bloom apps but isolated per project for security.
When auto-provisioning is OFF:
You provide your own API keys for each service
Full control over API accounts and billing
Direct access to service dashboards and logs
Required for services not supported by Bloom provisioning
You’ll need to create accounts with each external service, generate API keys, and add them as environment variables in Bloom.
When to disable auto-provisioning:
You need specific API quotas or rate limits
You want direct billing from the service provider
You’re using services not yet supported by Bloom provisioning
Your organization requires managing all API credentials directly
Credit usage warning
API provisioning disabled - insufficient creditsYour Bloom credits have been exhausted. API calls will fail until you upgrade your plan or disable API provisioning.
If you see this warning:
Upgrade your plan to get more credits (recommended for continued use)
Disable API provisioning and use your own API keys instead
Purchase credit top-ups from your billing dashboard
View plans and pricing
Compare plans and see how credits are used
Environment Variables
Environment variables let you securely store API keys, configuration values, and other sensitive information your app needs to function.
What are environment variables?
Think of environment variables as a secure storage locker for your app’s secrets:
API keys from external services
Configuration values like feature flags or URLs
Credentials for databases or third-party services
They’re called “environment” variables because they’re specific to where your app is running (development vs. production) and kept separate from your code.
Environment variables are never exposed in your app’s frontend code or shared publicly. They’re only accessible from your backend functions.
Managing variables
Click 'Add Variable'
Opens a form to create a new environment variable.
2
Enter variable details
Name: What you’ll call this variable in your code (e.g., STRIPE_API_KEY)
Value: The actual key or configuration value
Use UPPERCASE_WITH_UNDERSCORES for variable names—it’s a common convention that makes them easy to identify.
3
Save the variable
The variable is immediately available in your Convex backend functions.
4
Use it in your code
Access the variable in your backend using process.env.VARIABLE_NAME
// Example: Using an API key in a Convex functionconst apiKey = process.env.GOOGLE_AI_API_KEY;
Variable status indicators
Each variable shows its current status:
Provided by Bloom
In use
Not in use
This variable is auto-provisioned by Bloom. The API key is managed automatically and rotated for security.Example:Google_AI when auto-provisioning is enabled
No manual configuration needed
Counts against your plan credits
This variable is actively being used by your app’s backend functions.
Your code is successfully accessing this variable
The service connection is working
If a variable shows no status badge, it’s defined but not currently being used in any backend functions.This might mean:
You added it but haven’t implemented the feature yet
The variable name doesn’t match what your code is looking for
The code using it isn’t being called
Actions for variables
Edit variable
Click the edit icon (pencil) to change a variable’s value.
Changing a variable value will affect your live app immediately. Make sure you’re updating the correct variable!
Common reasons to edit:
Rotating API keys for security
Updating configuration values
Fixing incorrect credentials
Delete variable
Click the delete icon (trash can) to remove a variable.
Deleting a variable that’s in use will cause errors in your app. Check that no functions depend on it before deleting.
Check logs after deleting to ensure no functions are trying to access the removed variable.
Refresh variables
Click Refresh to reload the list of variables and their current status.Useful after:
Adding variables in the Convex dashboard directly
Making changes in another browser tab
Troubleshooting variable visibility issues
Common use cases
Adding a custom AI API key
If you want to use your own Google AI, OpenAI, or Anthropic API key:
1
Disable auto-provisioning
Toggle off “Automatically provision API keys” if it’s enabled.
If auto-provisioning is disabled due to insufficient credits:Option 1: Upgrade plan
Get more included credits through a paid billing cycle
Keep using Bloom-managed keys
Simplest for ongoing projects
Option 2: Use custom keys
Disable auto-provisioning
Add your own API keys
Direct billing from service providers
Can't find my variable
Click Refresh to reload the variable list
Check you’re in the correct app’s settings
Verify the variable was saved (you should see a confirmation)
Check if it was accidentally deleted
Learn more
View Logs
Debug API connection errors and see request details
Backend Dashboard
Monitor function calls that use API connections
Plans & Pricing
Understand credit usage for auto-provisioned keys
Convex Environment Variables
Learn more about how Convex handles environment variables
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bloom","description":"Create full-stack native apps with AI","colors":{"primary":"#2EA1F3","light":"#F5F3FF","dark":"#FF7DAD"},"logo":{"light":"https://mintcdn.com/bloom-eafef039/V5DGM7pehs6HGA75/images/bloom-logo-light.png?fit=max\u0026auto=format\u0026n=V5DGM7pehs6HGA75\u0026q=85\u0026s=ec1e694a7c5372d8b2d6202b38c17ae3","dark":"https://mintcdn.com/bloom-eafef039/V5DGM7pehs6HGA75/images/bloom-logo-dark.png?fit=max\u0026auto=format\u0026n=V5DGM7pehs6HGA75\u0026q=85\u0026s=d4f624dabec98bc7f06a501231332827","href":"https://bloom.diy/"},"favicon":"https://mintcdn.com/bloom-eafef039/V5DGM7pehs6HGA75/images/favicon.png?fit=max\u0026auto=format\u0026n=V5DGM7pehs6HGA75\u0026q=85\u0026s=f173e45b79d7cf2d3d5026793971cdc9","background":{"decoration":"gradient","color":{"light":"#F9FAFB","dark":"#080808"}},"navbar":{"links":[{"href":"https://discord.com/invite/ZC3zgARtUY","type":"discord"}],"primary":{"type":"button","label":"Dashboard","href":"https://bloom.diy/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/bloomlabs-inc","x":"https://x.com/CreateWithBloom","youtube":"https://www.youtube.com/@CreateWithBloom"}},"fonts":{"family":"Inter"},"integrations":{"intercom":{"appId":"t9im3l10"},"posthog":{"apiKey":"phc_Ysdg4mGIW3VBgO0bCt4aAS1mXp0lX5aak6hHqgcxxKO","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bloom-eafef039","hasAudioNarration":false,"actualSubdomain":"bloom-eafef039","customDomains":["docs.bloom.diy"],"gitSource":{"type":"github","owner":"bloomlabsinc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0110dd1052afd92812d4f0","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Features","count":16},{"language":"default","tag":"Introduction","count":11},{"language":"default","tag":"Tips \u0026 Tricks","count":5},{"language":"default","tag":"Code","count":4},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Build Your First App","count":4},{"language":"default","tag":"Platforms","count":3},{"language":"default","tag":"Quick References","count":3},{"language":"default","tag":"Changelog","count":2},{"language":"default","tag":"Connect AI clients","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"team@bloom.diy","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-connections","slug":"/api-connections","pageMetadata":{"title":"API Connections","description":"Connect external services to your app with managed or custom API keys.","icon":"plug","href":"/api-connections"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect external services to your app with managed or custom API keys.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,Check,CodeBlock,Heading,Info,Note,Step,Steps,Tab,Tabs,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API Connections`}),` let you integrate external services into your app—like AI models, payment processors, analytics tools, and more. Bloom can automatically provide and manage API keys for you, or you can bring your own.`]}),`\n`,_jsx(Heading,{level:`2`,id:`why-api-connections-matter`,children:`Why API connections matter`}),`\n`,_jsx(_components.p,{children:`Most modern apps rely on external services:`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`AI \u0026 Machine Learning`,icon:`brain`,children:_jsx(_components.p,{children:`Connect to services like Google AI, OpenAI, or Anthropic to add smart features—chatbots, content generation, image analysis, etc.`})}),_jsx(Card,{title:`Payments`,icon:`credit-card`,children:_jsx(_components.p,{children:`Integrate Stripe, PayPal, or other payment processors to accept payments in your app.`})}),_jsx(Card,{title:`Analytics`,icon:`chart-line`,children:_jsx(_components.p,{children:`Track user behavior and app performance with services like Mixpanel, Segment, or Google Analytics.`})}),_jsx(Card,{title:`Communication`,icon:`envelope`,children:_jsx(_components.p,{children:`Send emails (SendGrid, Mailgun), SMS messages (Twilio), or push notifications (Firebase).`})})]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`API keys are like passwords that let your app talk to external services securely. Bloom helps you manage them safely.`})}),`\n`,_jsx(Heading,{level:`2`,id:`auto-provisioned-api-keys`,children:`Auto-provisioned API keys`}),`\n`,_jsxs(_components.p,{children:[`Bloom can `,_jsx(_components.strong,{children:`automatically provide API keys`}),` for popular services, so you can start using them immediately without creating accounts or managing credentials yourself.`]}),`\n`,_jsx(Heading,{level:`3`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Enabled (Recommended)`,id:`enabled-recommended`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`When auto-provisioning is ON:`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Bloom provides API keys automatically for supported services`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Keys are securely managed and rotated by Bloom`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Usage counts against your plan’s credits`})}),_jsx(Check,{children:_jsx(_components.p,{children:`No need to create external accounts or manage credentials`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Start using services immediately`})}),_jsx(Tip,{children:_jsx(_components.p,{children:`This is the fastest way to add external services to your app—perfect for development, testing, and most production use cases.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Supported services:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Google AI (Gemini models)`}),`\n`,_jsx(_components.li,{children:`Additional services coming soon`}),`\n`]}),_jsx(Note,{children:_jsx(_components.p,{children:`Auto-provisioned keys are shared across your Bloom apps but isolated per project for security.`})})]}),_jsxs(Tab,{title:`Disabled`,id:`disabled`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`When auto-provisioning is OFF:`})}),_jsx(Check,{children:_jsx(_components.p,{children:`You provide your own API keys for each service`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Full control over API accounts and billing`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Direct access to service dashboards and logs`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Required for services not supported by Bloom provisioning`})}),_jsx(Info,{children:_jsx(_components.p,{children:`You’ll need to create accounts with each external service, generate API keys, and add them as environment variables in Bloom.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`When to disable auto-provisioning:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You need specific API quotas or rate limits`}),`\n`,_jsx(_components.li,{children:`You want direct billing from the service provider`}),`\n`,_jsx(_components.li,{children:`You’re using services not yet supported by Bloom provisioning`}),`\n`,_jsx(_components.li,{children:`Your organization requires managing all API credentials directly`}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`credit-usage-warning`,children:`Credit usage warning`}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`API provisioning disabled - insufficient credits`})}),_jsx(_components.p,{children:`Your Bloom credits have been exhausted. API calls will fail until you upgrade your plan or disable API provisioning.`})]}),`\n`,_jsx(_components.p,{children:`If you see this warning:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Upgrade your plan`}),` to get more credits (recommended for continued use)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Disable API provisioning`}),` and use your own API keys instead`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Purchase credit top-ups`}),` from your billing dashboard`]}),`\n`]}),`\n`,_jsx(Card,{title:`View plans and pricing`,icon:`credit-card`,href:`/pricing-and-credits`,children:_jsx(_components.p,{children:`Compare plans and see how credits are used`})}),`\n`,_jsx(Heading,{level:`2`,id:`environment-variables`,children:`Environment Variables`}),`\n`,_jsx(_components.p,{children:`Environment variables let you securely store API keys, configuration values, and other sensitive information your app needs to function.`}),`\n`,_jsx(Heading,{level:`3`,id:`what-are-environment-variables`,children:`What are environment variables?`}),`\n`,_jsx(_components.p,{children:`Think of environment variables as a secure storage locker for your app’s secrets:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API keys`}),` from external services`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Configuration values`}),` like feature flags or URLs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credentials`}),` for databases or third-party services`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`They’re called “environment” variables because they’re specific to where your app is running (development vs. production) and kept separate from your code.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Environment variables are `,_jsx(_components.strong,{children:`never exposed`}),` in your app’s frontend code or shared publicly. They’re only accessible from your backend functions.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`managing-variables`,children:`Managing variables`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Click 'Add Variable'`,icon:`plus`,children:_jsx(_components.p,{children:`Opens a form to create a new environment variable.`})}),_jsxs(Step,{title:`Enter variable details`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name:`}),` What you’ll call this variable in your code (e.g., `,_jsx(_components.code,{children:`STRIPE_API_KEY`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Value:`}),` The actual key or configuration value`]}),`\n`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`Use UPPERCASE_WITH_UNDERSCORES for variable names—it’s a common convention that makes them easy to identify.`})})]}),_jsx(Step,{title:`Save the variable`,children:_jsx(_components.p,{children:`The variable is immediately available in your Convex backend functions.`})}),_jsxs(Step,{title:`Use it in your code`,children:[_jsxs(_components.p,{children:[`Access the variable in your backend using `,_jsx(_components.code,{children:`process.env.VARIABLE_NAME`})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Example: Using an API key in a Convex function`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`GOOGLE_AI_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`variable-status-indicators`,children:`Variable status indicators`}),`\n`,_jsx(_components.p,{children:`Each variable shows its current status:`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Provided by Bloom`,id:`provided-by-bloom`,children:[_jsx(_components.p,{children:`This variable is auto-provisioned by Bloom. The API key is managed automatically and rotated for security.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example:`}),` `,_jsx(_components.code,{children:`Google_AI`}),` when auto-provisioning is enabled`]}),_jsx(Check,{children:_jsx(_components.p,{children:`No manual configuration needed`})}),_jsx(Check,{children:_jsx(_components.p,{children:`Counts against your plan credits`})})]}),_jsxs(Tab,{title:`In use`,id:`in-use`,children:[_jsx(_components.p,{children:`This variable is actively being used by your app’s backend functions.`}),_jsx(Check,{children:_jsx(_components.p,{children:`Your code is successfully accessing this variable`})}),_jsx(Check,{children:_jsx(_components.p,{children:`The service connection is working`})})]}),_jsxs(Tab,{title:`Not in use`,id:`not-in-use`,children:[_jsx(_components.p,{children:`If a variable shows no status badge, it’s defined but not currently being used in any backend functions.`}),_jsx(_components.p,{children:`This might mean:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You added it but haven’t implemented the feature yet`}),`\n`,_jsx(_components.li,{children:`The variable name doesn’t match what your code is looking for`}),`\n`,_jsx(_components.li,{children:`The code using it isn’t being called`}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`actions-for-variables`,children:`Actions for variables`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Edit variable`,icon:`pen`,id:`edit-variable`,children:[_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`edit icon`}),` (pencil) to change a variable’s value.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Changing a variable value will affect your live app immediately. Make sure you’re updating the correct variable!`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Common reasons to edit:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Rotating API keys for security`}),`\n`,_jsx(_components.li,{children:`Updating configuration values`}),`\n`,_jsx(_components.li,{children:`Fixing incorrect credentials`}),`\n`]})]}),_jsxs(Accordion,{title:`Delete variable`,icon:`trash`,id:`delete-variable`,children:[_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`delete icon`}),` (trash can) to remove a variable.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Deleting a variable that’s in use will cause errors in your app. Check that no functions depend on it before deleting.`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check logs after deleting`}),` to ensure no functions are trying to access the removed variable.`]})]}),_jsxs(Accordion,{title:`Refresh variables`,icon:`arrows-rotate`,id:`refresh-variables`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Refresh`}),` to reload the list of variables and their current status.`]}),_jsx(_components.p,{children:`Useful after:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Adding variables in the Convex dashboard directly`}),`\n`,_jsx(_components.li,{children:`Making changes in another browser tab`}),`\n`,_jsx(_components.li,{children:`Troubleshooting variable visibility issues`}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`common-use-cases`,children:`Common use cases`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Adding a custom AI API key`,icon:`key`,id:`adding-a-custom-ai-api-key`,children:[_jsx(_components.p,{children:`If you want to use your own Google AI, OpenAI, or Anthropic API key:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Disable auto-provisioning`,children:_jsx(_components.p,{children:`Toggle off “Automatically provision API keys” if it’s enabled.`})}),_jsx(Step,{title:`Get your API key`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For Google AI: `,_jsx(_components.a,{href:`https://aistudio.google.com/`,children:`Google AI Studio`})]}),`\n`,_jsxs(_components.li,{children:[`For OpenAI: `,_jsx(_components.a,{href:`https://platform.openai.com/`,children:`OpenAI Platform`})]}),`\n`,_jsxs(_components.li,{children:[`For Anthropic: `,_jsx(_components.a,{href:`https://console.anthropic.com/`,children:`Anthropic Console`})]}),`\n`]})}),_jsxs(Step,{title:`Add as environment variable`,children:[_jsx(_components.p,{children:`Click “Add Variable” and enter:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Name: `,_jsx(_components.code,{children:`GOOGLE_AI_API_KEY`}),` (or appropriate name)`]}),`\n`,_jsx(_components.li,{children:`Value: Your API key from the provider`}),`\n`]})]}),_jsx(Step,{title:`Update your code`,children:_jsxs(_components.p,{children:[`Make sure your backend functions use `,_jsx(_components.code,{children:`process.env.GOOGLE_AI_API_KEY`})]})}),_jsx(Step,{title:`Test the connection`,children:_jsxs(_components.p,{children:[`Use your app’s AI features and check `,_jsx(_components.a,{href:`/logs`,children:`Logs`}),` for any errors`]})})]})]}),_jsxs(Accordion,{title:`Connecting a payment processor`,icon:`credit-card`,id:`connecting-a-payment-processor`,children:[_jsx(_components.p,{children:`To add Stripe, PayPal, or another payment service:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Create an account`,children:_jsxs(_components.p,{children:[`Sign up with your chosen payment processor (e.g., `,_jsx(_components.a,{href:`https://stripe.com`,children:`Stripe`}),`)`]})}),_jsxs(Step,{title:`Get API credentials`,children:[_jsx(_components.p,{children:`Find your API keys in the service’s dashboard:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Stripe: Dashboard → Developers → API keys`}),`\n`,_jsx(_components.li,{children:`Look for “Secret key” or “API key”`}),`\n`]})]}),_jsxs(Step,{title:`Add to environment variables`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Name: `,_jsx(_components.code,{children:`STRIPE_SECRET_KEY`}),` (or provider-specific name)`]}),`\n`,_jsx(_components.li,{children:`Value: Your secret API key`}),`\n`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Never use “publishable” keys in environment variables—only “secret” keys belong in the backend.`})})]}),_jsx(Step,{title:`Implement payment logic`,children:_jsx(_components.p,{children:`Use Bloom’s agent to help generate payment processing code, or follow the provider’s documentation`})})]})]}),_jsxs(Accordion,{title:`Setting up analytics`,icon:`chart-simple`,id:`setting-up-analytics`,children:[_jsx(_components.p,{children:`To track user behavior with Mixpanel, Segment, or Google Analytics:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Create analytics account`,children:_jsx(_components.p,{children:`Sign up with your chosen analytics platform`})}),_jsxs(Step,{title:`Get tracking credentials`,children:[_jsx(_components.p,{children:`Each platform provides:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`API key or Write key`}),`\n`,_jsx(_components.li,{children:`Project ID or tracking ID`}),`\n`]})]}),_jsxs(Step,{title:`Add as environment variables`,children:[_jsx(_components.p,{children:`Example for Mixpanel:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MIXPANEL_TOKEN`}),`: Your project token`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MIXPANEL_SECRET`}),`: Your API secret (if using server-side tracking)`]}),`\n`]})]}),_jsx(Step,{title:`Initialize tracking`,children:_jsx(_components.p,{children:`Add tracking calls to your backend functions or frontend code as needed`})})]})]}),_jsxs(Accordion,{title:`Switching from Bloom-managed to custom keys`,icon:`right-left`,id:`switching-from-bloom-managed-to-custom-keys`,children:[_jsx(_components.p,{children:`If you started with auto-provisioned keys but want to use your own:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Get your own API key`,children:_jsx(_components.p,{children:`Create an account with the service provider and generate an API key`})}),_jsx(Step,{title:`Add the new variable`,children:_jsx(_components.p,{children:`Create an environment variable with your custom key (don’t delete the Bloom one yet)`})}),_jsx(Step,{title:`Update your code`,children:_jsx(_components.p,{children:`Change your functions to use the new variable name`})}),_jsx(Step,{title:`Test thoroughly`,children:_jsx(_components.p,{children:`Verify everything works with your custom key before proceeding`})}),_jsx(Step,{title:`Disable auto-provisioning`,children:_jsx(_components.p,{children:`Once confirmed working, toggle off auto-provisioning to stop using Bloom credits`})}),_jsx(Step,{title:`Remove old variable (optional)`,children:_jsx(_components.p,{children:`Delete the Bloom-provided variable if no longer needed`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`security-best-practices`,children:`Security best practices`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Never commit keys to code`,icon:`code-branch`,children:_jsx(_components.p,{children:`Always use environment variables—never hard-code API keys directly in your app’s source code.`})}),_jsx(Card,{title:`Rotate keys regularly`,icon:`rotate`,children:_jsx(_components.p,{children:`Change API keys periodically for security, especially if team members leave or keys are potentially exposed.`})}),_jsx(Card,{title:`Use separate keys per environment`,icon:`layer-group`,children:_jsx(_components.p,{children:`If exporting code for production, use different API keys for development vs. production deployments.`})}),_jsx(Card,{title:`Monitor usage`,icon:`chart-line`,children:_jsx(_components.p,{children:`Check provider dashboards regularly for unexpected API usage that might indicate a security issue.`})})]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`If you suspect an API key is compromised:`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Immediately delete the variable in Bloom`}),`\n`,_jsx(_components.li,{children:`Revoke the key in the provider’s dashboard`}),`\n`,_jsx(_components.li,{children:`Generate a new key and add it as a fresh variable`}),`\n`,_jsxs(_components.li,{children:[`Check `,_jsx(_components.a,{href:`/logs`,children:`Logs`}),` for suspicious activity`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`API calls failing with 'key not valid'`,icon:`key`,id:`api-calls-failing-with-key-not-valid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Possible causes:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The API key is incorrect or expired`}),`\n`,_jsx(_components.li,{children:`The key doesn’t have required permissions`}),`\n`,_jsx(_components.li,{children:`Auto-provisioning is disabled but no custom key is set`}),`\n`,_jsx(_components.li,{children:`Variable name doesn’t match what your code expects`}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Solutions:`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Verify the key is correct in the provider’s dashboard`}),`\n`,_jsx(_components.li,{children:`Check the variable name matches your code exactly`}),`\n`,_jsx(_components.li,{children:`Enable auto-provisioning if you want Bloom-managed keys`}),`\n`,_jsxs(_components.li,{children:[`View `,_jsx(_components.a,{href:`/logs`,children:`Logs`}),` for the specific error message`]}),`\n`]})]}),_jsxs(Accordion,{title:`Variable not showing as 'In use'`,icon:`circle-question`,id:`variable-not-showing-as-in-use`,children:[_jsx(_components.p,{children:`If you added a variable but it doesn’t show the “In use” badge:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Your code might not be calling the function that uses it yet`}),`\n`,_jsx(_components.li,{children:`The variable name in your code might not match exactly`}),`\n`,_jsxs(_components.li,{children:[`You might be checking `,_jsx(_components.code,{children:`process.env`}),` incorrectly in your function`]}),`\n`]}),_jsxs(_components.p,{children:[`Check `,_jsx(_components.a,{href:`/backend-dashboard`,children:`Backend Dashboard Functions`}),` to verify the function is being called.`]})]}),_jsxs(Accordion,{title:`Credits depleted`,icon:`coins`,id:`credits-depleted`,children:[_jsx(_components.p,{children:`If auto-provisioning is disabled due to insufficient credits:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Option 1: Upgrade plan`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Get more included credits through a paid billing cycle`}),`\n`,_jsx(_components.li,{children:`Keep using Bloom-managed keys`}),`\n`,_jsx(_components.li,{children:`Simplest for ongoing projects`}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Option 2: Use custom keys`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Disable auto-provisioning`}),`\n`,_jsx(_components.li,{children:`Add your own API keys`}),`\n`,_jsx(_components.li,{children:`Direct billing from service providers`}),`\n`]})]}),_jsx(Accordion,{title:`Can't find my variable`,icon:`magnifying-glass`,id:`cant-find-my-variable`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Refresh`}),` to reload the variable list`]}),`\n`,_jsx(_components.li,{children:`Check you’re in the correct app’s settings`}),`\n`,_jsx(_components.li,{children:`Verify the variable was saved (you should see a confirmation)`}),`\n`,_jsx(_components.li,{children:`Check if it was accidentally deleted`}),`\n`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`learn-more`,children:`Learn more`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`View Logs`,icon:`terminal`,href:`/logs`,children:_jsx(_components.p,{children:`Debug API connection errors and see request details`})}),_jsx(Card,{title:`Backend Dashboard`,icon:`chart-line`,href:`/backend-dashboard`,children:_jsx(_components.p,{children:`Monitor function calls that use API connections`})}),_jsx(Card,{title:`Plans \u0026 Pricing`,icon:`credit-card`,href:`/pricing-and-credits`,children:_jsx(_components.p,{children:`Understand credit usage for auto-provisioned keys`})}),_jsx(Card,{title:`Convex Environment Variables`,icon:`book`,href:`https://docs.convex.dev/production/environment-variables`,children:_jsx(_components.p,{children:`Learn more about how Convex handles environment variables`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API Connections","description":"Connect external services to your app with managed or custom API keys.","icon":"plug","href":"/api-connections"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why API connections matter","slug":"why-api-connections-matter","depth":2,"children":[]},{"title":"Auto-provisioned API keys","slug":"auto-provisioned-api-keys","depth":2,"children":[{"title":"How it works","slug":"how-it-works","depth":3,"children":[]},{"title":"Credit usage warning","slug":"credit-usage-warning","depth":3,"children":[]}]},{"title":"Environment Variables","slug":"environment-variables","depth":2,"children":[{"title":"What are environment variables?","slug":"what-are-environment-variables","depth":3,"children":[]},{"title":"Managing variables","slug":"managing-variables","depth":3,"children":[]},{"title":"Variable status indicators","slug":"variable-status-indicators","depth":3,"children":[]},{"title":"Actions for variables","slug":"actions-for-variables","depth":3,"children":[]}]},{"title":"Common use cases","slug":"common-use-cases","depth":2,"children":[]},{"title":"Security best practices","slug":"security-best-practices","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Learn more","slug":"learn-more","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"bloom-eafef039","siteName":"Bloom","title":"API Connections - Bloom","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-20T12:02:57.574Z","originalFileLocation":"api-connections.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect external services to your app with managed or custom API keys.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bloom\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Connections - Bloom\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect external services to your app with managed or custom API keys.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bloom\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bloom.diy/api-connections\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bloom-eafef039.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=API+Connections\u0026amp;description=Connect+external+services+to+your+app+with+managed+or+custom+API+keys.\u0026amp;theme=ca92be36cf0f0dec35f0f464\u0026amp;signature=92793b647ffc6756f9a3edbe27dbd178436af8c39d113927c5fc0cfbaef6ab23\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"API Connections - Bloom\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect external services to your app with managed or custom API keys.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bloom-eafef039.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=API+Connections\u0026amp;description=Connect+external+services+to+your+app+with+managed+or+custom+API+keys.\u0026amp;theme=ca92be36cf0f0dec35f0f464\u0026amp;signature=92793b647ffc6756f9a3edbe27dbd178436af8c39d113927c5fc0cfbaef6ab23\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/bloom-eafef039/k32uDhvmJKUszBEN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bloom\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2EA1F3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bloom.diy/api-connections\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-connections.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bloom.diy/#organization\",\"name\":\"Bloom\",\"url\":\"https://docs.bloom.diy\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bloom-eafef039/V5DGM7pehs6HGA75/images/bloom-logo-light.png?fit=max\u0026auto=format\u0026n=V5DGM7pehs6HGA75\u0026q=85\u0026s=ec1e694a7c5372d8b2d6202b38c17ae3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bloom.diy#website\",\"name\":\"Bloom\",\"url\":\"https://docs.bloom.diy\",\"publisher\":{\"@id\":\"https://docs.bloom.diy/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bloom.diy/api-connections#webpage\",\"url\":\"https://docs.bloom.diy/api-connections\",\"name\":\"API Connections\",\"description\":\"Connect external services to your app with managed or custom API keys.\",\"dateModified\":\"2026-08-20T12:02:57.574Z\",\"isPartOf\":{\"@id\":\"https://docs.bloom.diy#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bloom.diy/api-connections#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bloom.diy/api-connections#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.bloom.diy/features\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Connections\",\"item\":\"https://docs.bloom.diy/api-connections\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bloom.diy/api-connections#article\",\"headline\":\"API Connections\",\"name\":\"API Connections\",\"description\":\"Connect external services to your app with managed or custom API keys.\",\"url\":\"https://docs.bloom.diy/api-connections\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bloom.diy/api-connections#webpage\"},\"dateModified\":\"2026-08-20T12:02:57.574Z\",\"publisher\":{\"@id\":\"https://docs.bloom.diy/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bloom.diy#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bloom\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bloom\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-connections.md","siteName":"Bloom","nav":{"global":null,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction"}]},{"tab":"Features","groups":[{"group":"Features","pages":[{"title":"Features","icon":"grid-2","href":"/features"},{"title":"Backend Dashboard","icon":"chart-line","href":"/backend-dashboard"},{"title":"Logs","icon":"file-text","href":"/logs"},{"title":"Authentication","description":"Let users sign in to your app securely with OAuth providers.","icon":"key","href":"/authentication"},{"title":"API Connections","icon":"plug","href":"/api-connections"},{"title":"Instant Sharing","description":"Share your app instantly with a link or QR code—no App Store required.","icon":"qrcode","href":"/instant-sharing"}]},{"group":"Code","pages":[{"title":"Code Preview","icon":"code","href":"/code-preview"},{"title":"App Structure","icon":"folder-tree","href":"/app-structure"},{"title":"GitHub Sync","icon":"github","href":"/github-sync"},{"title":"Exporting Code","icon":"download","href":"/exporting-code"}]}]},{"tab":"Tips \u0026 Tricks","pages":[{"title":"Tips \u0026 Tricks","href":"/what-you-can-build"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"API Connections - Bloom","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}