API connection stracture