Getting Started
Welcome to the BabyZilla2 API! Our RESTful API allows you to integrate powerful document processing, AI agent orchestration, and blockchain features into your applications.
🚀 Quick Start
Get up and running with the BabyZilla2 API in minutes:
- Sign up for a free account at babyzilla2.com
- Generate your API key from the dashboard
- Make your first API call
Base URL
Quick Example
Authentication
BabyZilla2 uses API keys for authentication. Include your API key in the Authorization header of every request.
API Key Authentication
Enterprise SSO
Enterprise customers can use Single Sign-On (SSO) with SAML 2.0 or OAuth 2.0. Contact support for configuration.
| Header | Value | Description |
|---|---|---|
| Authorization | Bearer {token} | Your API key from the dashboard |
| X-Tenant-ID | string | Required for multi-tenant enterprise accounts |
Document Processing
Process documents with intelligent AI transformations, OCR capabilities, and custom rule sequences.
POSTProcess Document Requires Auth
Submit a document for processing with custom transformations and AI analysis.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Required | Processing type: csv_cleaning, pdf_extraction, nlp_analysis |
| data | object | Required | Processing-specific data payload |
| priority | string | Optional | Processing priority: high, medium, low (default: medium) |
| webhook_url | string | Optional | URL to receive processing completion webhook |
Example Request
Response (202 Accepted)
GETJob Status
Get real-time processing status and progress updates.
Response (200 OK)
Enterprise Processing API
Ultra-low latency processing with advanced queue management and real-time streaming capabilities.
POSTSubmit Enterprise Job Enterprise Only
Submit high-priority processing jobs to the enterprise queue with sub-second response times.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Required | Job type: document_processing, data_transformation, export_generation |
| priority | string | Optional | Priority level: critical, high, medium, low |
| data | object | Required | Job-specific data payload |
| metadata | object | Optional | Additional metadata including expected duration and dependencies |
GETReal-Time Stream
Establish Server-Sent Events stream for real-time job updates with ultra-low latency.
POSTBatch Processing
Submit multiple processing jobs with dependency management and optimized scheduling.
AI Agent Orchestration
Deploy conversational AI agents that understand your data and create custom processing workflows.
POSTCreate Conversation
Start a new conversation with an AI agent for interactive data processing.
Example Request
POSTSend Message
Send a message to an AI agent and receive intelligent responses with suggested actions.
Response
Blockchain Integration
Manage ZILLA tokens, staking, and blockchain rewards through our Solana-based integration.
GETToken Balance
Get current ZILLA token balance and earning history.
Response
POSTStake Tokens
Stake ZILLA tokens to earn rewards and access premium features.
GETTransaction History
Get detailed transaction history with blockchain verification.
Webhooks
Receive real-time notifications when processing jobs complete, errors occur, or tokens are earned.
Webhook Events
| Event Type | Description | Data Included |
|---|---|---|
| job.completed | Processing job finished successfully | job_id, result_url, tokens_earned, processing_time |
| job.failed | Processing job encountered an error | job_id, error_code, error_message, retry_count |
| tokens.earned | ZILLA tokens earned from activity | amount, reason, transaction_id, balance |
| agent.response | AI agent generated a response | conversation_id, message, suggested_actions |
Webhook Payload Example
SDKs & Libraries
Official SDKs and community libraries to integrate BabyZilla2 into your favorite programming language.
JavaScript SDK Example
Rate Limits
API rate limits vary by plan tier to ensure fair usage and optimal performance.
| Plan | Requests/Minute | Documents/Month | Concurrent Jobs |
|---|---|---|---|
| Starter | 60 | 10,000 | 5 |
| Professional | 300 | 50,000 | 20 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Rate Limit Headers
Error Handling
BabyZilla2 uses conventional HTTP response codes and detailed error messages.
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 202 | Accepted | Request accepted for processing |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Insufficient permissions |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server-side error occurred |