Transfer domain to cloudflare with authorization code via API

Is it possible, via API, to add the authorization code when transferring a domain to cloudflare? I see how to do it via the user interface but I want to create a script.