An API (Application Programming Interface) allows software systems to communicate with each other automatically. In cloud infrastructure, APIs can be used to create servers, manage DNS records, configure networks, allocate storage or automate infrastructure deployment without manually using a web dashboard.