Skip to main content
The Users API lets you manage every member of your mFoundry organization without leaving your own tooling. You can list current members, fetch individual profiles, programmatically invite new colleagues via email, and update roles as responsibilities change. All user endpoints sit under /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 the invited 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.
Example response:

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).
Example response:

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 with status: 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 control
  • admin — can manage members and most resources
  • member — can create and edit resources
  • viewer — read-only access
Example response (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.
Example response: