FusionAuth User API

The User API from FusionAuth — 29 operation(s) for user.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 55

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/user Create a user account · Create user #
Ask an LLM
“How do I create a new user account through the API?”
“Can I skip verification when creating a user?”
Tell an agent
Create a user with {user}.
Create a user with {user} and send a set-password email.
GET /api/user Find a user by verificationId, username or email · Retrieve user #
Ask an LLM
“How do I look up a user's account using the verificationId from a forgot-password email?”
“Can I find a user by their username or email instead of their ID?”
Tell an agent
Find the user with verificationId {verificationId}.
Look up the user with username {username}.
POST /api/user/action Take an action on a user · Action user with id #
Ask an LLM
“How do I apply a moderation action to a user, such as a warning or suspension?”
“Can I broadcast an event when I take an action against a user?”
Tell an agent
Take the action {action} against a user and broadcast it: {broadcast}.
Apply action {action} to a user with event details {eventInfo}.
GET /api/user/action List a user's actions · Retrieve user actioning #
Ask an LLM
“What actions are currently active on a user's account?”
“Can I see only the actions that are preventing a user from logging in?”
Tell an agent
List the actions on user {userId}.
Show only the actions on user {userId} that are preventing login.
DELETE /api/user/action/{actionId} Cancel a user action · Cancel action with id #
Ask an LLM
“How do I cancel a user action before it expires?”
“Can I revoke a user action by its ID?”
Tell an agent destructive · confirm first
Cancel user action {actionId}.
Revoke the action {actionId} on a user.
PUT /api/user/action/{actionId} Extend or comment on a user action · Modify action with id #
Ask an LLM
“How do I extend the expiration of a user action?”
“Can I add a comment to a user action log?”
Tell an agent
Extend user action {actionId} to expire {action}.
Comment {action} on user action {actionId}.
GET /api/user/action/{actionId} Get a user action log · Retrieve action with id #
Ask an LLM
“How do I read the log of a single action taken on a user?”
“What comment and expiration did a user action log have?”
Tell an agent
Get user action log {actionId}.
Show the action log {actionId} for a user.
DELETE /api/user/bulk Delete or deactivate users · Delete user bulk #
Ask an LLM
“How do I permanently delete several users at once?”
“Can I deactivate users matching a query without hard-deleting them?”
Tell an agent destructive · confirm first
Delete users {userIds}.
Deactivate users matching {query}.
POST /api/user/change-password Change a user's password with their current password · Create user change password #
Ask an LLM
“How do I let a logged-in user change their own password?”
“Can I change a password using the user's identity instead of a change password id?”
Tell an agent
Change the password of {loginId} from {currentPassword} to {password}.
Let user {loginId} change their password to {password} with trust token {trustToken}.
GET /api/user/change-password Check if a password change needs a trust token · Retrieve user change password #
Ask an LLM
“Before changing a password, do I need a trust token for MFA?”
“How do I check whether a password change request needs a trust request id?”
Tell an agent
Check whether changing the password for {loginId} needs a trust token.
Check the trust token requirement for {loginId} using loginId types {loginIdTypes}.
POST /api/user/change-password/{changePasswordId} Change a user's password using a change-password id · Change password with id #
Ask an LLM
“How do I let a user set a new password after they click a reset link?”
“Can I change a password using the change-password id in the request body?”
Tell an agent
Change the password for {changePasswordId} to {password}.
Set a new password {password} for {changePasswordId} using trust challenge {trustChallenge}.
GET /api/user/change-password/{changePasswordId} Check a change-password link before using it · Retrieve user change password with id #
Ask an LLM
“Before a user clicks a password reset link, how do I check it's still valid?”
“What does a change-password link check before letting the user change their password?”
Tell an agent
Check change-password link {changePasswordId}.
Validate the password reset link {changePasswordId} for {ipAddress}.
POST /api/user/comment Add a comment to a user account · Comment on user with id #
Ask an LLM
“How do I leave a note on a user's account?”
“Can I add a comment to a user's profile?”
Tell an agent
Add comment {userComment} to user {userId}.
Comment {userComment} on the user account.
POST /api/user/comment/search Search a user's comments · Search user comments with id #
Ask an LLM
“Can I search the comments users have left on a profile?”
“What are the comments tagged to a particular user?”
Tell an agent
Search comments for user {search}.
Find comments tagged on this user.
GET /api/user/comment/{userId} List comments on a user account · Retrieve user comments with id #
Ask an LLM
“What comments have been left on a user's account?”
“Can I read all the notes on a user profile?”
Tell an agent
List comments on user {userId}.
Show every note left on the user account.
POST /api/user/consent Record a user's consent · Create user consent #
Ask an LLM
“How do I record that a user agreed to a privacy policy?”
“Can I create a consent record for a user?”
Tell an agent
Create consent {userConsent} for the user.
Record the user's consent {userConsent}.
GET /api/user/consent List a user's consents · Retrieve user consents with id #
Ask an LLM
“What consents has a user given?”
“Can I see a user's consent history?”
Tell an agent
List consents for user {userId}.
Show the consents given by the user account.
POST /api/user/consent/{userConsentId} Create a user consent with a given ID · Create user consent with id #
Ask an LLM
“How do I create a consent record with a specific ID?”
“Can I set the consent ID when creating a user consent?”
Tell an agent
Create user consent {userConsentId} with {userConsent}.
Create consent {userConsentId} for the user account.
PATCH /api/user/consent/{userConsentId} Update a user's consent · Patch user consent with id #
Ask an LLM
“Can I change the scope or expiry of a user's consent?”
“What does a partial update to a consent record accept?”
Tell an agent
Update user consent {userConsentId} with {userConsent}.
Patch the consent record {userConsentId} to {userConsent}.
GET /api/user/consent/{userConsentId} Get a user consent · Retrieve user consent with id #
Ask an LLM
“How do I read one consent record a user gave?”
“What does a single user consent contain?”
Tell an agent
Get user consent {userConsentId}.
Show the consent record {userConsentId}.
DELETE /api/user/consent/{userConsentId} Revoke a user's consent · Revoke user consent with id #
Ask an LLM
“How do I withdraw a user's consent to a data processing activity?”
“Can I revoke one consent record by its id?”
Tell an agent destructive · confirm first
Revoke user consent {userConsentId}.
Withdraw the consent record {userConsentId} for this user.
PUT /api/user/consent/{userConsentId} Update a user consent · Update user consent with id #
Ask an LLM
“How do I change an existing consent record?”
“Can I edit a user's consent?”
Tell an agent
Update user consent {userConsentId} to {userConsent}.
Edit the consent record {userConsentId}.
POST /api/user/family Create a family group · Create family #
Ask an LLM
“How do I set up a family group with one member?”
“Can I create a family group and add a member in one call?”
Tell an agent
Create a family group with member {familyMember}.
Set up a new family group for {familyMember}.
GET /api/user/family List a user's family memberships · Retrieve families with id #
Ask an LLM
“Which family groups does a user belong to?”
“Can I see all the family memberships a user has?”
Tell an agent
List the family memberships of user {userId}.
Show every family group {userId} is a member of.
GET /api/user/family/pending List children waiting to join a family · Retrieve pending children with id #
Ask an LLM
“Which children are waiting for a parent to register for a family?”
“Can I find pending family requests by parent email?”
Tell an agent
List children waiting for parent {parentEmail}.
Show the pending family requests for {parentEmail}.
POST /api/user/family/request Email a parent to join a family · Send family request email with id #
Ask an LLM
“How do I remind a parent to create or join a family?”
“Can I send a family request email to a parent's address?”
Tell an agent
Send a family request email to {parentEmail}.
Email {parentEmail} about creating or joining a family.
PUT /api/user/family/{familyId} Add a member to an existing family · Update user family with id #
Ask an LLM
“How do I add a child to a family that already exists?”
“Can I update a family group by adding a member?”
Tell an agent
Add {familyMember} to existing family {familyId}.
Update family {familyId} with member {familyMember}.
POST /api/user/family/{familyId} Create a family group with an id · Create family with id #
Ask an LLM
“Can I create a family group and give it my own id?”
“What happens if I supply a family id when creating a family?”
Tell an agent
Create family {familyId} with member {familyMember}.
Create family group {familyId} owned by {familyMember}.
GET /api/user/family/{familyId} List members of a family · Retrieve family members by family id with id #
Ask an LLM
“Who are the members of a family group?”
“Can I fetch every member of a family by its id?”
Tell an agent
List the members of family {familyId}.
Show who belongs to family group {familyId}.
DELETE /api/user/family/{familyId}/{userId} Remove a member from a family · Remove user from family with id #
Ask an LLM
“How do I take a child out of a family group?”
“Can I remove a user from a family by both ids?”
Tell an agent destructive · confirm first
Remove user {userId} from family {familyId}.
Take {userId} out of family group {familyId}.
POST /api/user/forgot-password Start a password reset for a user · Forgot password with id #
Ask an LLM
“How do I kick off a password reset email for a user?”
“Can I send a password reset to a user's email or username?”
Tell an agent
Start a password reset for {loginId}.
Email a password reset link to {email}.
POST /api/user/import Bulk import users · Import users with id #
Ask an LLM
“How do I import a batch of users into FusionAuth?”
“Can I bulk import users with an option to validate database constraints?”
Tell an agent
Import these users: {users}.
Bulk import users {users} with validation {validateDbConstraints}.
GET /api/user/recent-login List a user's recent logins · Retrieve user recent login #
Ask an LLM
“What were a user's most recent login attempts?”
“Can I page through a user's login history?”
Tell an agent
Show the last {limit} logins for user {userId}.
List {limit} recent login records for {userId}.
POST /api/user/refresh-token/import Bulk import refresh tokens · Import refresh tokens with id #
Ask an LLM
“How do I bulk load refresh tokens for existing users?”
“Can I import refresh tokens with validation turned on?”
Tell an agent
Import these refresh tokens: {refreshTokens}.
Bulk load refresh tokens {refreshTokens} with validation {validateDbConstraints}.
POST /api/user/registration Register a user for an application · Register #
Ask an LLM
“How do I register a new user for an application in one call?”
“Can I create a user and register them for an app at the same time?”
Tell an agent
Register {user} for application {registration}.
Create a new user and register them for {registration}.
PATCH /api/user/registration/{userId} Partially update a user's application registration · Patch registration with id #
Ask an LLM
“Can I change just one field of an existing user's registration?”
“What does a partial update to a user's registration accept?”
Tell an agent
Patch the registration of user {userId} with {registration}.
Partially update user {userId}'s registration to {registration}.
POST /api/user/registration/{userId} Register an existing user for an application · Register with id #
Ask an LLM
“How do I register a user who already exists for an application?”
“Can I add an existing user to an application without creating them again?”
Tell an agent
Register existing user {userId} for {registration}.
Add {userId} to application {registration}.
PUT /api/user/registration/{userId} Update a user's application registration · Update registration with id #
Ask an LLM
“How do I change the registration of an existing user for an app?”
“Can I update a user's registration without recreating them?”
Tell an agent
Update the registration of user {userId} for {registration}.
Change user {userId}'s registration to {registration}.
DELETE /api/user/registration/{userId}/{applicationId} Remove a user's registration from an application · Delete user registration with id #
Ask an LLM
“How do I unregister a user from an application?”
“Can I delete a user's registration for an app?”
Tell an agent destructive · confirm first
Delete the registration of user {userId} from application {applicationId}.
Unregister {userId} from {applicationId}.
GET /api/user/registration/{userId}/{applicationId} Get a user's registration for an application · Retrieve registration with id #
Ask an LLM
“What are the details of a user's registration for one application?”
“Can I fetch a single user's application registration by id?”
Tell an agent
Get the registration of user {userId} for application {applicationId}.
Show how {userId} is registered in {applicationId}.
GET /api/user/search Look up users by their IDs · Search users by ids with id #
Ask an LLM
“How do I fetch several users when I already have their IDs?”
“What happens if one of the user IDs I pass is invalid?”
Tell an agent
Get the users with IDs {ids}.
Look up users {ids} by their IDs.
POST /api/user/search Search users with a query · Search users by query with id #
Ask an LLM
“How do I find users matching a name or email?”
“Can I page through search results when searching users?”
Tell an agent
Search users with the query {search}.
Find users matching {search}, {expand} for each result.
POST /api/user/two-factor/recovery-code/{userId} Generate new two-factor recovery codes · Generate two factor recovery codes with id #
Ask an LLM
“How do I issue a new set of two-factor recovery codes?”
“Do existing recovery codes get invalidated when I generate new ones?”
Tell an agent
Generate new two-factor recovery codes for user {userId}.
Issue fresh 2FA backup codes for user {userId}.
GET /api/user/two-factor/recovery-code/{userId} Get a user's two-factor recovery codes · Retrieve two factor recovery codes with id #
Ask an LLM
“How do I show a user their two-factor recovery codes?”
“Where can a user find the backup codes for 2FA?”
Tell an agent
Retrieve the two-factor recovery codes for user {userId}.
Show user {userId}'s 2FA backup codes.
DELETE /api/user/two-factor/{userId} Disable two-factor authentication for a user · Delete user two factor with id #
Ask an LLM
“How do I turn off two-factor authentication for a user?”
“Can I disable just one 2FA method for a user?”
Tell an agent destructive · confirm first
Disable two-factor authentication for user {userId}.
Turn off 2FA for user {userId} using method {methodId}.
POST /api/user/two-factor/{userId} Enable two-factor authentication for a user · Enable two factor with id #
Ask an LLM
“How do I turn on two-factor authentication for a user?”
“Can I set up 2FA for a user by email or phone?”
Tell an agent
Enable two-factor authentication for user {userId}.
Set up 2FA for user {userId} using method {method}.
PUT /api/user/verify-email Resend a user's email verification email · Update user verify email #
Ask an LLM
“How do I resend the email verification link to a user?”
“Can I force a new verification email to be sent to a user?”
Tell an agent
Resend the email verification email to {email}.
Send a new verification email to {email} for application {applicationId}.
POST /api/user/verify-email Administer a user's email verification · Create user verify email #
Ask an LLM
“How do I mark a user's email as verified without sending an email?”
“Can I confirm a user's email address with a verification ID?”
Tell an agent
Admin-verify the email of user {userId}.
Confirm user {userId}'s email with verification ID {verificationId}.
PUT /api/user/verify-registration Re-send a registration verification email · Update user verify registration #
Ask an LLM
“How do I resend the application registration verification email to a user?”
“Can I get a fresh verification id for a user's registration without emailing them?”
Tell an agent
Re-send the registration verification email for {email}.
Generate a new verification id for user {email} in application {applicationId}, sending a {sendVerifyPasswordEmail} email.
POST /api/user/verify-registration Confirm a user's registration · Verify user registration with id #
Ask an LLM
“How do I confirm a user's registration with a verification ID and one-time code?”
“What do I need to verify a user's registration?”
Tell an agent
Verify the registration of user {verificationId} with one-time code {oneTimeCode}.
Confirm user registration using verification ID {verificationId}.
POST /api/user/{userId} Create a user with an id · Create user with id #
Ask an LLM
“How do I create a user with a specific id instead of letting FusionAuth generate one?”
“Can I bypass verification when creating a user for an admin?”
Tell an agent
Create user {user} with id {userId}.
Create user {user} in application {applicationId}, skipping verification: {skipVerification}.
DELETE /api/user/{userId} Delete a user · Delete user with id #
Ask an LLM
“How do I permanently delete a user?”
“Can I hard-delete a user instead of just deactivating them?”
Tell an agent destructive · confirm first
Delete user {userId}.
Hard-delete user {userId} with {hardDelete}.
PATCH /api/user/{userId} Patch a user's profile · Patch user with id #
Ask an LLM
“How do I change just a few fields on a user's profile?”
“Can I update a user's profile with a partial JSON patch?”
Tell an agent
Patch user {userId} with {user}.
Update only the fields {user} on user {userId}.
PUT /api/user/{userId} Update a user's profile · Update user with id #
Ask an LLM
“How do I change a user's name or email?”
“Can I reactivate a deactivated user?”
Tell an agent
Update user {userId} with {user}.
Reactivate user {userId} with {user}.
GET /api/user/{userId} Get a user's profile · Retrieve user with id #
Ask an LLM
“How do I look up a single user by ID?”
“Can I fetch a user's profile along with their tenant ID?”
Tell an agent
Get user {userId}.
Show the profile of user {userId} in tenant {tenant}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fusionauth:fusionauth-user-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fusionauth-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.66.0
  title: FusionAuth User API
  description: This is a FusionAuth server. Find out more at https://fusionauth.io. You need to set up an API key in the FusionAuth instance you are using to test out the API calls.
  license:
    name: Apache2
servers:
- url: http://localhost:9011
- url: https://sandbox.fusionauth.io
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (96 KB total) ---
# Full source: https://artifacts.apis.io/fusionauth/openapi/fusionauth-user-api-openapi.yml