Versioning and deprecation policy
This page says what you can rely on when you build against the platform, and how a change reaches you.
What carries a version
- The contract file.
info.versionof the OpenAPI file, now 1.0.0, and the version in the path:/v1on the verify host,/api/v1,/d/v1,/s/v1. - The proof-of-play batch. The
schemafield of a batch, nowtanba.pop/1. - The signed files. A revocation list, a seal and an anchor have
vin the signed body, and the inputs file of a ledger day has its ownv. - The status of a connection on this site: live, beta or draft.
Statuses
| Status | What it means | Notice before a breaking change |
|---|---|---|
| Live | Stable. Built to be depended on | At least 12 months |
| Beta | Works and is used, but may still change. The device protocol and the evidence files are beta while the identifiers of the signed attributes sit in a provisional arc | At least 30 days, when we can; the changelog says what changed |
| Draft | A proposal. Not on the index of the search engines | None |
Changes that are not breaking
We make these at any time, without notice, in the current version. Your client must tolerate them:
- a new operation, a new optional parameter, a new field in an answer or in a signed body;
- a new value in a list of values, for example a new flag, a refusal reason, an event name or an error
code; - a longer text, a new header, a different order of fields.
So: ignore fields you do not know, and treat a value you do not know as "other", not as an error. Match on code, never on the texts of title or detail.
Breaking changes
These are breaking and only come in a new major version, next to the old one:
- removing or renaming an operation, a parameter or a field;
- changing the meaning or the type of a field, or the format of a number;
- a new required parameter or a new required field in a request;
- a limit that is tighter than the published one;
- a different signature algorithm or a different way to compute a signed value.
A new major version has its own path (/v2) or its own schema (tanba.pop/2). The old version keeps working for the whole notice period.
How a deprecation runs
- The operation or field is marked deprecated in the reference and in the OpenAPI file (
deprecated: true), with what to use instead and the date it stops working. - The changelog gets an entry the same day.
- The deprecated thing keeps working until that date. The notice period is the one of the status in the table, counted from the entry in the changelog.
- After that date it is removed, and the changelog says so.
Security and legal exceptions
A change that closes a security hole, or that the law requires, can take effect at once. We publish the entry in the changelog as soon as we can, and say what you have to do.
Device protocol: version header and test vectors
The device channels (/d/v1, /s/v1) answer every request, errors included, with the header X-Tanba-Protocol: 1. A player may send the same header to say which major version it speaks. Another major version is refused with 400 protocol_version_unsupported. A minor form such as 1.2 counts as version 1, and a request without the header is taken as version 1.
An acknowledgement of a command must carry command_id in the signed body, equal to the id in the path. Without it the answer is 400 command_id_required; the older tolerance for acknowledgements without command_id is ended.
The signature is ES256 over the exact bytes of the body, written as raw r||s in base64url without padding. Check your signer against the vectors below before you enrol: each has the public key (DER SubjectPublicKeyInfo in base64), the body as sent, the value of X-Tanba-Signature and the verdict the platform gives. One body has many valid signatures, so check the valid vectors by verifying them with the public key, and the invalid ones by seeing them fail.
{
"algorithm": "ECDSA P-256 with SHA-256 over the request body; X-Tanba-Signature is raw r||s (64 bytes) in base64url without padding",
"protocol": 1,
"vectors": [
{
"name": "heartbeat",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "mddnW7VGhc_8pXrtllZs1yotPPB1QFMoZxw-x2KZI2jFdjue6Yr942-pqlCzkERQktreJqAvmFHQak5Jj9wFfQ",
"valid": true,
"note": "ES256 over the exact body bytes, raw r||s, base64url without padding"
},
{
"name": "ack",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:30Z\",\"command_id\":\"0b9d6c1e-52f4-4a3b-8e7d-1c2a3b4c5d6e\",\"ok\":true,\"state_snapshot\":{\"state\":\"cutoff\"}}",
"signature": "Lezt6TjyzWahcNYXpaYWDfvx3m3QDcgL0PHKF4GvfBnoPLhEcjhTQNq4CrinXjc1Bkud9mOUCFsowwwip_H5DA",
"valid": true,
"note": "an ack names its command in the body and, like every signed body, carries device_id and ts"
},
{
"name": "non_ascii_body",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:31:00Z\",\"seq\":42,\"nonce\":\"b2c3d4e5f6071829\",\"state\":\"normal\",\"note\":\"Алматы, пр. Абая 1 é\"}",
"signature": "muhqfwR7ujEmJnBbbr5CqKcA2pubMkfM6QE7WedS0ByY70X7gbP2VRpTNakTDi-lLex-F7kdleSAowycfMjHew",
"valid": true,
"note": "the signature covers the UTF-8 bytes as sent, not a re-encoding"
},
{
"name": "one_byte_changed",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86401}",
"signature": "mddnW7VGhc_8pXrtllZs1yotPPB1QFMoZxw-x2KZI2jFdjue6Yr942-pqlCzkERQktreJqAvmFHQak5Jj9wFfQ",
"valid": false,
"note": "any change in the body breaks the signature"
},
{
"name": "other_key",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEACz0VF7koYE8iCm5Y6UgdGdU7zZngAlnq3jQPTs1PPdKwRfdYx1WQw85xObbLYGsT9BYnGF4fRppoAAJ9AApOg==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "mddnW7VGhc_8pXrtllZs1yotPPB1QFMoZxw-x2KZI2jFdjue6Yr942-pqlCzkERQktreJqAvmFHQak5Jj9wFfQ",
"valid": false,
"note": "a signature made by another key"
},
{
"name": "signature_of_other_key",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "Juvc8e0UjZxUc7AuwIo7dVcr3AjnuEZkCMOrwVsXQiE6XcOq6gYY8_wm6UDbX-hRU1-Xmf-zZmDb3qR5ApxupQ",
"valid": false,
"note": "well-formed signature, made by a key that is not the registered one"
},
{
"name": "padded_base64url",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "mddnW7VGhc_8pXrtllZs1yotPPB1QFMoZxw-x2KZI2jFdjue6Yr942-pqlCzkERQktreJqAvmFHQak5Jj9wFfQ==",
"valid": false,
"note": "base64url must be sent without padding"
},
{
"name": "standard_base64",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "mddnW7VGhc/8pXrtllZs1yotPPB1QFMoZxw+x2KZI2jFdjue6Yr942+pqlCzkERQktreJqAvmFHQak5Jj9wFfQ==",
"valid": false,
"note": "the URL-safe alphabet is required"
},
{
"name": "der_encoded_signature",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "MEUCIQCL58PO3Swtd0A6kfwZVq1szxOA3JmtCwv-4IfQZxiN-gIgTMwonZle4mWTxti6Kv44HwDFV_k06OFmrweMu4L5R1I",
"valid": false,
"note": "the signature is raw r||s of 64 bytes, not ASN.1 DER"
},
{
"name": "empty_signature",
"public_key_spki_base64": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELSBpcq+zOOICeiErRTNDcGC9D+oF1vqi6e8smy7/wWl7u2h+PCaVP97qAp5b9r+/brv5q8IBnZfN53OK3gjRIA==",
"body": "{\"device_id\":\"6f1c2b7e-3d4a-4c8e-9b1a-2f5d7e8a9c01\",\"ts\":\"2026-10-14T09:30:00Z\",\"seq\":41,\"nonce\":\"a1b2c3d4e5f60718\",\"state\":\"normal\",\"uptime_s\":86400}",
"signature": "",
"valid": false,
"note": "a missing signature"
}
]
}
Where to look
Every change to the contract is in the changelog, newest first, in plain words. The raw OpenAPI files on each connection page are the source of this site, so a client generated from them always matches the pages.