Skip to content
Get started

Get the API version.

client.V1.APIVersion.GetVersion(ctx) (*V1APIVersionGetVersionResponse, error)
GET/v1/version

Returns the current version string for this API endpoint.

ReturnsExpand Collapse
type V1APIVersionGetVersionResponse struct{…}
Data Version

API version information

Version string

API version string

Get the API version.

package main

import (
  "context"
  "fmt"

  "github.com/clear-street/clear-street-go"
  "github.com/clear-street/clear-street-go/option"
)

func main() {
  client := clearstreet.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.V1.APIVersion.GetVersion(context.TODO())
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
{
  "data": {
    "version": "2025-10-31"
  },
  "error": null,
  "metadata": {
    "request_id": "2c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f"
  }
}
Returns Examples
{
  "data": {
    "version": "2025-10-31"
  },
  "error": null,
  "metadata": {
    "request_id": "2c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f"
  }
}