{"openapi":"3.1.0","info":{"title":"TVNID API","version":"1.2.0","description":"TVNID hosted identifier service. Numeric ID: an 8-byte integer, serialized as a decimal JSON string. Visual ID: a 12-character alphanumeric identifier, returned in the compatibility field visual_id. Every newly generated visual_id starts with a lowercase letter and contains at least one digit; conversion remains exact for supported Format v1 IDs. API v1 and Format v1 remain unchanged. The current API is unauthenticated; API keys are not issued or enforced. POST operations allow 60 requests per minute per client address and a shared ceiling of 600 per minute, per server process; maximum 1000 IDs per request. Identifiers are not credentials. Read /docs for requests, errors and retry guidance."},"servers":[{"url":"/api"}],"security":[],"paths":{"/healthz":{"get":{"operationId":"healthCheck","responses":{"200":{"description":"Healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}},"/v1/generate":{"post":{"operationId":"generateIds","summary":"Generate identifier pairs","description":"Every visual_id returned by this operation starts with a lowercase alphabetic character and contains at least one digit. This generation guarantee does not change deterministic conversion results for existing Numeric IDs.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationInput"}}}},"responses":{"200":{"description":"Generated pairs with letter-first Visual IDs containing at least one digit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationResult"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/convert/to-visual":{"post":{"operationId":"convertToVisual","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumericInput"}}}},"responses":{"200":{"description":"Converted pair","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdPair"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/convert/to-numeric":{"post":{"operationId":"convertToNumeric","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisualInput"}}}},"responses":{"200":{"description":"Converted pair","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdPair"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/validate":{"post":{"operationId":"validateId","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifierInput"}}}},"responses":{"200":{"description":"Format validity, not proof of issuance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationResult"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/inspect":{"post":{"operationId":"inspectId","summary":"Get timestamp information","description":"Return the public ID representations and timestamp fields provided by the TVNID service.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifierInput"}}}},"responses":{"200":{"description":"Timestamp information supplied by the service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectionResult"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/inspect/batch":{"post":{"operationId":"inspectIdBatch","summary":"Recover timestamps for a batch of Numeric IDs","description":"Return timestamp fields for 1 to 1000 Numeric IDs in one request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectionBatchInput"}}}},"responses":{"200":{"description":"Timestamp details in the same order as the submitted IDs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectionBatchResult"}}}},"400":{"$ref":"#/components/responses/Invalid"},"413":{"description":"JSON body too large; reduce request size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"429":{"$ref":"#/components/responses/Limited"},"503":{"description":"Service unavailable; use bounded retries. Retried generation may issue different IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}},"/v1/spec":{"get":{"operationId":"getSpecification","responses":{"200":{"description":"Public TVNID service capabilities and integration contract","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Specification"}}}}}}}},"components":{"schemas":{"HealthStatus":{"type":"object","required":["status"],"properties":{"status":{"type":"string"}}},"GenerationInput":{"type":"object","additionalProperties":false,"required":["count"],"properties":{"count":{"type":"integer","minimum":1,"maximum":1000,"default":1}}},"GenerationResult":{"type":"object","required":["ids","count","api_version","format_version"],"properties":{"ids":{"type":"array","items":{"$ref":"#/components/schemas/IdPair"}},"count":{"type":"integer"},"api_version":{"type":"string"},"format_version":{"type":"integer"}}},"IdPair":{"type":"object","required":["numeric_id","visual_id"],"properties":{"numeric_id":{"type":"string"},"visual_id":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[123456789abcdefghjkmnpqrstuvwxyz]{12}$","description":"Visual ID: a 12-character alphanumeric identifier using the documented lowercase TVNID alphabet. The wire field remains visual_id for compatibility."}}},"ErrorResult":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"NumericInput":{"type":"object","additionalProperties":false,"required":["numeric_id"],"properties":{"numeric_id":{"type":"string","pattern":"^(0|[1-9][0-9]{0,18})$","description":"Numeric ID: an 8-byte integer, sent as a decimal JSON string. Identifier range is validated by the service."}}},"VisualInput":{"type":"object","additionalProperties":false,"required":["visual_id"],"properties":{"visual_id":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[123456789abcdefghjkmnpqrstuvwxyz]{12}$","description":"Visual ID: a 12-character alphanumeric identifier using the documented lowercase TVNID alphabet. The wire field remains visual_id for compatibility."}}},"IdentifierInput":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","maxLength":64,"description":"Canonical decimal Numeric ID or case-sensitive Visual ID. Strings of 12 alphanumeric characters from the TVNID alphabet are interpreted as Visual IDs. No spaces or special symbols are allowed."}}},"ValidationResult":{"type":"object","required":["valid","message","format_version"],"properties":{"valid":{"type":"boolean"},"message":{"type":"string"},"format_version":{"type":"integer"}}},"InspectionResult":{"type":"object","required":["numeric_id","visual_id","timestamp_ns","datetime_utc","format_version","valid"],"properties":{"numeric_id":{"type":"string"},"visual_id":{"type":"string"},"timestamp_ns":{"type":"string"},"datetime_utc":{"type":"string"},"format_version":{"type":"integer"},"valid":{"type":"boolean"}}},"InspectionBatchInput":{"type":"object","additionalProperties":false,"required":["numeric_ids"],"properties":{"numeric_ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"Canonical decimal Numeric ID. The service validates its supported range."}}}},"InspectionBatchResult":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InspectionResult"}}}},"Specification":{"type":"object","additionalProperties":false,"required":["name","api_version","numeric_id","string_id","string_id_alphabet","generation_policy","authentication","rate_limit","max_count","documentation_url","agents_url","openapi_url"],"properties":{"name":{"type":"string"},"api_version":{"type":"string"},"numeric_id":{"type":"string"},"string_id":{"type":"string","description":"Visual ID description retained under the existing specification property name."},"string_id_alphabet":{"type":"string"},"generation_policy":{"type":"string","description":"Policy for Visual IDs returned by new generation requests. Deterministic conversion and existing identifiers remain governed by Format v1."},"authentication":{"type":"string"},"rate_limit":{"type":"string"},"max_count":{"type":"integer"},"documentation_url":{"type":"string"},"agents_url":{"type":"string"},"openapi_url":{"type":"string"}}}},"responses":{"Invalid":{"description":"Invalid input; correct the request before retrying","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}},"Limited":{"description":"Rate limited; respect Retry-After seconds and use exponential backoff","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResult"}}}}}}}