Guide
Get up and running with Nexbic in under 5 minutes. Follow these four steps to make your first API call.
Sign up for a Nexbic account and generate your API keys from the dashboard. You will receive a publishable key and a secret key.
Install the Nexbic SDK for your preferred language or framework.
Initialize the SDK with your API keys and authenticate your first request.
Send your first API request to create a user or check wallet balance.
Implementation
Navigate to your Nexbic dashboard and generate a new set of API keys. Keep your secret key secure.
# Copy your keys from the dashboard
export NEXBIC_PUBLISHABLE_KEY=nxb_pk_...
export NEXBIC_SECRET_KEY=nxb_sk_...Implementation
Install the Nexbic SDK via npm, pip, or your preferred package manager.
npm install @nexbic/sdkpip install nexbic-sdkgo get github.com/nexbic/sdk-goImplementation
Initialize the Nexbic client with your secret key to start making authenticated requests.
import { Nexbic } from '@nexbic/sdk';
const nexbic = new Nexbic({
secretKey: process.env.NEXBIC_SECRET_KEY
});
// Client is ready to make requestsfrom nexbic import Nexbic
nexbic = Nexbic(
secret_key="nxb_sk_..."
)
# Client is ready to make requestsImplementation
Create a user or check your wallet balance with your first API call.
const user = await nexbic.users.create({
email: "user@example.com",
name: "Jane Doe"
});
console.log(user.id); // "usr_..."const wallet = await nexbic.wallets.getBalance({
userId: "usr_..."
});
console.log(wallet.balance); // { credits: 1000, currency: "USD" }curl -X GET https://api.nexbic.dev/v1/wallet/balance \
-H "Authorization: Bearer nxb_sk_..."Now explore the full API reference and SDK documentation to build your integration.