curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.org",
"challenge": "<string>",
"signature": "<string>",
"endpoint_ad": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://miner.example.org',
challenge: '<string>',
signature: '<string>',
endpoint_ad: {}
})
};
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",
"challenge": "<string>",
"signature": "<string>",
"endpoint_ad": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "verified",
"ready": true,
"model": "qwen/qwen3-8b",
"accepted": true,
"message": "Accepted: the endpoint is verified for this miner and is checked again on a schedule.",
"ownership": "signature"
}{
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "unbound",
"ready": false,
"model": "qwen/qwen3-8b",
"accepted": false,
"message": "Recorded, not yet routable; it is checked again on a schedule.",
"ownership": "signature"
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}{
"error": {
"code": 401,
"message": "only the miner can list its endpoint: send an API key of the miner address, a signed challenge (POST /v1/miners/{address}/endpoint/challenge), or a signed endpoint_ad",
"metadata": {
"reason": "ownership_required"
}
}
}{
"error": {
"code": 404,
"message": "that address is not a miner in the on-chain registry",
"metadata": {
"reason": "miner_not_found"
}
}
}{
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "unreachable",
"ready": null,
"model": null,
"accepted": false,
"error": {
"code": 422,
"message": "the endpoint could not be verified for this miner",
"metadata": {
"reason": "endpoint_unreachable"
}
},
"ownership": "signature"
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}List or change a miner's session URL (the miner only)
Only the miner can list or change its session URL. The request must prove control of the miner account, by one of: an API key of the miner’s own address; challenge and signature (a challenge from POST /v1/miners/{address}/endpoint/challenge, signed by the miner account); or endpoint_ad, the FLOP SDK’s endpoint advert signed by the miner account naming exactly this URL. Without it the answer is 401 ownership_required and the URL is not contacted. Then the router checks that the endpoint serves this miner on this network: 200 verified, 202 recorded but not yet routable, 422 endpoint_unreachable or not_verified. A refused submission changes nothing. Limits: submissions per IP and per miner per hour; at most 5 endpoints per miner that are recorded but not routable (429 too_many_pending). The URL is not shown in public responses; the miner sees it in own_listing on GET /v1/miners/{address} with a key of its address.
curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.org",
"challenge": "<string>",
"signature": "<string>",
"endpoint_ad": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://miner.example.org',
challenge: '<string>',
signature: '<string>',
endpoint_ad: {}
})
};
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",
"challenge": "<string>",
"signature": "<string>",
"endpoint_ad": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "verified",
"ready": true,
"model": "qwen/qwen3-8b",
"accepted": true,
"message": "Accepted: the endpoint is verified for this miner and is checked again on a schedule.",
"ownership": "signature"
}{
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "unbound",
"ready": false,
"model": "qwen/qwen3-8b",
"accepted": false,
"message": "Recorded, not yet routable; it is checked again on a schedule.",
"ownership": "signature"
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}{
"error": {
"code": 401,
"message": "only the miner can list its endpoint: send an API key of the miner address, a signed challenge (POST /v1/miners/{address}/endpoint/challenge), or a signed endpoint_ad",
"metadata": {
"reason": "ownership_required"
}
}
}{
"error": {
"code": 404,
"message": "that address is not a miner in the on-chain registry",
"metadata": {
"reason": "miner_not_found"
}
}
}{
"miner": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y",
"url": "https://miner-2.example.com",
"status": "unreachable",
"ready": null,
"model": null,
"accepted": false,
"error": {
"code": 422,
"message": "the endpoint could not be verified for this miner",
"metadata": {
"reason": "endpoint_unreachable"
}
},
"ownership": "signature"
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}Body
Response
Accepted and routable