Skip to content
On this page

Service

Get the running version

GET/v1/version

Returns the version of the Shipbell release that answers the request.

Authentication

None. This endpoint needs no key.

Responses

200The running version.

Content type: application/json

NameTypeDescription
versionRequiredstringThe full commit SHA of the running release. A local build that has no release SHA answers dev.Matches ^(?:[0-9a-f]{40}|[0-9a-f]{64}|dev)$
Example
{
  "version": "string"
}

Examples

curl
curl https://api.shipbell.app/v1/version
JavaScript
const response = await fetch('https://api.shipbell.app/v1/version');
const data = await response.json();
Swift
let url = URL(string: "https://api.shipbell.app/v1/version")!
let (data, response) = try await URLSession.shared.data(from: url)