Submit a session URL for a miner
curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.org"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://miner.example.org'})
};
fetch('https://api.floprouter.com/v1/miners/{address}/endpoint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/miners/{address}/endpoint"
payload = { "url": "https://miner.example.org" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "verified",
"ready": true,
"binding": "channel",
"model": "qwen/qwen3-8b",
"accepted": true,
"message": "Accepted. The URL answered with a proof signed by a session key that the chain ties to this miner. It is re-verified on a schedule and dropped when it stops answering."
}{
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "unbound",
"ready": false,
"binding": null,
"model": "qwen/qwen3-8b",
"accepted": false,
"message": "Recorded, not yet routable: the session key is not yet tied to this miner on chain. It is re-checked on a schedule and becomes verified as soon as the chain shows the key."
}{
"error": {
"code": 404,
"message": "that address is not a miner in the on-chain registry",
"metadata": {
"reason": "miner_not_found"
}
}
}{
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "unreachable",
"ready": null,
"binding": null,
"model": null,
"accepted": false,
"error": {
"code": 422,
"message": "/session/info answered 502 without a session challenge: not a live worker",
"metadata": {
"reason": "endpoint_unreachable"
}
}
}{
"error": {
"code": 429,
"message": "endpoint submissions from this address: limit 30 per hour; retry in 1200 s",
"metadata": {
"reason": "rate_limited"
}
}
}Directory
Submit a session URL for a miner
Anyone may submit. The URL is accepted only if the worker behind it answers a fresh challenge with a signed /session/info-proof that names this miner account and this chain, and the signing session key is tied to the miner account on chain (a miner-signed offer or a past channel). Accepted entries are re-verified on a schedule and dropped when they stop answering.
POST
/
v1
/
miners
/
{address}
/
endpoint
Submit a session URL for a miner
curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.org"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://miner.example.org'})
};
fetch('https://api.floprouter.com/v1/miners/{address}/endpoint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/miners/{address}/endpoint"
payload = { "url": "https://miner.example.org" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "verified",
"ready": true,
"binding": "channel",
"model": "qwen/qwen3-8b",
"accepted": true,
"message": "Accepted. The URL answered with a proof signed by a session key that the chain ties to this miner. It is re-verified on a schedule and dropped when it stops answering."
}{
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "unbound",
"ready": false,
"binding": null,
"model": "qwen/qwen3-8b",
"accepted": false,
"message": "Recorded, not yet routable: the session key is not yet tied to this miner on chain. It is re-checked on a schedule and becomes verified as soon as the chain shows the key."
}{
"error": {
"code": 404,
"message": "that address is not a miner in the on-chain registry",
"metadata": {
"reason": "miner_not_found"
}
}
}{
"miner": "5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92",
"url": "https://miner-002.0xmakase.co.jp",
"status": "unreachable",
"ready": null,
"binding": null,
"model": null,
"accepted": false,
"error": {
"code": 422,
"message": "/session/info answered 502 without a session challenge: not a live worker",
"metadata": {
"reason": "endpoint_unreachable"
}
}
}{
"error": {
"code": 429,
"message": "endpoint submissions from this address: limit 30 per hour; retry in 1200 s",
"metadata": {
"reason": "rate_limited"
}
}
}Body
application/json
Response
Accepted and routable