API Documentation

Complete documentation for integrating with the Cash for Ads API. Build powerful ad monetization features with our enterprise-grade platform.

Enterprise-Grade API

Built for scale, security, and developer experience

JWT Authentication

Secure authentication using JSON Web Tokens with refresh token support

Real-time Processing

Lightning-fast API responses with sub-second latency

Anti-fraud Protection

Built-in fraud detection with device fingerprinting and velocity checks

RESTful Design

Clean, predictable REST API following industry best practices

Core Endpoints

Key API endpoints for user management and ad monetization

POST/auth/signup

Create a new user account

POST/auth/login

Authenticate and receive JWT token

GET/ads

List all available ads

POST/api/ads/:id/watch

Start watching an ad (returns uniqueWatchKey)

POST/api/ads/:id/confirm

Confirm ad watch with uniqueWatchKey

GET/api/users/:id/wallet

Get wallet balance and transaction history

Quick Start Examples

Get started in minutes with these code examples

javascript

// Initialize API client
const API_URL = 'https://api.adrevtechnologies.com';
const API_KEY = 'your-api-key-here';

// Authenticate
const response = await fetch(`${API_URL}/auth/login`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    email: 'user@example.com',
    password: 'password123',
  }),
});

const { token } = await response.json();

// Make authenticated request
const ads = await fetch(`${API_URL}/ads`, {
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const adsData = await ads.json();

python

import requests

API_URL = 'https://api.adrevtechnologies.com'
API_KEY = 'your-api-key-here'

# Authenticate
response = requests.post(
    f'{API_URL}/auth/login',
    json={
        'email': 'user@example.com',
        'password': 'password123'
    }
)

token = response.json()['token']

# Make authenticated request
ads = requests.get(
    f'{API_URL}/ads',
    headers={'Authorization': f'Bearer {token}'}
)

ads_data = ads.json()

curl

# Authenticate
curl -X POST https://api.adrevtechnologies.com/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"user@example.com","password":"password123"}'

# Make authenticated request
curl https://api.adrevtechnologies.com/ads \
  -H "Authorization: Bearer YOUR_TOKEN_HERE"

Authentication

All API requests require authentication using JWT tokens

1. Obtain Access Token

Send a POST request to /auth/login with your credentials to receive a JWT token.

2. Include in Requests

Add the token to the Authorization header:Authorization: Bearer YOUR_TOKEN

3. Token Refresh

Tokens expire after 24 hours. Use the refresh token endpoint to obtain a new access token without re-authenticating.

Rate Limiting

API rate limits vary by partner tier

Free Tier

1,000 requests/month

1K

Pro Tier

100,000 requests/month

100K

Enterprise Tier

Unlimited requests

Ready to start building?

Get API access today and start integrating Cash for Ads into your application.