> ## Documentation Index
> Fetch the complete documentation index at: https://kmerhosting.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# REST API

> Call KmerHosting Developer API endpoints with a Bearer API key.

The REST API uses JSON for normal resources and can return a stream for AI Agent messages.

<Frame caption="Use the generated reference for request schemas, responses, and supported methods.">
  <img src="https://mintcdn.com/kmerhosting-a736a8a9/qmzUGdL1AajWuhXn/images/screenshots/developer-api-reference.png?fit=max&auto=format&n=qmzUGdL1AajWuhXn&q=85&s=d4a41e1846d2d60aa13b16c12edc28f4" alt="Use the generated reference for request schemas, responses, and supported methods." width="1600" height="900" data-path="images/screenshots/developer-api-reference.png" />
</Frame>

## Example request

```bash theme={null}
curl --request GET \
  --url https://kmerhosting.com/api/v1/sdk/account \
  --header "Authorization: Bearer $KMERHOSTING_API_KEY" \
  --header "Accept: application/json"
```

## Common endpoint families

```text theme={null}
GET    /account
GET    /services
GET    /services/{type}/{serviceId}
PATCH  /services/{type}/{serviceId}/auto-renew
GET    /domains
GET    /invoices
GET    /orders
GET    /notifications
PATCH  /notifications/{notificationId}
DELETE /notifications/{notificationId}
POST   /ai-agent/chat-messages
GET    /ai-agent/conversations
POST   /ai-agent/conversations
DELETE /ai-agent/conversations/{conversationId}
```

## Ownership enforcement

The API must return only resources that belong to the key owner. It must not expose plaintext passwords, VPS root credentials, DirectAdmin passwords, KYC documents, payment secrets, or administrative resources.
