12curl https://api.v2.dealmachine.com/v1/account \ -H "Authorization: Bearer dm_sk_live_xxx"
123456# Install and login npm install -g dealmachine dm login # Check your account dm account
12curl https://api.v2.dealmachine.com/v1/account \ -H "Authorization: Bearer dm_sk_live_xxx"
1https://api.v2.dealmachine.com/v1
Authorization header:1Authorization: Bearer dm_sk_live_xxx
dm login.data envelope:1234567891011121314151617181920{ "data": { "organization": { "id": 1, "name": "My Company", "createdAt": "2024-01-01T00:00:00.000Z" }, "user": { "id": null, "authType": "api_key" }, "plan": { "name": "Basic", "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" } } }
1234567{ "error": { "code": "invalid_api_key", "message": "Invalid API key", "request_id": "req_abc123def456" } }