# REST API Overview & Authentication

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

**Category:** REST API Reference  
**URL:** https://docs.botlify.cloud/?page=api-auth  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

## 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:

      
```php
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 TokenAuthorization: Bearer fbh_usr_YOUR_KEY

        
- Method 3: Query Parameterhttps://botlify.cloud/user_api.php?api_key=fbh_usr_YOUR_KEY&action=...

      

      

## Health Check (Ping)

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