Having trouble in getting api object in .net

Returning prismic Api object

Repo url : https://github.com/prismicio/dotnet-starter-kit
the function
public async Task<prismic.Api> Get(string accessToken)

return await prismic.Api.Get(this.apiUrl, accessToken, new prismic.DefaultCache(), new PrismicLogger());


My api url is https://{RepoName}.prismic.io/api/v2
showing this error
please help

Hi @arsalan.maqsood, I think the issue here is that the .NET kit is only compatible with the API v1. So try to use this endpoint instead and see if it works: