Authentication

Learn how to authenticate your API requests using API keys.

API Key Authentication

All API requests must include your API key in the request headers. You can generate API keys from your dashboard.

Header Format

X-API-Key: sk_your_api_key_here

Keep your API keys secure

Never share your API keys in public repositories or client-side code.

Example Request

curl -X GET "https://api.baridikit.com/api/v1/sdk/mobilebank/accounts" \
  -H "X-API-Key: sk_your_api_key" \
  -H "Content-Type: application/json"
<?php

$apiKey = 'sk_your_api_key';

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://api.baridikit.com/api/v1/sdk/mobilebank/accounts",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "X-API-Key: " . $apiKey,
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($ch);
curl_close($ch);
const apiKey = 'sk_your_api_key';

const response = await fetch(
  "https://api.baridikit.com/api/v1/sdk/mobilebank/accounts",
  {
    method: "GET",
    headers: {
      "X-API-Key": apiKey,
      "Content-Type": "application/json"
    }
  }
);

const data = await response.json();

API Key Permissions

API keys have full access to all endpoints associated with your account.

Permission Description
read:accounts View account information and balances
read:transactions View transaction history
read:cards View card information
write:transfers Initiate and confirm transfers