API Documentation

Detailed instructions and code examples for integrating TricklAI Unified Services into your Micro App.

Base Instructions
# TricklAI Micro App Integration Guide

## Overview

Welcome to the TricklAI Micro App Integration Guide! This document provides instructions and code examples for connecting your micro app to TricklAI's Unified Services.

TricklAI acts as a central hub, managing all your external service provider credentials (e.g., ClickSend for SMS, Resend for Email, Square for Payments). Your micro app only needs **one API Key** to access all the services it's enabled for.

## Getting Started

### 1. Your TricklAI API Key

Your micro app is assigned a unique API Key. You can find this key in the TricklAI Admin Dashboard under "Micro Apps Management" for your specific micro app.

Always keep your API Key secure and do NOT expose it in client-side code directly.
For server-side (Deno) functions, you can access it via environment variables or pass it securely from your frontend.

const TRICKLAI_API_KEY = 'YOUR_MICRO_APP_API_KEY_HERE';

### 2. Base URL for TricklAI Functions

All TricklAI backend functions are exposed via a single endpoint:

const TRICKLAI_FUNCTIONS_URL = 'https://tricklsoft.com/functions';

### 3. Making API Calls

You will typically use base44.functions.invoke() within your micro app's frontend or backend functions.