# HTTP

SWQoS HTTP routes for raw transactions and bundles, health checks and tip floor snapshots

Source: https://zerocopy.sh/docs/reference/http

Use the same [hosts and ports](/docs/swqos/endpoints) as JSON-RPC. Authenticate with an [API key](/docs/api-keys), except for `GET /health`.

| Route | Request | Response |
| --- | --- | --- |
| [`POST /binary`](/docs/reference/http/binary) | Raw transaction bytes or a payload envelope | Transaction signature or bundle ID as plain text |
| [`POST /plaintext`](/docs/reference/http/plaintext) | The same payload encoded as base64 text | Transaction signature or bundle ID as plain text |
| [`GET /health`](/docs/reference/http/health) | No body or API key | `ok` or `unhealthy` as plain text |
| [`GET /tip_floor`](/docs/reference/http/tip-floor) | No body | Array of zero or one tip floor snapshots |
| `POST` to any other path | [JSON-RPC request](/docs/reference/json-rpc#request) | JSON-RPC response |
| Any other method or path | Unsupported route | HTTP `404`, reason `invalid_request`, problem `not_found` |

The [payload envelope](/docs/reference/payload-envelope) defines transaction, bundle and declared tip payloads. Raw sends have no preflight simulation. Each route reference defines its body limits, responses and examples.

Raw HTTP refusals return a JSON [rejection object](/docs/reference/errors) in the response body. A successful send acknowledges acceptance; check landing through your Solana RPC provider as described in [Confirmation and retries](/docs/swqos/confirmation).

## OpenAPI [#openapi]

Import [`http.json`](/docs/openapi/http.json) for the raw submission routes, [`health.json`](/docs/openapi/health.json) for health or [`tip-floor.json`](/docs/openapi/tip-floor.json) for the tip floor. The last two documents also include their JSON-RPC methods.
