curl --request POST \
--url https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound \
--header 'Content-Type: application/json' \
--data '
{
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"payloadRef": "<string>",
"receivedAt": "2026-06-14T12:00:00Z",
"source": "<string>",
"channel": "<string>",
"headers": {},
"payload": "<string>"
}
'import requests
url = "https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound"
payload = {
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"payloadRef": "<string>",
"receivedAt": "2026-06-14T12:00:00Z",
"source": "<string>",
"channel": "<string>",
"headers": {},
"payload": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
payloadHash: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
payloadRef: '<string>',
receivedAt: '2026-06-14T12:00:00Z',
source: '<string>',
channel: '<string>',
headers: {},
payload: '<string>'
})
};
fetch('https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound', 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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound",
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([
'payloadHash' => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
'payloadRef' => '<string>',
'receivedAt' => '2026-06-14T12:00:00Z',
'source' => '<string>',
'channel' => '<string>',
'headers' => [
],
'payload' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound"
payload := strings.NewReader("{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound")
.header("Content-Type", "application/json")
.body("{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"processingDecision": "ACCEPTED",
"humanReason": "<string>",
"messageRecordId": "550e8400-e29b-41d4-a716-446655440002",
"quarantineId": "550e8400-e29b-41d4-a716-446655440003"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Internal rail inbound callback
Internal-only inbound rail callback guarded by the X-Internal-Callback shared secret. Not a client API surface.
curl --request POST \
--url https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound \
--header 'Content-Type: application/json' \
--data '
{
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"payloadRef": "<string>",
"receivedAt": "2026-06-14T12:00:00Z",
"source": "<string>",
"channel": "<string>",
"headers": {},
"payload": "<string>"
}
'import requests
url = "https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound"
payload = {
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"payloadRef": "<string>",
"receivedAt": "2026-06-14T12:00:00Z",
"source": "<string>",
"channel": "<string>",
"headers": {},
"payload": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
payloadHash: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
payloadRef: '<string>',
receivedAt: '2026-06-14T12:00:00Z',
source: '<string>',
channel: '<string>',
headers: {},
payload: '<string>'
})
};
fetch('https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound', 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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound",
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([
'payloadHash' => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
'payloadRef' => '<string>',
'receivedAt' => '2026-06-14T12:00:00Z',
'source' => '<string>',
'channel' => '<string>',
'headers' => [
],
'payload' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound"
payload := strings.NewReader("{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound")
.header("Content-Type", "application/json")
.body("{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://spi.sandbox.lerian.net/internal/v1/spi/rail/inbound")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"payloadHash\": \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n \"payloadRef\": \"<string>\",\n \"receivedAt\": \"2026-06-14T12:00:00Z\",\n \"source\": \"<string>\",\n \"channel\": \"<string>\",\n \"headers\": {},\n \"payload\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"processingDecision": "ACCEPTED",
"humanReason": "<string>",
"messageRecordId": "550e8400-e29b-41d4-a716-446655440002",
"quarantineId": "550e8400-e29b-41d4-a716-446655440003"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Headers
Internal callback shared secret
Body
SHA-256 hex digest of the referenced payload bytes
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
Opaque reference to the payload bytes held in the server-side resolver
Timestamp the mesh received the rail message, RFC3339 UTC
"2026-06-14T12:00:00Z"
Originating rail/source identifier of the inbound message
Optional channel discriminator routing the message to a handler
Forwarded transport headers (e.g. Idempotency-Key), used for idempotency and routing
Show child attributes
Show child attributes
Optional base64-encoded payload bytes; staged server-side after hash verification
Response
OK
Outcome of processing the inbound message (e.g. ACCEPTED, QUARANTINED)
"ACCEPTED"
Safe-to-return human-readable explanation of the decision
UUID of the persisted message record when the message was accepted
"550e8400-e29b-41d4-a716-446655440002"
UUID of the quarantine record when the message was quarantined
"550e8400-e29b-41d4-a716-446655440003"
Was this page helpful?

