Skip to content

API reference. Every endpoint.

Base URL, auth, pagination, errors and all 13 resources.

Base URL and versions

Every product will share one REST API at https://api.qooal.com/v1. JSON in, JSON out, with the version in the path.

Breaking changes ship as a new version. New fields can appear at any time, so ignore fields you do not know. Money is integer cents in USD. Timestamps are ISO 8601 in UTC.

GET /servers
curl https://api.qooal.com/v1/servers \
  -H "Authorization: Bearer $QOOAL_API_KEY"

Authentication

Send a key in the Authorization: Bearer header. Every call lands in the audit log.

  • Scope it to the organization or to projects.
  • Grant read or write per product.
  • Add an expiry date and an IP allowlist.
POST /api-keys
curl https://api.qooal.com/v1/api-keys \
  -H "Authorization: Bearer $QOOAL_ADMIN_KEY" \
  -d '{
    "name": "ci-deploy",
    "scope": { "project_ids": ["prj_prod"] },
    "permissions": { "cloud": "write" },
    "expires_at": "2027-03-01"
  }'

Pagination

Cursor pagination: ?limit=50&cursor=…; responses include next_cursor (null on the last page). Limit is 100 at most.

GET /servers?limit=2
{
  "data": [
    { "id": "srv_8f2k1m", "name": "web-1" },
    { "id": "srv_2b7q0x", "name": "api-sg" }
  ],
  "next_cursor": "c_srv_2b7q0x"
}

Errors

The API and the dashboard share one set of error codes. Every response carries a request id to quote when you contact support.

422 response
{
  "error": {
    "code": "invalid",
    "message": "The request failed validation.",
    "field_errors": {
      "plan": "Choose one of q1, q2, q4, q8."
    },
    "request_id": "req_7Hn2c91"
  }
}
Error codes
CodeHTTPMeaning
not_found404The resource does not exist or is not visible to this key.
invalid422The request failed validation. field_errors lists each field.
forbidden403The key or role lacks the permission for this action.
conflict409The resource changed or is in a state that blocks this action.
insufficient_funds402The wallet or spend cap does not cover this action.

Idempotency

Send Idempotency-Key on every POST; a retry with the same key returns the first result.

Keys are kept for 24 hours in the preview design. Reusing a key with a different body returns conflict.

POST /servers
curl https://api.qooal.com/v1/servers \
  -H "Authorization: Bearer $QOOAL_API_KEY" \
  -H "Idempotency-Key: deploy-web-1" \
  -d '{
    "name": "web-1",
    "region": "us-east",
    "plan": "q2",
    "image": "ubuntu-24.04"
  }'

Rate limits

Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. Limits per key are published before launch.

Response headers
HTTP/1.1 200 OK
RateLimit-Limit: 600
RateLimit-Remaining: 597
RateLimit-Reset: 42
Request-Id: req_7Hn2c91

Resources

Open a resource for its endpoints and an example object.

Servers

/servers

Qooal Cloud. Cloud VPS lifecycle: create, power, resize, rebuild and delete.

  • GET/serversList servers
  • POST/serversCreate a server
  • GET/servers/{id}Get a server
  • PATCH/servers/{id}Update a server
  • DELETE/servers/{id}Delete a server
  • POST/servers/{id}/actionsPower on, power off, reboot, rescue
Servers object
{
  "id": "srv_8f2k1m",
  "name": "web-1",
  "status": "running",
  "region": "us-east",
  "plan": "q2",
  "image": "ubuntu-24.04",
  "ipv4": "203.0.113.24",
  "project": "prj_prod",
  "monthly_cost": 2200
}

Volumes

/volumes

Qooal Cloud. Block storage you attach to servers in the same region.

  • GET/volumesList volumes
  • POST/volumesCreate a volume
  • GET/volumes/{id}Get a volume
  • PATCH/volumes/{id}Update a volume
  • DELETE/volumes/{id}Delete a volume
  • POST/volumes/{id}/attachAttach to a server
Volumes object
{
  "id": "vol_3hd91a",
  "name": "db-data",
  "size_gb": 100,
  "region": "sg-1",
  "server_id": "srv_8f2k1m",
  "status": "attached"
}

Firewalls

/firewalls

Qooal Cloud. Inbound and outbound rules applied to servers or tags.

  • GET/firewallsList firewalls
  • POST/firewallsCreate a firewall
  • GET/firewalls/{id}Get a firewall
  • PATCH/firewalls/{id}Update a firewall
  • DELETE/firewalls/{id}Delete a firewall
Firewalls object
{
  "id": "fw_web",
  "name": "web",
  "rules": [
    {
      "direction": "inbound",
      "protocol": "tcp",
      "ports": "443",
      "sources": [
        "0.0.0.0/0",
        "::/0"
      ]
    }
  ],
  "applied_to": {
    "tags": [
      "web"
    ]
  }
}

Domains

/domains

Domains and DNS. Connected and registered domains with their nameserver status.

  • GET/domainsList domains
  • POST/domainsCreate a domain
  • GET/domains/{id}Get a domain
  • PATCH/domains/{id}Update a domain
  • DELETE/domains/{id}Delete a domain
Domains object
{
  "id": "dom_acme",
  "name": "acme.example",
  "source": "external",
  "status": "active",
  "used_by": [
    "cloud",
    "mail"
  ]
}

DNS records

/domains/{domain}/records

Domains and DNS. A, AAAA, CNAME, MX, TXT, CAA, SRV and NS records on Qooal DNS.

  • GET/domains/{domain}/recordsList records
  • POST/domains/{domain}/recordsCreate a record
  • GET/domains/{domain}/records/{id}Get a record
  • PATCH/domains/{domain}/records/{id}Update a record
  • DELETE/domains/{domain}/records/{id}Delete a record
DNS records object
{
  "id": "rec_a1",
  "type": "A",
  "name": "@",
  "value": "203.0.113.24",
  "ttl": 3600
}

Stores

/stores

Qooal Mart. Qooal Mart storefronts and their status.

  • GET/storesList stores
  • POST/storesCreate a store
  • GET/stores/{id}Get a store
  • PATCH/stores/{id}Update a store
  • DELETE/stores/{id}Delete a store
Stores object
{
  "id": "sto_north",
  "name": "Northwind Goods",
  "status": "password_protected",
  "domain": "northwind.qomart.store",
  "currency": "USD"
}

Contacts

/contacts

Qooal Business. CRM contacts with lifecycle stage and consent.

  • GET/contactsList contacts
  • POST/contactsCreate a contact
  • GET/contacts/{id}Get a contact
  • PATCH/contacts/{id}Update a contact
  • DELETE/contacts/{id}Delete a contact
Contacts object
{
  "id": "con_7a2",
  "first_name": "Sam",
  "last_name": "Lee",
  "email": "sam@example.com",
  "lifecycle": "qualified",
  "marketing_consent": true
}

Deals

/deals

Qooal Business. Pipeline deals; moving a deal changes its stage.

  • GET/dealsList deals
  • POST/dealsCreate a deal
  • GET/deals/{id}Get a deal
  • PATCH/deals/{id}Update a deal
  • DELETE/deals/{id}Delete a deal
  • POST/deals/{id}/moveMove to a stage
Deals object
{
  "id": "deal_91",
  "name": "Annual hosting",
  "value": 480000,
  "stage": "proposal",
  "close_date": "2027-01-15"
}

Tasks

/tasks

Qooal Business. Tracker tasks in spaces, keyed like WEB-123.

  • GET/tasksList tasks
  • POST/tasksCreate a task
  • GET/tasks/{id}Get a task
  • PATCH/tasks/{id}Update a task
  • DELETE/tasks/{id}Delete a task
Tasks object
{
  "id": "tsk_1",
  "key": "WEB-123",
  "title": "Point the domain at web-1",
  "status": "in_progress",
  "assignee": "usr_alex"
}

Mailboxes

/mailboxes

Qooal Mail. Custom-domain mailboxes and their quota.

  • GET/mailboxesList mailboxes
  • POST/mailboxesCreate a mailbox
  • GET/mailboxes/{id}Get a mailbox
  • PATCH/mailboxes/{id}Update a mailbox
  • DELETE/mailboxes/{id}Delete a mailbox
Mailboxes object
{
  "id": "mbx_hi",
  "address": "hello@acme.example",
  "quota_gb": 10,
  "used_gb": 1.2,
  "status": "active"
}

Invoices

/invoices

Billing. Monthly invoices with line items by product and project.

  • GET/invoicesList invoices
  • GET/invoices/{id}Get an invoice
Invoices object
{
  "id": "inv_2026_11",
  "number": "Q-2026-0011",
  "status": "paid",
  "total": 8640,
  "currency": "USD"
}

API keys

/api-keys

Qooal Platform. Scoped keys: org or projects, per-product read or write, expiry and IP allowlist.

  • GET/api-keysList API keys
  • POST/api-keysCreate an API key
  • GET/api-keys/{id}Get an API key
  • DELETE/api-keys/{id}Delete an API key
API keys object
{
  "id": "key_ci",
  "name": "ci-deploy",
  "prefix": "qk_live_7Hn2",
  "scope": {
    "project_ids": [
      "prj_prod"
    ]
  },
  "permissions": {
    "cloud": "write",
    "domains": "read"
  },
  "expires_at": "2027-03-01"
}

Webhooks

/webhooks

Qooal Platform. Signed event deliveries with retries.

  • GET/webhooksList webhooks
  • POST/webhooksCreate a webhook
  • GET/webhooks/{id}Get a webhook
  • PATCH/webhooks/{id}Update a webhook
  • DELETE/webhooks/{id}Delete a webhook
Webhooks object
{
  "id": "wh_1",
  "url": "https://example.com/hooks/qooal",
  "events": [
    "server.created",
    "invoice.paid"
  ],
  "status": "enabled"
}

Webhook events

Events arrive as signed POST requests to your endpoint, retried with backoff until you answer with a 2xx. Check the Qooal-Signature header before you trust the body.

Each event has a stable id, so you can drop duplicates.

server.created event
{
  "id": "evt_4k9d2m",
  "type": "server.created",
  "created_at": "2027-01-12T09:30:00Z",
  "organization": "org_example",
  "data": {
    "id": "srv_8f2k1m",
    "name": "web-1",
    "region": "us-east",
    "status": "provisioning"
  }
}

Shape the API before it ships.