Account and Profile
Retrieve account details or the logged-in user's profile.
GET /account
Returns account information including name, currency, timezone, and data sources.
Authentication
Requires an API key with admin access level.
curl https://api.growpanel.io/account \
-H "Authorization: Bearer YOUR_API_KEY"Response
Status: 200 OK
{
"id": "acc_123",
"name": "Acme Corp",
"base_currency": "usd",
"timezone": "America/New_York",
"first_day_of_week": 1,
"data_sources": [
{
"id": "ds_001",
"name": "Stripe",
"type": "stripe"
}
]
}Response fields
| Field | Type | Description |
|---|---|---|
id | string | Unique account identifier |
name | string | Account or company name |
base_currency | string | Default reporting currency |
timezone | string | Account timezone |
first_day_of_week | integer | First day of the week (0 = Sunday, 1 = Monday) |
data_sources | array | Connected data sources |
GET /profile
Returns the logged-in user's profile and their account memberships.
Authentication
Requires a valid API key or session.
curl https://api.growpanel.io/profile \
-H "Authorization: Bearer YOUR_API_KEY"Response
Status: 200 OK
{
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@acme.com",
"locale": "en",
"picture": "https://...",
"provider": "google",
"verified": true,
"accounts": [
{
"id": "acc_123",
"name": "Acme Corp",
"role": "owner"
}
]
}Response fields
| Field | Type | Description |
|---|---|---|
first_name | string | User's first name |
last_name | string | User's last name |
email | string | User's email address |
locale | string | Preferred locale |
picture | string | Profile picture URL |
provider | string | Authentication provider (google, microsoft, credentials) |
verified | boolean | Whether the email is verified |
accounts | array | List of accounts the user belongs to, with role |
PUT /profile
Update the logged-in user's profile.
Request
curl -X PUT https://api.growpanel.io/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"locale": "en"
}'Response
Status: 200 OK
Returns the updated profile object (same shape as GET /profile).