title: Stripe API: What's my account ID? How to default it in GET /v1/accounts/?
body: <p>I'm just beginning to play with the Stripe API, and already I've hit something I don't understand:</p>
  
  <p><em>How do I determine the identifer (e.g.,</em> <code>acct_abcd1234blablabla</code><em>) of my own Stripe account?</em> </p>
  
  <p>I'm not seeing any sort of account identifier in my temporary Stripe test account (although maybe I'm just not looking under the proper tab of the Account Settings pane).</p>
  
  <p>Now, the documentation for "<a href="https://stripe.com/docs/api#retrieve_account" rel="noreferrer">Retrieve Account</a>" says:</p>
  
  <blockquote>
    <p><strong>ARGUMENTS</strong><br/>
    account [optional]<br/>
    The identifier of the account to be retrieved. If none is provided, will default to the account of the API key.</p>
  </blockquote>
  
  <p>And it seems like omitting the account identifier from the URI <em>would be</em> a perfectly reasonable way of getting one's own account identifier, since it should be a property of the returned JSON object. But I can't figure out how to omit the argument in a way that causes the account object to be returned.</p>
  
  <p>Given that the example invocation, with an explicit account identfier argument, looks like:</p>
  
  <p><code>curl https://api.stripe.com/v1/accounts/acct_abcd1234blablabla -u sk_test_foobarbaz:</code></p>
  
  <p>my expectation is that simply omitting the final element of that URI will get me the default. But if I do that:</p>
  
  <p><code>curl https://api.stripe.com/v1/accounts/ -u sk_test_foobarbaz:</code></p>
  
  <p>I get:</p>
  
  <pre><code>{
    "error": {
      "type": "invalid_request_error",
      "message": "Unrecognized request URL (GET: /v1/accounts/). Please see https://stripe.com/docs or we can help at https://support.stripe.com/."    
    }
  }
  </code></pre>
  
  <p>Of course, if I do something silly like omit the trailing slash as well:</p>
  
  <p><code>curl https://api.stripe.com/v1/accounts -u sk_test_foobarbaz:</code></p>
  
  <p>I get, understandably enough, the (empty) list of <em>connected accounts</em>, which is not what I'm after:</p>
  
  <pre><code>{
    "object": "list",
    "data": [],
    "has_more": false,
    "url": "/v1/accounts"
  }
  </code></pre>
  
  <p>So, what am I missing here? </p>
  
  <ul>
  <li>What's the right way to specify "use the default" in <code>GET /v1/accounts/</code>? </li>
  <li>Or, alternatively, how do I find my account identifier via my Stripe
  account dashboard?</li>
  </ul>
  
  <p>(Parenthetically, I'll note that the API examples show me a valid account identifier corresponding to the private key they show me, and all of this may somehow be magically coordinated with my dashboard session, which shows me the same private key. But this hardly seems like the <em>right</em> way to obtain one's own account identifier in a real application.)</p>