Getting Started
Get up and running with Bloque SDK in minutes.
Installation
Install the SDK using your preferred package manager:
API Key
To use the Bloque SDK, you'll need an API key. You can obtain one from the Bloque Dashboard.
Security
Never expose your API key in client-side code. Always use environment variables and keep your keys secure.
Initialize the SDK
Create an instance of the SDK with your API key and mode:
Configuration Options
Modes
sandbox: For testing and development. No real transactions.production: For live operations with real data.
Your First Request
Let's create a virtual card:
Error Handling
Always wrap SDK calls in try-catch blocks to handle errors gracefully:
TypeScript Support
The SDK is built with TypeScript and provides full type safety:
Environment Variables
Use environment variables to store your API key securely:
Then load them in your application:
Next Steps
- Organizations Guide - Learn how to create and manage organizations
- Compliance Guide - Set up KYC verification
- Accounts Guide - Create virtual cards