Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Nhost user API

User profile and account management operations including email/password changes, MFA configuration, and profile updates

Nhost user API is one of 14 APIs that Nhost publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include user. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 6 paths, and defines 9 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.

Requests are made against a single base URL, https://{subdomain}.auth.{region}.nhost.run/v1.

6 operations 6 paths 9 schemas 2 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0.0
Base URL
https://{subdomain}.nhost.run/v1/graphql
Authentication
HTTP Bearer, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Nhost user API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). It accepts HTTP bearer tokens (BearerAuthElevated).

  • BearerAuth — Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.
  • BearerAuthElevated — Bearer authentication that requires elevated permissions. Used for sensitive operations that may require additional security measures such as recent authentica…

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 2 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

user 6

User profile and account management operations including email/password changes, MFA configuration, and profile updates

GET
/mfa/totp/generate
Generate TOTP secret
changeUserMfa → 200default
GET
/user
Get user information
getUser → 200default
POST
/user/email/change
Change user email
changeUserEmail body → 200default
POST
/user/email/send-verification-email
Send verification email
sendVerificationEmail body → 200default
POST
/user/password
Change user password
changeUserPassword body → 200default
POST
/user/password/reset
Request password reset
sendPasswordResetEmail body → 200default

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are User (14 properties), ErrorResponse (3 properties), UserPasswordRequest (2 properties), TotpGenerateResponse (2 properties). Each schema is shown below with its type and property counts.

User
object
User profile and account information
14 properties 11 required
TotpGenerateResponse
object
Response containing TOTP setup information for MFA
2 properties 2 required
ErrorResponse
object
Standardized error response
3 properties 3 required
OptionsRedirectTo
object
1 property
UserEmailChangeRequest
object
2 properties 1 required
UserEmailSendVerificationEmailRequest
object
2 properties 1 required
OKResponse
string
UserPasswordRequest
object
2 properties 1 required
UserPasswordResetRequest
object
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nhost-user-api-openapi.yml Raw ↑

Other APIs Nhost publishes across the network.

Nhost GraphQL API
Nhost Serverless Functions API
Nhost AI API
Nhost authentication API
Nhost documentation API
Nhost excludeme API
Nhost files API
Nhost operations API
Nhost security API
Nhost session API
Nhost storage API
Nhost system API