API ResourcesGet Version

Get Service Version

The /version endpoint returns the current deployment version of the API service. Use it for compatibility checks, troubleshooting, and update verification.

GET/version

Get Version

Returns an object containing the service name, semantic version number, and build metadata. Typically used for handshake checks on client startup to verify SDK and server compatibility.

Request Headers

  • Name
    Authorization
    Type
    string
    Optional
    Optional
    Description

    Optional. Bearer token for API authentication. This endpoint is generally public, but may require auth under strict security policies.

Request Body

This endpoint does not accept any parameters.

Response Body

  • Name
    object
    Type
    string
    Required
    Required
    Description

    Object type, always version.

  • Name
    service
    Type
    string
    Required
    Required
    Description

    The identifier name of the service.

  • Name
    version
    Type
    string
    Required
    Required
    Description

    The SemVer-compliant version string of the service.

  • Name
    environment
    Type
    string
    Required
    Required
    Description

    The runtime environment of the service.

    • production: Stable environment for production use.
    • development: Latest features, stability not guaranteed.
    • sandbox: For testing payments or high-risk operations.
  • Name
    region
    Type
    string
    Required
    Required
    Description

    Physical region identifier of the service node.

  • Name
    server_time
    Type
    timestamp
    Optional
    Optional
    Description

    Unix timestamp of when this version was deployed.

Request

GET
/version
curl https://api.easytransnote.com/version \
  -H "Authorization: Bearer {YOUR_API_KEY}"

响应

{
  "object": "version",
  "service": "api.easytransnote.com",
  "version": "0.6.2.1118",
  "environment": "production",
  "region": "global",
  "server_time": 1754654400
}

Was this page helpful?