Router Knowledge Hub
REST API
Learn more about the REST API that can be used to query information as well as perform sensitive tasks
More abuot the REST API
Endpoints of the API
The router contains a REST API that can be used to query information as well as perform sensitive tasks. The API is available at the router’s IP address and at the ROUTER_EXTERNAL_PORT in the .env file.
Endpoints
GET /ping
Pings the router.
Example Request
cURL
Example Response
GET /config
Gets the router’s config.
Example Request
cURL
Example Response
POST /remove-liquidity
Remove’s router’s liquidity.
Request Body
Example Request
cURL
Example Response
POST /cancel-sender
Manually cancels sender’s transaction.
Request Body
Example Request
cURL
Example Response