---
title: "PuppetDB 3.0 » Metadata API » v1 » Querying PuppetDB Version"
layout: default
canonical: "/puppetdb/latest/api/meta/v1/version.html"
---

[curl]: ../curl.html#using-curl-from-localhost-non-sslhttp

The `/version` endpoint can be used to retrieve version information from the PuppetDB server.


## `GET /pdb/meta/v1/version`

This query endpoint will return version information about the running PuppetDB
server.

This endpoint does not use any URL parameters or query strings.

## `GET /pdb/meta/v1/version/latest`

This query will display a message describing the latest version of PuppetDB.

### Response Format

The response will be in `application/json`, and will return a JSON map with a
single key: `version`, whose value is a string representation of the version
of the running PuppetDB server.

    {"version": "X.Y.Z"}

### Examples

[Using `curl` from localhost][curl]:

    curl -X GET http://localhost:8080/pdb/meta/v1/version

    {"version": "X.Y.Z"}

    curl -X GET http://localhost:8080/pdb/meta/v1/version/latest

    {
      "newer" : false,
      "product" : "puppetdb",
      "link" : "https://docs.puppetlabs.com/puppetdb/2.3/release_notes.html",
      "message" : "Version 2.3.4 is now available!",
      "version" : "2.3.4"
    }
