Currently, there is no official public API for Midjourney. However, there have been mentions of unofficial APIs being developed by individuals.
It seems that these unofficial APIs are not endorsed by Midjourney and may have limitations or restrictions. If you are interested in accessing Midjourney's capabilities, the primary method is through interacting with their AI bot on Discord.