Overview
All requests to the Bridge API must be authenticated using an API Key. This key identifies your application and authorizes it to access Bridge resources on behalf of your organization.You will need access to Bridge’s admin console at https://admin.bridge.new.If you don’t have one, please ask your Bridge Admin to create you a user.
Generating an API Key
Open the Admin Console
Go to your Bridge Dashboard and log in with your credentials.
Navigate to API Keys
In the left panel, go to Developers → API Keys Management.
Create a new key
Click Generate New Key. You can give it a descriptive name and set an expiration date.
Using your API Key
Include your API Key in thex-api-key header on every request:
Use the
GET /bridge/api/health endpoint to verify that your API Key is valid and your connection is working correctly.Security Best Practices
- Use environment variables — Store your API Key in an environment variable (e.g.
BRIDGE_API_KEY) instead of hardcoding it in your source code. - Never expose keys in client-side code — API Keys should only be used in server-side applications. Never include them in frontend code, mobile apps, or public repositories.
- Set an expiration date — Always configure an expiration when creating a key. Avoid using keys without a defined expiry.
- One key per application — Use a separate API Key for each service or application that connects to Bridge. This limits the impact if a key is compromised.
- Rotate keys periodically — Create a new key and update your applications before deactivating the old one. This ensures zero downtime during rotation.
Troubleshooting
For a complete list of error codes, see the Error Codes reference.
Related Topics
- Error Codes — Full reference of Bridge API error codes
- REST API Reference — Explore all available endpoints
- Webhooks — Set up real-time event notifications