Use the user-query endpoint to get the email address and account_id for the owner of the API key. A request header is set because the query is a JSON string. The example sends output to the linux command “jq” to format the output nicely.

x='sk_xxxxx' # your API key

curl -sk \
  -u $x: \
  -d $q \
  -H 'Content-Type: application/json' \ | jq


### sample output (not from a real account):

  "query": {
    "accounts": {
      "account_id": "e32a26f8-262c-11ed-8a33-8358017cec89",
      "email_address": "[email protected]"

You can learn more about the user-query endpoint by viewing the source code at…/api/v2/user-query.ts.