@@ -75,7 +75,7 @@ func (c *Client) StartLogin(deviceName string) (*LoginSession, error) {
7575 return nil , err
7676 }
7777
78- res , err := c .Post (context .Background (), "/cli-auth" , jsonData , nil )
78+ res , err := c .Post (context .Background (), "/2025-07-01/ cli-auth" , jsonData , nil )
7979 if err != nil {
8080 return nil , err
8181 }
@@ -129,13 +129,13 @@ func (s *GuestSession) WaitForAPIKey(interval time.Duration, maxAttempts int) (*
129129
130130// PollForAPIKeyWithKey polls for login completion using a CLI API key (for interactive login)
131131func (c * Client ) PollForAPIKeyWithKey (apiKey string , interval time.Duration , maxAttempts int ) (* PollAPIKeyResponse , error ) {
132- pollURL := c .BaseURL .String () + "/cli-auth/poll?key=" + apiKey
132+ pollURL := c .BaseURL .String () + "/2025-07-01/ cli-auth/poll?key=" + apiKey
133133 return pollForAPIKey (pollURL , interval , maxAttempts )
134134}
135135
136136// ValidateAPIKey validates an API key and returns user/project information
137137func (c * Client ) ValidateAPIKey () (* ValidateAPIKeyResponse , error ) {
138- res , err := c .Get (context .Background (), "/cli-auth/validate" , "" , nil )
138+ res , err := c .Get (context .Background (), "/2025-07-01/ cli-auth/validate" , "" , nil )
139139 if err != nil {
140140 return nil , err
141141 }
@@ -244,7 +244,7 @@ func (c *Client) UpdateClient(clientID string, input UpdateClientInput) error {
244244 return err
245245 }
246246
247- _ , err = c .Put (context .Background (), "/cli/" + clientID , jsonData , nil )
247+ _ , err = c .Put (context .Background (), "/2025-07-01/ cli/" + clientID , jsonData , nil )
248248 return err
249249}
250250
0 commit comments