Get the API version.
client.V1.APIVersion.GetVersion(ctx) (*V1APIVersionGetVersionResponse, error)
GET/v1/version
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"
}
}