API Key Management

Your API Key

Loading...

How to Use API Key

Endpoint:

POST /api/v1/share

Authentication:

Include your API key in the request header:

X-API-Key: your_api_key_here

Or as query parameter:

?apikey=your_api_key_here

Request Body (JSON):

{
  "cookie": "your_facebook_cookie_or_appstate",
  "url": "https://www.facebook.com/post_url",
  "amount": 100,
  "interval": 10
}

Example cURL Request:

curl -X POST https://yourapp.replit.app/api/v1/share \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "cookie": "your_cookie",
    "url": "https://www.facebook.com/...",
    "amount": 100,
    "interval": 10
  }'

Python Example:

import requests

api_key = "your_api_key_here"
url = "https://yourapp.replit.app/api/v1/share"

headers = {
    "Content-Type": "application/json",
    "X-API-Key": api_key
}

data = {
    "cookie": "your_facebook_cookie_or_appstate",
    "url": "https://www.facebook.com/post_url",
    "amount": 100,
    "interval": 10
}

response = requests.post(url, json=data, headers=headers)
print(response.json())

Node.js Example:

const axios = require('axios');

const apiKey = 'your_api_key_here';
const url = 'https://yourapp.replit.app/api/v1/share';

const data = {
  cookie: 'your_facebook_cookie_or_appstate',
  url: 'https://www.facebook.com/post_url',
  amount: 100,
  interval: 10
};

axios.post(url, data, {
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': apiKey
  }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error('Error:', error.response?.data || error.message);
});

Important Security Notice

  • • Keep your API key secret and never share it publicly
  • • Generating a new key will revoke your previous key immediately
  • • Your API key has the same permissions as your account
  • • Free accounts are limited to 500 shares per session