In get commit api how do we apply the filtering on the api from date

I have made this API Service method it is correct or require any changes

import { Injectable } from ‘@angular/core’;
import { HttpClient, HttpParams } from ‘@angular/common/http’;
import { Observable } from ‘rxjs’;
import { map } from ‘rxjs/operators’;

const BASE_URL = “https://api.bitbucket.org/2.0/repositories”;
const WORKSPACE = “instantmarkets”;
const TOKEN = “ATCTT3xFfGN01zSp6pCt89nfI1LIAaCPaOhoDQWLNwLPBlSSZaatXPNkXYdcqJ3IQexpsR2wOfv3cZ1n70BtJ6p1KUJwxMUjMseA8_RIXIeu5nS13MPdMCiaonNql_JAbF3ikLOl22YPl-XFUf8iYlAaqoPXmXncwK5VOUZQ4v8tJ_QWb_wNUuo=9F92669A”;

@Injectable({
providedIn: ‘root’
})
export class BitbucketService {

constructor(private http: HttpClient) {
}

private getHeaders() {
return {
Authorization: Bearer ${TOKEN},
accept: ‘application/json’
};
}

getCommits(workspace: string, repoSlug: string, sinceDate: string): Observable<any> {
const commitsUrl = ${BASE_URL}/${workspace}/${repoSlug}/commits;
const params = new HttpParams()
.set(‘since’, sinceDate)
.set(‘pagelen’, ‘100’);

return this.http.get(commitsUrl, { headers: this.getHeaders(), params })
  .pipe(
    map((response: any) => response.values
      ) // Extract only the 'values' array from the response
  );

}
}