/v1/users and operate within the scope of the authenticated key’s organization.
GET /v1/users
List all users who are members of your organization, including users in theinvited state who have not yet accepted their invitation. Results are paginated in reverse-chronological order.
integer
Number of users to return per page. Defaults to
20. Maximum is 100.string
Pagination cursor returned as
next_cursor in a previous response. Omit to start from the first page.GET /v1/users/:id
Retrieve a single user’s full profile by their unique ID. This returns all fields including their role and the timestamp they joined (or were invited to) the organization.string
required
The unique identifier of the user to retrieve (for example,
user_abc123).POST /v1/users
Invite a new user to your organization by email. mFoundry sends an invitation email immediately upon success. The new user’s record is created withstatus: invited and becomes active once they accept the invitation.
string
required
The email address of the person you are inviting. Must be a valid email format and not already associated with an active member of your organization.
string
required
The role to assign to the invited user. Must be one of:
owner— full administrative controladmin— can manage members and most resourcesmember— can create and edit resourcesviewer— read-only access
201 Created):
An invitation email is sent automatically to the provided address as soon as the API responds with
201 Created. You do not need to trigger a separate send step. The invitation link expires after 72 hours — if the recipient misses it, delete the user record and invite them again to generate a fresh link.PUT /v1/users/:id
Update a user’s role within your organization. This is the only field you can change via the API; name and email changes must be made by the user themselves from their account settings.string
required
The unique identifier of the user whose role you want to update.
string
required
The new role to assign. Must be one of:
owner, admin, member, viewer.