Back to Developers

Guide

Quick Start

Get up and running with Nexbic in under 5 minutes. Follow these four steps to make your first API call.

Step 1

Get API Keys

Sign up for a Nexbic account and generate your API keys from the dashboard. You will receive a publishable key and a secret key.

Step 2

Install the SDK

Install the Nexbic SDK for your preferred language or framework.

Step 3

Authenticate

Initialize the SDK with your API keys and authenticate your first request.

Step 4

Make Your First API Call

Send your first API request to create a user or check wallet balance.

Implementation

1. Get API Keys

Navigate to your Nexbic dashboard and generate a new set of API keys. Keep your secret key secure.

Set environment variables bash
# Copy your keys from the dashboard
export NEXBIC_PUBLISHABLE_KEY=nxb_pk_...
export NEXBIC_SECRET_KEY=nxb_sk_...

Implementation

2. Install the SDK

Install the Nexbic SDK via npm, pip, or your preferred package manager.

npm bash
npm install @nexbic/sdk
pip bash
pip install nexbic-sdk
Go bash
go get github.com/nexbic/sdk-go

Implementation

3. Authenticate

Initialize the Nexbic client with your secret key to start making authenticated requests.

TypeScript typescript
import { Nexbic } from '@nexbic/sdk';

const nexbic = new Nexbic({
  secretKey: process.env.NEXBIC_SECRET_KEY
});

// Client is ready to make requests
Python python
from nexbic import Nexbic

nexbic = Nexbic(
    secret_key="nxb_sk_..."
)

# Client is ready to make requests

Implementation

4. Make Your First API Call

Create a user or check your wallet balance with your first API call.

Create a user typescript
const user = await nexbic.users.create({
  email: "user@example.com",
  name: "Jane Doe"
});

console.log(user.id); // "usr_..."
Check wallet balance typescript
const wallet = await nexbic.wallets.getBalance({
  userId: "usr_..."
});

console.log(wallet.balance); // { credits: 1000, currency: "USD" }
curl bash
curl -X GET https://api.nexbic.dev/v1/wallet/balance \
  -H "Authorization: Bearer nxb_sk_..."

You're all set!

Now explore the full API reference and SDK documentation to build your integration.