Skip to content

nat_callback.php

Callback receiver for NAT operations, handling asynchronous job updates and status reporting from external systems.

API Methods

Method Action Description
nat_callback process nat callback Processes incoming NAT operation callbacks to update job statuses and perform cleanup or rule updates.

nat_callback/nat_callback

Processes incoming NAT operation callbacks to update job statuses and perform cleanup or rule updates.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: nat_callback
key ✅ string The unique job key used to retrieve the original task from the queue.
status ❌ string The status result of the operation. Can be a string or a JSON-encoded object/array containing detailed results.
stage ❌ string The current stage of the operation. Default is 'done'. Allowed values: done, failure.

Request example

curl -s "https://invapi.hostkey.com/nat_callback.php" -X POST \
--data "action=nat_callback" \
--data "key=VALUE"
Success response example
{
"result": "OK",
"action": "nat_callback"
}
Error examples
{
"code": -1,
"message": "Invalid JSON!"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×