Hi, I'm trying to integrate the API and keep getting a 404.
The example domain URL I'm using is as follows (subdomain being our company subdomain with zendesk)
https://subdomain.zendesk.com/api/v2/leads.json
Here is an example of my C# code.
var response = client.PostAsync("https://" + _subdomain + ".zendesk.com/api/v2/leads.json",
new StringContent(jsonPayload, Encoding.UTF8, "application/json")).Result;
NOTE: I am successfully authenticating when I create tickets
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Basic",
Convert.ToBase64String(Encoding.ASCII.GetBytes(_email + "/token:" + _apiToken)));
Yes that's correct. For the Sales CRM API you'll need to get a bearer token from the Sell OAuth endpoint to authenticate your requests.