Skip to main content
GET
/
v1
/
account
curl https://api.v2.dealmachine.com/v1/account \
  -H "Authorization: Bearer dm_sk_live_xxx"
{
  "data": {
    "organization": {
      "id": 1,
      "name": "My Company",
      "createdAt": "2024-01-01T00:00:00.000Z"
    },
    "user": {
      "id": null,
      "authType": "api_key"
    },
    "plan": {
      "name": "Starter",
      "enrichment_credit_cap": 10000,
      "is_paid": true,
      "billing_cycle_start": "2024-01-01T00:00:00.000Z",
      "billing_cycle_end": "2024-02-01T00:00:00.000Z"
    }
  }
}
Get your organization info and authentication details. Works with both API keys and OAuth tokens.
curl https://api.v2.dealmachine.com/v1/account \
  -H "Authorization: Bearer dm_sk_live_xxx"
{
  "data": {
    "organization": {
      "id": 1,
      "name": "My Company",
      "createdAt": "2024-01-01T00:00:00.000Z"
    },
    "user": {
      "id": null,
      "authType": "api_key"
    },
    "plan": {
      "name": "Starter",
      "enrichment_credit_cap": 10000,
      "is_paid": true,
      "billing_cycle_start": "2024-01-01T00:00:00.000Z",
      "billing_cycle_end": "2024-02-01T00:00:00.000Z"
    }
  }
}

Response Fields

FieldTypeDescription
data.organization.idnumberOrganization ID
data.organization.namestringOrganization name
data.organization.createdAtstringISO 8601 creation timestamp
data.user.idnumber | nullUser ID (null for API key auth)
data.user.authTypestringapi_key or oauth
data.plan.namestringPlan name
data.plan.enrichment_credit_capnumberMonthly enrichment credit cap
data.plan.is_paidbooleanWhether the plan is paid
data.plan.billing_cycle_startstringISO 8601 billing cycle start
data.plan.billing_cycle_endstringISO 8601 billing cycle end
When authenticated with an API key, user.id is null because API keys are organization-level, not user-level. OAuth tokens include the user ID of the person who authorized the token.