Your c# classes structure would be like :
public class Error
{
public string id { get; set; }
public string code { get; set; }
public string message { get; set; }
}
public class RootObject
{
public List<Error> error { get; set; }
}
and now you have to write in api:
RootObject obj =JsonConvert.DeserializeObject<RootObject>(jsonString);
You can always use
online tools like json2csharp.comto get the c# classes structure against the json.