/auth/meGet current account
JWT requests without X-Workspace-Id use the account default workspace. Workspace-bound API keys use their assigned workspace.
Responses
| Field | Type | Description |
|---|---|---|
id | string | Account ID. |
email | string<email> | Account email. |
name | stringnullable | Display name. |
shouldMaskEmail | boolean | Whether lead email values are masked for this account. |
emailRevealUsage | object | Dashboard reveal quota summary. |
├ used | integer | Reveals used. |
├ limit | integer | Reveal limit. |
credits | number | Available credit balance. |
subscription | object | Current customer-visible subscription state. |
├ planId | stringnullable | Plan identifier. |
├ status | stringnullable | Subscription status. |
├ concurrentCampaignLimit | integer | Concurrent campaign limit. |
workspace | object | Effective workspace context. |
├ id | string | Workspace ID. |
├ name | string | Workspace name. |
├ role | string | Workspace role.owneradminmemberviewer |
├ permissions | array | Workspace permissions granted to this account. |
├ credits | number | Workspace credit balance. |
├ seatSummary | object | Seat usage summary. |
├ used | integer | Seats used. |
├ limit | integer | Seat limit. |
Example
curl -X GET https://api.scravio.com/api/auth/me \
-H "X-API-Key: sk_live_example_key" \
-H "X-Workspace-Id: ws_example_team"curl -X GET https://api.scravio.com/api/auth/me \
-H "Authorization: Bearer <accessToken>" \
-H "X-Workspace-Id: ws_example_team"const res = await fetch('https://api.scravio.com/api/auth/me', {
method: 'GET',
headers: {
'X-API-Key': 'sk_live_example_key',
'X-Workspace-Id': 'ws_example_team'
}
});
const data = await res.json();const res = await fetch('https://api.scravio.com/api/auth/me', {
method: 'GET',
headers: {
Authorization: 'Bearer <accessToken>',
'X-Workspace-Id': 'ws_example_team'
}
});
const data = await res.json();