Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hack4impact-umd/breastfeeding-center-gw/llms.txt
Use this file to discover all available pages before exploring further.
Overview
There are two registration endpoints. Neither requires a Firebase Auth token —POST /auth/register/root is protected by a shared secret, and POST /auth/register/invite/:inviteId is gated by a valid invite document in Firestore.
POST /auth/register/root
Creates the initialDIRECTOR account. This endpoint can only be called once — if a Firebase Auth user with the configured root email already exists, the request is rejected.
Base URL: https://us-east4-breastfeeding-center-gw.cloudfunctions.net/api
Headers
The root user secret defined in the Firebase Functions config. Requests with a missing or incorrect secret are rejected with
403.Body
Must exactly match the root user email in the Firebase Functions config.
First name of the root director.
Last name of the root director.
Password for the new Firebase Auth account.
Optional pronouns stored on the user’s Firestore document.
Optional phone number in E.164 format (e.g.
+12025551234), stored in both Firebase Auth and Firestore.Response
Firebase Auth UID assigned to the new user.
Email address of the created user.
First name of the created user.
Last name of the created user.
Pronouns, or
null if not provided.Phone number, or
null if not provided.Always
"DIRECTOR" for the root account.Example
Error codes
| Status | Reason |
|---|---|
400 | Missing required fields, or root user already exists |
403 | Secret does not match, or email does not match the configured root email |
POST /auth/register/invite/:inviteId
Registers a new user from a valid invite. The invite must exist in Firestore, must not have been used, and must not be expired. The submitted email must match the email recorded on the invite.Path parameters
The UUID of the invite document in Firestore. This is included in the registration link sent via email (e.g.
/register/:inviteId).Body
Must exactly match the
email field on the invite document.First name for the new account.
Last name for the new account.
Password for the new Firebase Auth account.
Optional pronouns stored on the user’s Firestore document.
Optional phone number in E.164 format (e.g.
+12025551234).Response
Firebase Auth UID assigned to the new user.
Email address of the created user.
First name of the created user.
Last name of the created user.
Pronouns, or
null if not provided.Phone number, or
null if not provided.The role assigned by the invite (
"VOLUNTEER", "ADMIN", or "DIRECTOR").Example
Error codes
| Status | Reason |
|---|---|
400 | Missing required fields, or a user with that email already exists |
403 | Invite is expired, already used, or the submitted email does not match the invite |
404 | No invite document found for the given inviteId |
