REST API Overview & Authentication

Raw MD
Complete developer REST API overview, base URL, request methods, and API key authentication headers.

Endpoint & Base URL

Botlify Cloud exposes a unified REST API allowing external applications, CI/CD systems, and scripts to manage bots, files, crons, and databases:

Base URL
https://botlify.cloud/user_api.php

All endpoints accept both GET and POST requests (supporting application/json, multipart/form-data, and application/x-www-form-urlencoded).

Authentication Methods

Every request requires your personal API key (obtainable in Dashboard → Account & API Key):

  • Method 1: Custom Header (Recommended)
    X-API-KEY: fbh_usr_YOUR_KEY
  • Method 2: Bearer Token
    Authorization: Bearer fbh_usr_YOUR_KEY
  • Method 3: Query Parameter
    https://botlify.cloud/user_api.php?api_key=fbh_usr_YOUR_KEY&action=...

Health Check (Ping)

Ping Request
curl -s "https://botlify.cloud/user_api.php?action=ping&api_key=YOUR_API_KEY"