Message Format
The Fast API uses JSON-formatted messages for all communication.
Request Format
All requests follow a consistent structure:
Code
Field | Type | Required | Description |
---|---|---|---|
id | string | Yes | Unique identifier for matching request/response |
method | string | Yes | The method to invoke |
params | object | array | No | Method parameters (varies by method) |
Response Format
Successful responses include the request ID and result:
Code
Field | Type | Description |
---|---|---|
id | string | Matches the request ID |
status | number | HTTP status code |
result | any | Method-specific response data |
Error Response
Error responses include error details:
Code
Field | Type | Description |
---|---|---|
id | string | Matches the request ID |
status | number | HTTP status code |
error.code | string | Internal error code |
error.msg | string | Human-readable error message |
Last modified on