API Reference

Complete API documentation for integrating UAPK into your applications.

Quick Start

1

Get API Key

Sign up for an account and generate your API key

2

Install SDK

Install our SDK for your preferred language

3

Make API Calls

Start building with our comprehensive API

Code Examples

Javascript Example

// Example: Create a new manifest
const response = await fetch('/api/manifests', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_TOKEN'
  },
  body: JSON.stringify({
    name: 'E-Commerce Platform',
    description: 'Complete online store automation',
    category: 'retail',
    operations: [
      {
        name: 'Inventory Management',
        settings: { auto_reorder: true }
      }
    ]
  })
});

const data = await response.json();
console.log('Manifest created:', data.id);

API Endpoints

Authentication

POST

/auth/login

Authenticate user and return access token

Parameters
NameTypeRequired
emailstringRequired
passwordstringRequired
Response
{
  "token": "string",
  "user": "object",
  "expires": "timestamp"
}
POST

/auth/refresh

Refresh access token

Parameters
NameTypeRequired
refresh_tokenstringRequired
Response
{
  "token": "string",
  "expires": "timestamp"
}

Manifests

GET

/manifests

List all manifests for authenticated user

Parameters
NameTypeRequired
pageintegerOptional
limitintegerOptional
statusstringOptional
Response
{
  "manifests": "array",
  "pagination": "object"
}
POST

/manifests

Create a new manifest

Parameters
NameTypeRequired
namestringRequired
descriptionstringRequired
categorystringRequired
operationsarrayRequired
Response
{
  "id": "string",
  "status": "string",
  "created_at": "timestamp"
}
GET

/manifests/{id}

Get manifest details

Parameters
NameTypeRequired
idstringRequired
Response
{
  "manifest": "object",
  "operations": "array",
  "metadata": "object"
}

Marketplace

GET

/marketplace/manifests

List marketplace manifests

Parameters
NameTypeRequired
categorystringOptional
min_pricenumberOptional
max_pricenumberOptional
Response
{
  "manifests": "array",
  "filters": "object"
}
POST

/marketplace/purchase

Purchase a manifest

Parameters
NameTypeRequired
manifest_idstringRequired
payment_methodstringRequired
Response
{
  "transaction_id": "string",
  "status": "string",
  "manifest": "object"
}

Official SDKs

JavaScript

npm install @uapk/sdk
import { UAPKClient } from '@uapk/sdk';

const client = new UAPKClient({
  apiKey: 'your-api-key',
  environment: 'production'
});

// Create a manifest
const manifest = await client.manifests.create({
  name: 'My Business',
  category: 'retail',
  operations: [...]
});

Python

pip install uapk-sdk
from uapk import UAPKClient

client = UAPKClient(
    api_key='your-api-key',
    environment='production'
)

# List marketplace manifests
manifests = client.marketplace.list(
    category='retail',
    min_price=0.1
)

Additional Resources

Documentation

Complete guides and tutorials

View Docs →

GitHub

View source code and examples

View Repo →

Community

Get help from other developers

Join Discord →

API Playground

Test API endpoints online

Try It Out →