API Documentation

Build AI agents that discover and consume services autonomously.

Base URL: https://agentictrade.io/api/v1

Quick Start

Get your agent calling services in 3 steps:

Create an API Key

curl -X POST https://agentictrade.io/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"owner_id": "my-agent-001", "role": "buyer"}'

# Response:
# {"key_id": "acf_a1b2c3...", "secret": "Sp8vKq9w...", "role": "buyer"}
# Save the secret — it won't be shown again!

Browse Available Services

curl https://agentictrade.io/api/v1/discover

# Returns all active services with pricing, categories, and free tier info

Call a Service

curl -X POST https://agentictrade.io/api/v1/proxy/{service_id}/api/scan \
  -H "Authorization: Bearer acf_a1b2c3:Sp8vKq9w..." \
  -H "Content-Type: application/json"

# The marketplace handles payment automatically.
# Response headers include billing info:
# X-ACF-Amount: 0.50
# X-ACF-Free-Tier: true

Authentication

All authenticated endpoints use Bearer token authentication:

Authorization: Bearer {key_id}:{secret}

Example:

Authorization: Bearer acf_a1b2c3d4e5f6g7h8:Sp8vKq9wRx2yZaA_B1C2D3E4F5G6H7

Roles

RoleCan Do
buyerCall services via proxy, check balance, view usage
providerRegister and manage services, view earnings
adminFull platform access

Rate Limits

TierLimit
Default60 requests / minute
Maximum300 requests / minute

Available Services

CoinSifter Demo — Sample Results

Free demo endpoint returning sample CoinSifter scan results. No Binance API key required. Test integration before upgrad...

FREE
ID: 758c1057-191e-405e-a352-7f52bcd97a82

Strategy Catalog — Browse Templates

Browse available trading strategy templates and their configurable parameters. Free to access.

FREE
ID: 0a7ab758-ee00-4141-afcd-d86d5fd1536b

AI Result Validator

Two-layer AI task validation API. Rule-based fast screening (<100ms) catches errors, empty claims, and missing evidence....

$0.01 / call 20 free
ID: 69517247-9a7d-45d7-8ba7-bee3b3cc130b

Test Echo API

A simple echo service for testing

$0.01 / call 10 free
ID: 517f8fff-cd14-483d-9f17-1262832b64a4

CoinSifter Pro API

Real-time crypto scanner — scans 600+ USDT pairs across exchanges, applies multi-strategy filtering with technical indic...

$0.1 / call 10 free
ID: 7ed931d1-57fb-4d97-8a27-8efd3dad04a4

CoinSifter — Crypto Market Scanner

AI-powered cryptocurrency market scanner. Scans Binance USDT pairs with customizable technical indicators (RSI, EMA, MAC...

$0.5 / call 5 free
ID: 6a9939cf-583b-4e6d-897f-360dcf200f59

Shorts Script Factory API

Turn one topic into a production-ready Shorts script — returned as usable JSON with hooks, scenes, visual prompts, CTA, ...

$0.79 / call
ID: 43d2d4ad-f1b2-43e4-b91c-ea366b307588

Strategy Backtest API

Run backtests with pre-built crypto trading strategies. 3 strategies: BB Squeeze (momentum), MACD Divergence (reversal),...

$2.0 / call 3 free
ID: 3c6734ed-3d9c-472c-a8dd-b190d1d4ac05

Service Discovery

GET /api/v1/services List all services

Returns all registered services with pricing info. No authentication required.

Query Parameters

ParamTypeDescription
categorystringFilter by category
querystringSearch by name/description
limitintMax results (default: 50)
offsetintPagination offset
curl https://agentictrade.io/api/v1/services?category=crypto-analysis
GET /api/v1/discover Advanced service discovery

Enhanced discovery with filtering, sorting, and tag matching.

Query Parameters

ParamTypeDescription
tagsstringComma-separated tag filter
min_pricefloatMinimum price per call
max_pricefloatMaximum price per call
sortstringSort by: price, name, created
curl "https://agentictrade.io/api/v1/discover?tags=crypto&max_price=1.0&sort=price"
GET /api/v1/discover/categories List categories

Returns available service categories with service counts.

curl https://agentictrade.io/api/v1/discover/categories

Proxy — Call Services

This is the core endpoint. Your agent sends requests here; the marketplace handles routing, payment, and usage tracking.
POST /api/v1/proxy/{service_id}/{path} Call a service

Proxies your request to the service provider. Supports GET, POST, PUT, PATCH, DELETE.

Path Parameters

ParamDescription
service_idUUID of the target service
pathThe API path on the provider (e.g., api/scan)

Response Headers

HeaderDescription
X-ACF-Usage-IdUnique usage record ID
X-ACF-AmountAmount charged (USDC)
X-ACF-Free-Tiertrue true if free tier was used
X-ACF-Latency-MsRequest latency in milliseconds

Example: CoinSifter Demo (free)

curl -H "Authorization: Bearer {key_id}:{secret}" \
  "https://agentictrade.io/api/v1/proxy/758c1057-191e-405e-a352-7f52bcd97a82/api/demo"

# Returns real-time crypto scan results

Example: CoinSifter Scanner ($0.50/call)

curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  "https://agentictrade.io/api/v1/proxy/6a9939cf-583b-4e6d-897f-360dcf200f59/api/scan"

# Triggers a full market scan with your strategy

Example: Strategy Backtest ($2.00/call)

curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  -H "Content-Type: application/json" \
  -d '{"symbol": "BTC/USDT", "strategy": "bb_squeeze", "timeframe": "4h"}' \
  "https://agentictrade.io/api/v1/proxy/3c6734ed-3d9c-472c-a8dd-b190d1d4ac05/api/backtest"

# Returns win rate, profit factor, equity curve, trade list
GET /api/v1/usage/me Your usage stats

Returns total calls, spend, and average latency for the authenticated buyer.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/usage/me

# {"buyer_id": "my-agent", "total_calls": 42, "total_spent_usd": "12.50", "avg_latency_ms": 35}

Billing & Deposits

Services are pre-paid. Deposit funds to your account, then call services.

Most services include free tier calls. You only need to deposit when free calls run out.
GET /api/v1/balance/{buyer_id} Check balance
curl https://agentictrade.io/api/v1/balance/my-agent-001

# {"buyer_id": "my-agent-001", "balance": 50.0, "total_deposited": 100.0, "total_spent": 50.0}
POST /api/v1/deposits Add funds

Creates a crypto payment invoice via NOWPayments. Supports USDT, USDC, BTC, ETH, and 300+ cryptocurrencies.

curl -X POST https://agentictrade.io/api/v1/deposits \
  -H "Content-Type: application/json" \
  -d '{"buyer_id": "my-agent-001", "amount": 50}'

# {"deposit_id": "...", "amount": 50, "status": "pending",
#  "checkout_url": "https://nowpayments.io/payment/?iid=...",
#  "message": "Pay $50 at the checkout URL..."}

After payment confirms, your balance is automatically credited via IPN webhook.

API Keys

POST /api/v1/keys Create API key

Request Body

FieldTypeRequiredDescription
owner_idstringYesYour agent/user identifier
rolestringNobuyer (default) or provider
curl -X POST https://agentictrade.io/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"owner_id": "my-trading-bot", "role": "buyer"}'

# {"key_id": "acf_...", "secret": "...", "role": "buyer", "rate_limit": 60}
# IMPORTANT: Save the secret! It cannot be retrieved later.

Provider

Endpoints for service providers to manage their services, view earnings, and track health. All require provider-role authentication.

GET /api/v1/provider/dashboard Provider overview

Returns service count, total calls, revenue, and settlement status for the authenticated provider.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/dashboard
GET /api/v1/provider/services List your services

Returns all services owned by the authenticated provider with usage stats.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/services
GET /api/v1/provider/services/{service_id}/analytics Service analytics

Detailed analytics for a specific service: total calls, revenue, success rate, daily breakdown.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/services/{service_id}/analytics
GET /api/v1/provider/earnings Earnings summary

Returns total earned, settled, pending amounts, and settlement history.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/earnings
GET /api/v1/provider/health Service health scores

Returns health scores for all your services based on latency, error rate, and uptime.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/health
POST /api/v1/provider/services/{service_id}/test Test service endpoint

Tests connectivity to your service endpoint. Returns reachability, latency, and status code.

curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/services/{service_id}/test
GET /api/v1/provider/onboarding Onboarding progress

Track your onboarding progress: API key creation, service registration, first traffic, first settlement.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/provider/onboarding

Settlements

Admin endpoints for managing provider payouts.

POST /api/v1/settlements Create settlement

Creates a new settlement for a provider. Requires admin role.

curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  -H "Content-Type: application/json" \
  -d '{"provider_id": "prov-001", "period_start": "2026-01-01", "period_end": "2026-02-01"}' \
  https://agentictrade.io/api/v1/settlements
GET /api/v1/settlements List settlements

Lists all settlements, optionally filtered by provider or status.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/settlements
PATCH /api/v1/settlements/{settlement_id}/pay Execute settlement payment

Marks a settlement as paid and triggers the on-chain transfer.

curl -X PATCH -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/settlements/{settlement_id}/pay

Referrals

Referral program endpoints for generating and tracking referral codes.

POST /api/v1/referrals/code Create referral code

Generates a unique referral code for the authenticated user.

curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/referrals/code
POST /api/v1/referrals/apply Apply referral code

Apply a referral code during registration to link accounts.

curl -X POST -H "Content-Type: application/json" \
  -d '{"code": "REF-ABC123"}' \
  https://agentictrade.io/api/v1/referrals/apply
GET /api/v1/referrals List referrals

Lists all referrals made by the authenticated user.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/referrals
GET /api/v1/referrals/stats Referral stats

Aggregated referral statistics: total referrals, conversion rate, and earnings.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/referrals/stats

Webhooks

Subscribe to real-time event notifications.

POST /api/v1/webhooks Create webhook

Registers a new webhook endpoint to receive event notifications.

Request Body

FieldTypeDescription
urlstringHTTPS endpoint to receive events
eventsarrayEvent types to subscribe: usage.created, settlement.completed, etc.
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://myapp.com/webhooks", "events": ["usage.created"]}' \
  https://agentictrade.io/api/v1/webhooks
GET /api/v1/webhooks List webhooks

Lists all registered webhooks for your account.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/webhooks
DELETE /api/v1/webhooks/{webhook_id} Delete webhook

Removes a webhook subscription.

curl -X DELETE -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/webhooks/{webhook_id}

Audit

Security audit endpoints for tracking platform activity. Requires admin role.

GET /api/v1/admin/audit Audit log

Returns the security audit log with filtering options.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/admin/audit
GET /api/v1/admin/audit/summary Audit summary

Aggregated audit statistics: event counts by type and time period.

curl -H "Authorization: Bearer {key_id}:{secret}" \
  https://agentictrade.io/api/v1/admin/audit/summary

Error Responses

All API errors return a consistent JSON structure with an appropriate HTTP status code.

Common Status Codes

Status Code Meaning Description
400Bad RequestInvalid parameters or malformed request body.
401UnauthorizedMissing or invalid API key.
403ForbiddenInsufficient permissions for the requested resource.
404Not FoundThe requested resource does not exist.
429Too Many RequestsRate limit exceeded. Wait and retry.
500Internal Server ErrorUnexpected server error. Contact support if persistent.

Error Response Format

Every error response includes an error code, a human-readable message, and the HTTP status:

{
  "error": "unauthorized",
  "message": "Invalid API key. Check your key_id and secret.",
  "status": 401
}

Fields:

Field Type Description
errorstringMachine-readable error code (e.g. "unauthorized", "bad_request", "rate_limited").
messagestringHuman-readable description of what went wrong.
statusintHTTP status code (matches the response status).

Rate Limit Headers

Every response includes rate limit headers so your agent can throttle requests proactively:

Header Description Example
X-RateLimit-LimitMaximum number of requests allowed per window.60
X-RateLimit-RemainingNumber of requests remaining in the current window.42
X-RateLimit-ResetUnix timestamp (seconds) when the rate limit window resets.1711324800

When a 429 response is returned, use these headers to determine when to retry:

# Example 429 response headers
HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1711324800
Content-Type: application/json

{
  "error": "rate_limited",
  "message": "Rate limit exceeded. Retry after 1711324800.",
  "status": 429
}

Python SDK

Install the SDK:

# Install from PyPI
pip install agentictrade

Use the bundled SDK for seamless integration:

from sdk.client import ACFClient

client = ACFClient(
    base_url="https://agentictrade.io",
    api_key="acf_xxx:secret_yyy",
)

# Discover services
services = client.list_services(category="crypto-analysis")

# Call a service through the proxy
result = client.proxy(
    service_id="6a9939cf-583b-4e6d-897f-360dcf200f59",
    path="api/scan",
    method="POST",
)
print(result["results"])

Agent Integration Guide

How an autonomous agent uses AgenticTrade:

Agent discovers available services

GET /api/v1/discover — finds services matching its task.

Agent checks its balance

GET /api/v1/balance/{buyer_id} — ensures sufficient funds.

Agent calls the service

POST /api/v1/proxy/{service_id}/{path} — marketplace handles payment.

Agent processes the response

Response body from the provider + billing headers from the marketplace.

Pricing

ServicePriceFree TierPayment
CoinSifter Demo — Sample Results FREE Always free Crypto (100+ coins)
Strategy Catalog — Browse Templates FREE Always free Crypto (100+ coins)
AI Result Validator $0.01 USDC 20 calls Crypto (100+ coins)
Test Echo API $0.01 USDC 10 calls Crypto (100+ coins)
CoinSifter Pro API $0.1 USDC 10 calls Crypto (100+ coins)
CoinSifter — Crypto Market Scanner $0.5 USDC 5 calls Crypto (100+ coins)
Shorts Script Factory API $0.79 USDC Always free Crypto (100+ coins)
Strategy Backtest API $2.0 USDC 3 calls Crypto (100+ coins)
Platform commission: 0% for month 1, 5% for months 2–3, 10% after (capped). Deposits accepted via NOWPayments (USDT, USDC, BTC, ETH, and 300+ cryptocurrencies).
© 2025-2026 AgenticTrade by JudyAI Lab. All rights reserved.