Introduction

⏱️ 2 min read

🎬 Video Tutorial

Prefer learning by watching? Check out our integration walkthrough:

Watch the integration walkthrough on YouTube:


Generate your API Key

Follow these steps to get your API key:

  1. Create API Key — from your dashboard, generate your api_key and refresh_token.

For a detailed walkthrough with examples, see the Getting Your API Key guide.

For the full API reference, see the DeFindex API documentation.

Postman collection json here

This guide will walk you through integrating DeFindex into your app using the provided API. We'll use TypeScript for the examples, but the concepts apply to any language.

🚀 TypeScript SDK Available!

If you're developing in TypeScript, we highly recommend using our official SDK instead of direct API integration. The SDK provides:

  • Type safety and comprehensive TypeScript definitions

  • Simplified authentication with API keys

  • Built-in error handling and validation

  • Complete coverage of all API endpoints

  • Working examples and detailed documentation

Check out the DeFindex TypeScript SDK documentation for the easiest integration experience.

For non-TypeScript projects or custom integrations, continue with this direct API guide below.


Complete reference: API Reference

Prerequisites


1. Setting Up the API Client

First, create an ApiClient class to handle authentication and API requests.

Go to interact with vault, see the implementations of the functions:

  • Deposit

  • Withdraw

  • Balance

  • APY


Request Parameters Reference

Deposit Request

Withdraw Request

Send Request

Last updated