Consul extra api code