Add details and cause to API