Skip to main content
POST
/
api
/
rooms
/
{roomCode}
/
passport
Seal a passport version
curl --request POST \
  --url https://signsealship.com/api/rooms/{roomCode}/passport \
  --header 'Authorization: Bearer <token>'
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://signsealship.com/api/rooms/{roomCode}/passport', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://signsealship.com/api/rooms/{roomCode}/passport"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
{
  "version": 123,
  "verifyCode": "<string>",
  "verifyUrl": "<string>",
  "manifestSha256": "<string>",
  "prevManifestSha256": "<string>",
  "sealedSha256": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}
{
"error": "<string>"
}
{
"error": "A valid partner API key is required."
}
{
"error": "<string>"
}

Authorizations

Authorization
string
header
required

Partner API key. Send as Authorization: Bearer sss_pk_....

Path Parameters

roomCode
string
required

The room's bearer code (40 lowercase hex characters; the read endpoint accepts 24–64).

Response

Passport version sealed.

version
integer

The new version number, incrementing per room.

verifyCode
string

26 lowercase base32 characters (128 bits).

verifyUrl
string

/v/room/{verifyCode}.

manifestSha256
string
prevManifestSha256
string | null

The prior version's manifestSha256 — the hash-chain link. null on version 1.

sealedSha256
string
createdAt
string<date-time>