Revive Request API
Public — anyone (inherited)Last updated 2 months ago by Fogest
Nuke Family - Revive Request API#
Integration guide for submitting revive requests into the Nuke Family revive queue from your backend.
This is for server-to-server use. Requests are authenticated with a key issued to your site, which is sent to you separately from this document.
Endpoint#
POST https://nuke.family/api/revive-request
Headers#
| Header | Value |
|---|---|
X-Revive-Key |
The key issued to your site |
Content-Type |
application/json |
Accept |
application/json |
Accept: application/json matters - without it, validation errors come back as an HTML
redirect instead of a JSON error body.
You will need to contact Fogest [2254826] to get the X-Revive-Key issued for your project
Your key#
Your key is sent to you separately. It looks like this:
// Example Key
nfrv_examplesite_4Kd9QzR7pV2mL0nB8tY6wJ3hF1sXcUeI5gAoDbNq
The key is what lets your requests skip the per-IP rate limiting and the browser header checks applied to requests coming from userscripts and extensions — those can't hold a secret, your backend can. So:
Keep it on your server only. It must never appear in client-side JavaScript, a public repository, or anywhere an end user could read it. Anyone holding it can submit revive requests as your site. If you think it has leaked, tell us and we'll issue you a new one.
Keys are revocable and rotatable at any time. If yours is rotated, requests using the old
one start returning 401 immediately.
Body fields#
| Field | Type | Required | Notes |
|---|---|---|---|
torn_player_id |
integer | Yes | Torn ID of the player who needs the revive. |
app_info |
string | Recommended | A short string identifying your site, shown to our revivers as the source of the request — e.g. YourSite.com, or YourSite.com v1.0 if a version is useful to you. If you omit it we substitute your site's name. Some keys are issued with a required prefix; if yours is, we'll tell you when we send the key, and an app_info that doesn't start with it is rejected with a 422. |
torn_player_country |
string | Recommended | Where the player currently is, as Torn displays it: Torn, Mexico, Traveling to Mexico, Returning to Torn from Mexico. Revivers need this — a request without it is assumed to be Torn. The system will do a check if no country is specified to see if they are abroad, but this is often checked post-request and then the request gets edited. So if their country is known it may be better to send if you have it, else skip it. |
requested_by |
integer | Recommended | Torn ID of the user who triggered the request, when that's someone other than the player being revived. Omit when a user requests for themselves. |
torn_player_name |
string | Optional | We resolve the name from the Torn API; this is only used as a fallback if that lookup fails. But if you have it, might as well send it as it avoids issues where the Torn API is dying like in every event |
faction_id |
integer | Optional | We resolve this from the Torn API; send it only if you already have it. |
Send nothing else. Every other field on the endpoint is derived server-side, and values supplied for them are discarded.
Example#
curl -X POST https://nuke.family/api/revive-request \
-H "X-Revive-Key: YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"torn_player_id": 2648622,
"app_info": "YourSite.com",
"torn_player_country": "Torn",
"requested_by": 2648622
}'
PHP:
$response = Http::withHeaders([
'X-Revive-Key' => config('services.nuke_family.revive_key'),
'Accept' => 'application/json',
])
->asJson()
->post('https://nuke.family/api/revive-request', [
'torn_player_id' => $player->torn_id,
'app_info' => 'YourSite.com',
'torn_player_country' => $player->location,
'requested_by' => $requestingUser->torn_id,
]);
Node:
const response = await fetch('https://nuke.family/api/revive-request', {
method: 'POST',
headers: {
'X-Revive-Key': process.env.NUKE_FAMILY_REVIVE_KEY,
'Content-Type': 'application/json',
Accept: 'application/json',
},
body: JSON.stringify({
torn_player_id: player.tornId,
app_info: 'YourSite.com',
torn_player_country: player.location,
requested_by: requestingUser.tornId,
}),
});
Responses#
| Status | Meaning |
|---|---|
201 Created |
Request accepted and queued. |
401 Unauthorized |
X-Revive-Key missing, wrong, or your key has been deactivated. |
422 Unprocessable Entity |
Validation failed. Body contains errors. Most commonly a missing or non-integer torn_player_id, or an app_info that doesn't match a required prefix. |
429 Too Many Requests |
You exceeded your key's per-minute ceiling. Honour the Retry-After header. |
403 Forbidden |
Your server IP is banned. Contact us. |
A 201 body looks like:
{
"data": {
"id": 148392,
"created_at": "2026-08-11T18:04:21.000000Z",
"updated_at": "2026-08-11T18:04:21.000000Z",
"torn_player_id": 2648622,
"torn_player_name": "SomePlayer",
"torn_player_country": "Torn",
"app_info": "YourSite.com",
"faction_id": 12345
}
}
201 means the request was accepted and logged, not that a reviver has beendispatched. Revives are performed by volunteers and are never guaranteed. In
particular, a request that trips the per-player throttle below still returns 201, but
is quarantined rather than shown to revivers.
Rate limits#
There are usually rate-limits applied to each key, which likely will never actually be reached with any legitimate usage. However it is something to be aware of as if your users are allowed to misuse your system it could result in rate-limits site-wide. The exact rates are not provided, but if there are issues we can work with you to raise them.
Testing#
Append #test to app_info — for example YourSite.com #test — and the request is
routed to our test channel instead of the live reviver queue, and skips abuse checks. Use
this to verify your integration before going live. If your key was issued with a required
app_info prefix, that prefix must still come first. You will be unable to see this test channel, but reach out to Fogest to double check a test worked.
Things to be aware of#
- Some players and factions are on our revive blacklist. Their requests are accepted with
201and then quarantined. We don't expose blacklist status to you. - There's no callback or webhook - we don't report back whether a revive happened.
- Revive pricing and any contract terms are handled outside this API. Submitting a request doesn't imply a price.