Get the server and Pack versions
GET/version
Returns the server’s version and what identifies the Pack it serves: a content id, the schema version, and which build made it and when. It names no path.
Responses
Section titled “Responses”The server and the Pack.
application/json
The server build and the Pack it serves.
pack:object
Which Pack is served, and how it was built.
Properties
built_at_unix:integerformat: int64
When the Pack was built, in seconds since the Unix epoch.
built_by:string
Version of the open-geocode that built the Pack.
id:string
Identifies the Pack’s content: equal ids, same Pack.
schema_version:integerformat: int32
Version of the Pack file format.
version:string
Version of the open-geocode server.
Example
{
"pack": {
"built_at_unix": 1793074078,
"built_by": "0.1.0",
"id": "ebd8ae77aea58c01",
"schema_version": 10
},
"version": "0.1.0"
}Headers
Section titled “Headers”X-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
Method not allowed. The route accepts GET only.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Allow: optionalstring
The methods this route accepts.
Example
GETX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

