> For the complete documentation index, see [llms.txt](https://k4k3ru.gitbook.io/k4k3ru-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://k4k3ru.gitbook.io/k4k3ru-docs/api.md).

# API

K4K3RU provides JSON-RPC request-response operations and secure WebSocket connections through a single public API endpoint.

## Endpoints

| Interface           | Endpoint                  |
| ------------------- | ------------------------- |
| JSON-RPC            | `https://api.k4k3ru.com/` |
| WebSocket           | `wss://api.k4k3ru.com/`   |
| MCP Streamable HTTP | `https://mcp.k4k3ru.com/` |

Use HTTPS for JSON-RPC requests and WSS for real-time subscriptions. Unencrypted HTTP and WebSocket connections are not public API interfaces.

MCP-compatible clients can use the separate authenticated MCP endpoint. See [MCP](/k4k3ru-docs/mcp.md) for connection and tool details.

See [JSON-RPC Format](/k4k3ru-docs/api/json-rpc.md) for the common request and response envelopes.

See [API Request Authentication](/k4k3ru-docs/api/authentication.md) to sign requests for protected methods.

## API Domains

The API reference is organized by capability domain:

### CRM

Create and manage accounts, credentials, authentication, and related account capabilities.

See [CRM API](/k4k3ru-docs/api/crm.md).

### Payment

Create and manage payments and related payment workflows.

See [Payment API](/k4k3ru-docs/api/payment.md).

### Market Hub

Access normalized financial market data and real-time subscriptions.

See [Market Hub API](/k4k3ru-docs/api/market-hub.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://k4k3ru.gitbook.io/k4k3ru-docs/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
