API Documentation

DEVELOPER RESOURCES

API Documentation

Build automated workflows around your VPS services with a structured API interface for provisioning, service management, networking and account-level operations.

API Availability API access depends on the applicable lorihost Store service and account configuration.
01

Overview

The lorihost Store API is intended to provide programmatic access to supported VPS and account operations.

API functionality may vary according to the infrastructure platform, VPS product, account configuration and services available to your account.

VPS Management Access supported server management operations.
Automation Integrate supported operations into your workflows.
Infrastructure Work with supported server and network resources.
Developer Ready Designed for scripts, applications and automation systems.
02

Authentication

API requests should be authenticated using the credentials or authentication mechanism provided for your account.

Authentication details, available credentials and permitted API scopes may depend on your account and the API service enabled for your environment.

Example Request Header HTTP
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Security Notice

Never publish API credentials in public repositories, client-side JavaScript, screenshots or publicly accessible files.

03

Base API Structure

API integrations typically use HTTPS requests and JSON-formatted request and response data.

Request Structure JSON
{
  "action": "ACTION_NAME",
  "resource": "RESOURCE_ID",
  "parameters": {}
}

The exact production endpoint, available resources and supported actions should be obtained from the API service enabled for your account.

04

VPS Management

Depending on the enabled API functionality, VPS-related operations may include actions such as:

GET
List VPS Services /vps Retrieve VPS resources available to the authenticated account.
GET
Get VPS Details /vps/{id} Retrieve supported information for a specific VPS.
POST
Create VPS /vps Create a VPS when provisioning through the API is supported.
POST
Perform VPS Action /vps/{id}/actions Execute supported lifecycle actions for a VPS.
05

Network Operations

Supported network information may include details associated with the VPS service such as:

  • IPv4 address information.
  • Network configuration.
  • Bandwidth information.
  • Network interface information.
  • Service connectivity information where supported.

Network operations that affect external systems or third-party infrastructure remain subject to the lorihost Store Acceptable Use Policy.

06

Operating Systems

Supported operating systems may vary according to VPS plan, infrastructure location and current availability.

Ubuntu 20.04 Ubuntu 22.04 Ubuntu 24.04 Debian 11 Debian 12 AlmaLinux 8 AlmaLinux 9 Rocky Linux 8 Rocky Linux 9 Fedora 41 Fedora 42 CentOS 7 Windows Server 2019 Windows Server 2022 Windows Server 2025
07

Service Status

A VPS status response may provide information about the current state of a service when supported.

Example Response JSON
{
  "id": "vps_12345",
  "status": "running",
  "ipv4": "203.0.113.10"
}

Example identifiers and addresses shown in this documentation are illustrative and are not actual customer infrastructure.

08

Errors

API clients should handle unsuccessful HTTP responses and inspect the response body for additional error information.

Status Meaning
400 Invalid or incomplete request.
401 Authentication is missing or invalid.
403 The requested operation is not permitted.
404 The requested resource was not found.
429 Request rate limit may have been exceeded.
500 Unexpected server-side error.
09

API Security

API credentials provide access to potentially sensitive account and infrastructure operations. Customers are responsible for protecting their credentials.

  • Use HTTPS for API communication.
  • Store credentials securely.
  • Do not expose tokens in frontend applications.
  • Do not commit credentials to public repositories.
  • Rotate credentials when compromise is suspected.
  • Use the minimum required permissions where supported.
  • Monitor automated systems for unexpected activity.
Compromised Credentials

If you believe an API credential has been exposed or compromised, stop using it and contact support for appropriate assistance.

10

Rate Limits

API requests may be subject to rate limits, concurrency limits or other safeguards designed to maintain service stability.

Applicable limits may depend on the API service, account configuration and infrastructure.

Clients should implement reasonable retry logic and avoid continuously repeating failed requests.

11

API Examples

The following examples illustrate common integration patterns. They are documentation examples and should be adapted to the API endpoint and authentication method actually provided to your account.

cURL Example
curl -X GET "https://api.example.com/v1/vps" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
JavaScript Example
const response = await fetch(
    "https://api.example.com/v1/vps",
    {
        headers: {
            "Authorization": "Bearer YOUR_API_TOKEN",
            "Accept": "application/json"
        }
    }
);

const data = await response.json();
Python Example
import requests

response = requests.get(
    "https://api.example.com/v1/vps",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Accept": "application/json"
    }
)

data = response.json()
12

Support

If you need assistance with API access, authentication, supported operations or integration requirements, contact the lorihost Store support team.

When contacting support about an API issue, include the relevant request method, endpoint, timestamp, HTTP status code and error message where available. Never include your API token or other secret credentials.

Contact Support →
BUILD WITH LORIHOST

Automate Your VPS Workflow

Connect your applications and automation workflows with supported lorihost Store API services.

Discuss API Access →