title: StripeInvalidRequestError: You can only create new accounts if you've signed up for Connect
body: <p>When trying to test Stripe Connect Api, I get the following error:</p>
  <blockquote>
  <p>'StripeInvalidRequestError: You can only create new accounts if you've
  signed up for Connect'</p>
  </blockquote>
  <p>I have signed up for an account and I use my personal Secret Key so i don't know why its not letting me test this feature. Below is the code for the post request.</p>
  <pre><code>router.post('/api/post/create-stripe-account', async (req,res) =&gt; {
      
          const data = req.body;
          try{
              var account = await stripe.accounts.create({
                  country: 'US',
                  type: 'custom',
                  requested_capabilities: ['card_payments', 'transfers'],
              });
      
              res.json(account)
          }catch(error){
              console.log(error)
          }
          
      
      })
  </code></pre>
  <p>Link to documentation that I followed: <a href="https://stripe.com/docs/connect/custom-accounts" rel="nofollow noreferrer">Using Connect with Custom Accounts</a></p>
  <p>Any thoughts why stripe doesn't think I have signed up? I have used this secret key successfully with sending payments by card but stripe connect doesn't seem to like it. Thanks!</p>