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

FieldTypeDescription
idstringUnique account identifier
namestringAccount or company name
base_currencystringDefault reporting currency
timezonestringAccount timezone
first_day_of_weekintegerFirst day of the week (0 = Sunday, 1 = Monday)
data_sourcesarrayConnected 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

FieldTypeDescription
first_namestringUser's first name
last_namestringUser's last name
emailstringUser's email address
localestringPreferred locale
picturestringProfile picture URL
providerstringAuthentication provider (google, microsoft, credentials)
verifiedbooleanWhether the email is verified
accountsarrayList 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).