Add methods to a plan
curl --request POST \
--url https://api.routeme.sh/provider/plans/{planId}/methods \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"methods": [
{
"method": "<string>",
"vm": "<string>",
"node_target_type": "<string>",
"cost": 1,
"rate_limit": 1,
"rate_limit_interval_sec": 1,
"chain_id": "<string>"
}
]
}
'import requests
url = "https://api.routeme.sh/provider/plans/{planId}/methods"
payload = { "methods": [
{
"method": "<string>",
"vm": "<string>",
"node_target_type": "<string>",
"cost": 1,
"rate_limit": 1,
"rate_limit_interval_sec": 1,
"chain_id": "<string>"
}
] }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
methods: [
{
method: '<string>',
vm: '<string>',
node_target_type: '<string>',
cost: 1,
rate_limit: 1,
rate_limit_interval_sec: 1,
chain_id: '<string>'
}
]
})
};
fetch('https://api.routeme.sh/provider/plans/{planId}/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routeme.sh/provider/plans/{planId}/methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'methods' => [
[
'method' => '<string>',
'vm' => '<string>',
'node_target_type' => '<string>',
'cost' => 1,
'rate_limit' => 1,
'rate_limit_interval_sec' => 1,
'chain_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.routeme.sh/provider/plans/{planId}/methods"
payload := strings.NewReader("{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.routeme.sh/provider/plans/{planId}/methods")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routeme.sh/provider/plans/{planId}/methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyProvider
Add methods to a plan
Appends RPC method rows (1-500) to one of the authenticated provider’s plans. The plan must be owned by the caller’s provider (otherwise 404).
POST
/
provider
/
plans
/
{planId}
/
methods
Add methods to a plan
curl --request POST \
--url https://api.routeme.sh/provider/plans/{planId}/methods \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"methods": [
{
"method": "<string>",
"vm": "<string>",
"node_target_type": "<string>",
"cost": 1,
"rate_limit": 1,
"rate_limit_interval_sec": 1,
"chain_id": "<string>"
}
]
}
'import requests
url = "https://api.routeme.sh/provider/plans/{planId}/methods"
payload = { "methods": [
{
"method": "<string>",
"vm": "<string>",
"node_target_type": "<string>",
"cost": 1,
"rate_limit": 1,
"rate_limit_interval_sec": 1,
"chain_id": "<string>"
}
] }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
methods: [
{
method: '<string>',
vm: '<string>',
node_target_type: '<string>',
cost: 1,
rate_limit: 1,
rate_limit_interval_sec: 1,
chain_id: '<string>'
}
]
})
};
fetch('https://api.routeme.sh/provider/plans/{planId}/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routeme.sh/provider/plans/{planId}/methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'methods' => [
[
'method' => '<string>',
'vm' => '<string>',
'node_target_type' => '<string>',
'cost' => 1,
'rate_limit' => 1,
'rate_limit_interval_sec' => 1,
'chain_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.routeme.sh/provider/plans/{planId}/methods"
payload := strings.NewReader("{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.routeme.sh/provider/plans/{planId}/methods")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routeme.sh/provider/plans/{planId}/methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"methods\": [\n {\n \"method\": \"<string>\",\n \"vm\": \"<string>\",\n \"node_target_type\": \"<string>\",\n \"cost\": 1,\n \"rate_limit\": 1,\n \"rate_limit_interval_sec\": 1,\n \"chain_id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Management token from the RouteMesh dashboard (Settings → Management Tokens). Required for customer API endpoints (/api-keys, /usage). Tokens are prefixed rmtm_ and scoped to your account. Authenticate by passing the token in the X-Api-Key header. Separate from RPC service keys (rm_), which authenticate dApp traffic to the routing layer.
Path Parameters
Numeric plan ID.
Body
application/json
Required array length:
1 - 500 elementsShow child attributes
Show child attributes
Response
Plan methods inserted. Returns a plain-text success message.

