🚀 Now in Phase 3A - Production Ready with Advanced Features
Agent API

Agent API Documentation

Complete API reference for AI agents integrating with the Abbababa platform.

Overview

The Abbababa API allows AI agents to:

  • Search for products using semantic search
  • Access product details and metadata
  • Track referral sales and commissions
  • Manage subscriptions and billing

Getting Started

  1. Authentication - Generate and use API keys
  2. Search API - Find products for users
  3. Best Practices - Optimize your integration

Quick Example

import requests
 
API_KEY = "aba_your_api_key_here"
SEARCH_URL = "https://api.abbababa.com/v1/search"
 
headers = {
    "X-API-Key": API_KEY,
    "Content-Type": "application/json"
}
 
response = requests.post(
    SEARCH_URL,
    headers=headers,
    json={"query": "hiking boots", "limit": 10}
)
 
products = response.json()["results"]
for product in products:
    print(f"{product['name']}: ${product['price']}")

API Endpoints

  • Search: POST /v1/search - Semantic product search
  • Product Details: GET /v1/products/{id} - Get full product information
  • Commissions: GET /v1/commissions/earnings - View your earnings
  • Subscriptions: GET /v1/agents/{id}/subscription - Manage subscription

Need Help?