title: How to Configure/Access Bitbucket Server REST API via OAuth Client Credentials
body: <p>I don't understand how to generate the secret that is used for the Bitbucket Server REST API using the client credential grant type.  For example:</p>
  
  <pre><code>$ curl -X POST -u "client_id:secret" https://example.org/site/oauth2/access_token -d grant_type=client_credentials
  </code></pre>
  
  <p>Is this created in the "Application Links" area?  How do I specify the user that I would like to authorize?</p>