/users/meRetrieve current user detailsRetrieves information about the currently authenticated Neon user, including account identifiers, plan details, and linked auth accounts.
Responses
active_seconds_limitinteger · int64requiredControl plane observes active endpoints of a user this amount of wall-clock time.
auth_accountsarray of objectrequiredAuthentication provider accounts linked to the current user.
Show child attributes
Show array items
emailstring · emailrequiredEmail address associated with this auth account.
imagestringrequiredURL of the user's profile picture as provided by the identity provider.
loginstringrequiredDeprecated. Use the `email` field.
namestringrequiredDisplay name of the account as provided by the identity provider.
providerstringrequiredIdentity provider id from keycloak
billing_accountobjectShow child attributes
address_citystringrequiredBilling address city.
address_countrystringrequiredBilling address country code defined by ISO 3166-1 alpha-2.
address_country_namestringBilling address country name.
address_line1stringrequiredBilling address line 1.
address_line2stringrequiredBilling address line 2.
address_postal_codestringrequiredBilling address postal code.
address_statestringrequiredBilling address state or region.
emailstring · emailrequiredBilling email, to receive emails related to invoices and subscriptions.
namestringrequiredThe full name of the individual or entity that owns the billing account. This name appears on invoices.
orb_portal_urlstringOrb user portal url
payment_methodstringrequiredIndicates whether and how an account makes payments.
payment_sourceobjectrequiredShow child attributes
cardobjectShow child attributes
brandstringCard network reported by the payment processor. Set to `unknown` when the network cannot be determined.
exp_monthinteger · int64Credit card expiration month
exp_yearinteger · int64Credit card expiration year
last4stringrequiredLast 4 digits of the card.
typestringrequiredType of payment source. E.g. "card".
plan_detailsobjectShow child attributes
namestringrequiredPlan name, for example `free`, `launch`, or `scale`.
versionobjectShow child attributes
majorintegerrequiredminorintegerrequiredquota_reset_at_laststring · date-timerequiredTimestamp of the last quota reset. Set to the account creation time when the account is first created.
spending_limit_centsinteger | null · int64Monthly spending cap in cents for V3 paid plans. When set, notifications are sent at 80% and 100% of this limit. `null` means no limit is configured.
statestringrequiredState of the billing account.
subscription_typestringrequiredType of subscription to Neon Cloud. Notice that for users without billing account this will be "UNKNOWN"
tax_idstringThe tax identification number for the billing account, displayed on invoices.
tax_id_typestringThe type of the tax identification number based on the country.
branches_limitinteger · int64requiredMaximum number of branches allowed for the account under the current plan.
compute_seconds_limitinteger · int64Maximum Postgres compute time, in seconds, allowed under the account's current plan.
emailstring · emailrequiredEmail address of the authenticated user.
idstringrequiredThe Neon user ID.
imagestringrequiredURL of the user's profile avatar image.
last_namestringrequiredLast name of the current user.
loginstringrequiredDeprecated. Use the `email` field.
max_autoscaling_limitnumber · doublerequiredThe maximum autoscaling limit in Compute Units. A value of 0 indicates no limit is configured.
namestringrequiredFirst name of the current user.
planstringrequiredCurrent billing plan for the user's account.
projects_limitinteger · int64requiredMaximum number of projects the account is allowed to create under the current plan.
{
"active_seconds_limit": 0,
"auth_accounts": [
{
"email": "user@example.com",
"image": "string",
"login": "string",
"name": "string",
"provider": "github"
}
],
"billing_account": {
"address_city": "string",
"address_country": "string",
"address_country_name": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"address_state": "string",
"email": "user@example.com",
"name": "string",
"orb_portal_url": "string",
"payment_method": "UNKNOWN",
"payment_source": {
"card": {
"brand": "amex",
"exp_month": 0,
"exp_year": 0,
"last4": "string"
},
"type": "string"
},
"plan_details": {
"name": "string",
"version": {
"major": 0,
"minor": 0
}
},
"quota_reset_at_last": "2026-06-09T00:00:00Z",
"spending_limit_cents": 0,
"state": "UNKNOWN",
"subscription_type": "UNKNOWN",
"tax_id": "string",
"tax_id_type": "string"
},
"branches_limit": 0,
"compute_seconds_limit": 0,
"email": "user@example.com",
"id": "string",
"image": "string",
"last_name": "string",
"login": "string",
"max_autoscaling_limit": 0,
"name": "string",
"plan": "string",
"projects_limit": 0
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}