Add the API to the index