Overview

The RoboHost API lets you programmatically manage websites, domains, SSL certificates, optimization jobs, and support. Every response is JSON.

Base URL: https://robohost.ai/api/

Live endpoints

EndpointAuthActions
api/contact.phpPublicPOST — contact form
api/domains.phpClient sessionsearch, register, transfer, dns-records, renew
api/ssl.phpClient sessionlist, issue, renew, revoke
api/hosting.phpClient sessionplans, order, renew, suspend, details
api/products.phpAdmin sessiontest, catalog, sync, pricing
client/api/websites.phpClient sessionlist, add, files, upload, mkdir, delete-file, save-settings, optimize, status

Actions are passed via ?action= query param or a POST action field.

Authentication

API endpoints use your dashboard session — log in at https://robohost.ai/login and include the session cookie in requests. Mutating calls require a CSRF token.

// 1. Log in to get a session cookie
POST https://robohost.ai/login
 
// 2. Call an endpoint with the cookie + CSRF token
GET https://robohost.ai/api/domains.php?action=search&domain=example
Cookie: PHPSESSID=<session>

Responses: {success: true, data: {...}} or {success: false, error: "..."}. Unauthenticated calls return 401, admin-only 403.

Websites

Manage your hosted websites programmatically.

GET client/api/websites.php?action=list

List all websites in your account.

POST client/api/websites.php?action=add

Add a new website to your account.

{
  "domain": "example.com",
  "plan_id": 2,
  "auto_optimize": true
}
GET client/api/websites.php?action=status&id={id}

Get details of a specific website.

POST client/api/websites.php?action=delete-file

Remove a website from your account.

Domains

Search, register, and manage domain names via the API. Powered by ResellerClub.

GET api/domains.php?action=search&domain=example&tlds=com,net,org

Check domain availability across multiple TLDs.

POST api/domains.php?action=register

Register a new domain name.

GET api/domains.php?action=dns&id={id}

Get DNS records for a domain.

Optimization

Trigger and monitor speed optimization jobs.

POST client/api/websites.php?action=optimize&id={id}

Trigger a full optimization for a website. Options: speed, seo, images, cache, full.

GET client/api/websites.php?action=status&id={id}

Check the status of an optimization job.

SEO

Access AI-powered SEO analysis and recommendations.

GET client/seo?site={id}

Get SEO scores and recommendations for all pages.

GET client/api/websites.php?action=optimize&id={id}

Get tracked keywords and their rankings.

SSL Certificates

Issue and manage SSL certificates for your domains.

POST api/ssl.php?action=order

Issue a new SSL certificate for a domain.

GET api/ssl.php?action=list

Get SSL certificate status and details.

Billing

Access invoices and subscription information.

GET client/billing

List all invoices for your account.

GET client/billing

Get current subscription details.

Error Handling

The API uses standard HTTP status codes. Error responses include a JSON body with details.

{
  "error": "validation_error",
  "message": "The domain field is required.",
  "status": 422
}
CodeMeaning
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
422Validation Error
429Rate Limited

Rate Limits

API requests are rate-limited to ensure fair usage across all users.

PlanRequests/minRequests/day
Starter6010,000
Professional12050,000
Enterprise300Unlimited