Create endpoint
Description
POST /api/dashboard/endpoints creates (or reuses) an endpoint for the Management API Key owner on BlockReq Web.
Request
| Item | Value |
|---|---|
| Method | POST |
| URL | https://blockreq.com/api/dashboard/endpoints |
| Header | Authorization: Bearer akv1_... |
| Body | { "chain": "ethereum", "name": "optional", "txBroadcast": "mev_protection" } |
Use GET /api/dashboard/chains for supported chain values.
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Network to create the endpoint on, e.g. ethereum or bsc. |
name | string | No | Display name for the endpoint. |
keyMode | shared | dedicated | No | shared (default) reuses your shared API key; dedicated creates a key for this endpoint only. |
txBroadcast | mev_protection | normal | No | Transaction broadcasting for eth_sendRawTransaction. Default mev_protection. |
Transaction broadcasting
txBroadcast applies on Ethereum mainnet (ethereum), BSC mainnet (bsc) and Base mainnet (base):
mev_protection(default): sends your transactions privately to block builders so they cannot be front-run or sandwiched.normal: broadcasts through our nodes to the public mempool. No private routing, no backruns and no rebates.
On other networks only mev_protection is accepted; normal returns 400 with tx_broadcast_unsupported_chain. Any other value is a 400 validation error whose issue message is tx_broadcast_invalid. If the request reuses an existing shared endpoint on the same network, that endpoint keeps its current mode.
To change the mode of an existing endpoint, send PATCH /api/dashboard/endpoints with { "endpointId": "ep_...", "txBroadcast": "normal" }. Endpoint list and detail responses include the current txBroadcast.
Code
curl -X POST https://blockreq.com/api/dashboard/endpoints \
-H "Authorization: Bearer akv1_YOUR_MANAGEMENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"chain":"ethereum","txBroadcast":"mev_protection"}'Try It
POST /dashboard/endpoints
https://blockreq.com/api/dashboard/endpoints