Skip to main contentSkip to navigation
[email protected]
Client AreaSupport
Hosting Mammoth
HostingMammothYour Data, Our Responsibility
Home
Solutions
Hosting Services
Store
Pricing
About
Blog
API
Contact

Stay Ahead of the Curve

Get the latest insights on cybersecurity, AI innovations, and enterprise data solutions delivered to your inbox.

Hosting Mammoth
HostingMammothEnterprise Solutions

Enterprise-grade data solutions. Hosting, recovery, cybersecurity, and AI-powered services for businesses worldwide.

[email protected]
Sun - Fri, 9:00am - 5:00pm

Services

  • Cloud Hosting
  • Data Recovery
  • Cybersecurity
  • Legal Support
  • MSP Services
  • Web Development
  • AI Services
  • Free Server Migration

Hosting

  • VPS Hosting (NVMe SSD)
  • VDS Hosting (NVMe)
  • Storage VPS (High SSD)
  • GPU Servers
  • Managed Services
  • Cloud Firewall
  • Load Balancer
  • One-Click Apps
  • n8n Hosting
  • Object Storage
  • FAQ

Company

  • Store
  • Pricing
  • About Us
  • Locations
  • Blog
  • Testimonials
  • Contact
  • Affiliate Program
  • White-Label
  • Terms of Service
  • Privacy Policy
  • Browser Cookies
  • SLA

Support

  • Client Area
  • Submit Ticket
  • Knowledge Base
  • Server Status
  • API Documentation

© 2026 Hosting Mammoth. All rights reserved.

Knowledge Base
Getting StartedAccount ManagementVPS HostingGPU ServersStorage VPSCloud FirewallLoad BalancerServer ManagementBilling & PaymentsSupport & TicketsAffiliate ProgramReseller ProgramMarketplace & Appsn8n HostingManaged ServicesServer MigrationAPI & DevelopersSecurityTroubleshootingGlossaryInstall Guides
  1. Home
  2. /
  3. Support
  4. /
  5. API & Developers
  6. /
  7. Api Servers
GUIDEAPI & Developers

Server Management API

4 min read

The Server Management API lets you control every aspect of your Data Mammoth servers programmatically. This guide covers all available endpoints for server lifecycle management, power actions, configuration, and monitoring.

Base URL

All server endpoints are prefixed with:

text
https://api.datamammoth.com/v1/servers

List All Servers

Retrieve a list of all servers in your account.

bash
GET /v1/servers

Query Parameters:

ParameterTypeDescription
statusstringFilter by status: running, stopped, provisioning
regionstringFilter by data center region
tagstringFilter by tag/label
pageintegerPage number (default: 1)
per_pageintegerResults per page (default: 25, max: 100)
Example:

bash
curl -X GET "https://api.datamammoth.com/v1/servers?status=running" \
  -H "Authorization: Bearer dm_key_abc123def456"

Get Server Details

Retrieve detailed information about a specific server.

bash
GET /v1/servers/{server_id}

Example:

bash
curl -X GET "https://api.datamammoth.com/v1/servers/srv_abc123" \
  -H "Authorization: Bearer dm_key_abc123def456"

Response includes: Server ID, name, status, IP addresses, plan details, OS, resource allocation, tags, and creation date.

Create a Server

Provision a new server.

bash
POST /v1/servers

Request Body:

json
{
  "name": "web-production",
  "plan": "vps-standard",
  "region": "us-east",
  "os": "ubuntu-24.04",
  "ssh_keys": ["key_12345"],
  "hostname": "web01.example.com",
  "tags": ["production", "web"],
  "backups": true
}

Required fields: plan, region, os Optional fields: name, ssh_keys, hostname, tags, backups

Example:

bash
curl -X POST "https://api.datamammoth.com/v1/servers" \
  -H "Authorization: Bearer dm_key_abc123def456" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-production",
    "plan": "vps-standard",
    "region": "us-east",
    "os": "ubuntu-24.04"
  }'

Server Actions

Perform power and management actions on a server.

bash
POST /v1/servers/{server_id}/actions

Available Actions:

ActionDescription
startPower on a stopped server
stopGraceful shutdown
restartGraceful reboot
force_stopImmediate power off
force_restartImmediate hard reboot
rebuildReinstall the OS (destroys data)
Example — Restart a server:

bash
curl -X POST "https://api.datamammoth.com/v1/servers/srv_abc123/actions" \
  -H "Authorization: Bearer dm_key_abc123def456" \
  -H "Content-Type: application/json" \
  -d '{"action": "restart"}'

Update Server

Update server properties (name, tags, hostname).

bash
PATCH /v1/servers/{server_id}

Example:

bash
curl -X PATCH "https://api.datamammoth.com/v1/servers/srv_abc123" \
  -H "Authorization: Bearer dm_key_abc123def456" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-staging",
    "tags": ["staging", "web"]
  }'

Delete a Server

Permanently delete a server and all its data.

bash
DELETE /v1/servers/{server_id}

Warning: This action is irreversible. All data on the server is permanently deleted.

bash
curl -X DELETE "https://api.datamammoth.com/v1/servers/srv_abc123" \
  -H "Authorization: Bearer dm_key_abc123def456"

Server Metrics

Retrieve performance metrics for a server.

bash
GET /v1/servers/{server_id}/metrics

Query Parameters:

ParameterTypeDescription
metricstringcpu, ram, disk, network, or all
periodstring1h, 6h, 24h, 7d, 30d
Example:

bash
curl -X GET "https://api.datamammoth.com/v1/servers/srv_abc123/metrics?metric=cpu&period=24h" \
  -H "Authorization: Bearer dm_key_abc123def456"

Server SSH Keys

Manage SSH keys for a specific server.

bash
# List SSH keys on a server
GET /v1/servers/{server_id}/ssh-keys

Add an SSH key

POST /v1/servers/{server_id}/ssh-keys

Remove an SSH key

DELETE /v1/servers/{server_id}/ssh-keys/{key_id}

Server Networking

Manage IP addresses and reverse DNS.

bash
# List IPs
GET /v1/servers/{server_id}/ips

Set reverse DNS

PUT /v1/servers/{server_id}/ips/{ip_id}/rdns

Available Plans and Regions

List available plans and regions for server creation.

bash
# List plans
GET /v1/plans

List regions

GET /v1/regions

List available OS images

GET /v1/images

What to Do Next

  • Billing API — Manage invoices and payments.
  • Webhooks — Get notified of server events.
  • API Error Codes — Handle errors properly.
  • API Code Examples — Python — Server management in Python.

Was this article helpful?

← Back to API & DevelopersBrowse all categories →

Still have questions?

Contact Support →Submit a Ticket