GET
/
account
Get the current user's account information
curl --request GET \
  --url https://api.profilebehavior.com/v3/account \
  --header 'Authorization: <api-key>'
{
  "code": 200,
  "data": {
    "id": "60e9ca73c500a9001534ad84",
    "createdAt": "2025-01-01T14:42:52.329Z",
    "updatedAt": "2025-01-01T14:42:52.329Z",
    "name": "Aperture Science",
    "type": "Corporate",
    "credits": 100,
    "preferences": {
      "isEcoPrintingEnabled": true,
      "isCoreExtendedEnabled": false
    }
  },
  "status": "success"
}
Start here after you have implemented authentication
This endpoint is crucial in our API ecosystem as it retrieves the Account details, including the Parent Account ID, which is a central piece of information that many other endpoints rely on. If your account does not utilize Sub-Accounts, this will be your sole Account ID.

Why It’s Important

  • Central Dependency: Numerous API operations require the account id retrieved by this endpoint. A successful response here ensures that subsequent calls to other endpoints have the correct reference.
  • Parent Account: This Account ID is your Parent Account ID and it is immutable, meaning it never changes. This makes it a reliable constant that can be leveraged throughout your application.

Best Practice

For improved reliability and convenience, we recommend that you set the Parent Account ID as an environment variable. Doing so allows you to reference it easily in your code, reducing the need to repeatedly fetch it via the API.

Authorizations

Authorization
string
header
required

Custom HMAC authentication header.

Format: public:signature:nonce:timestamp

Response

Success

Standard response object for successful single-resource requests in the Profile Behavior API. Contains an HTTP status code, the returned resource data, and a status indicator.