User accounts on the BCGW Dashboard are created only through invitations. These endpoints let authorized users generate invite tokens and retrieve invite details. The registration step itself is handled byDocumentation 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.
POST /auth/register/invite/:inviteId.
All write endpoints require the ADMIN or DIRECTOR role. The invite retrieval endpoint is public (used by the registration page to pre-fill the invitee’s email).
Base URL: https://us-east4-breastfeeding-center-gw.cloudfunctions.net/api
POST /invites/send
Creates a new invite record in Firestore and sends an email to the invitee containing a unique registration link. The link points to/register/:inviteId in the dashboard frontend.
Auth required: Yes — ADMIN or DIRECTOR role required
Role restrictions apply to the role field in the request body: a user cannot invite someone to a role higher than their own. An ADMIN can only invite VOLUNTEERs; a DIRECTOR can invite ADMINs or VOLUNTEERs.
Body
First name of the person being invited.
Last name of the person being invited.
Email address the invite will be sent to. Must not already be registered as a dashboard user.
Role to assign when the invitee registers. One of
"VOLUNTEER" or "ADMIN". Defaults to "VOLUNTEER" if omitted. Cannot exceed the inviting user’s own role level.Example
Response
Returns200 OK with the string "Invite successfully created" on success.
Error codes
| Status | Reason |
|---|---|
400 | Missing required fields, or a user with that email already exists, or the invite email could not be sent |
403 | Missing or invalid auth token, insufficient role, or trying to invite someone to a higher role than your own |
GET /invites/id/:inviteId
Retrieves an invite record by its UUID. This endpoint is public (no auth required) and is used by the registration page to validate the invite and pre-fill the invitee’s email address. Auth required: NoPath parameters
The UUID of the invite document in Firestore. Included in the registration link sent by email.
Example
Response
Returns the invite document with an additional computedvalid field.
The invite UUID.
The email address this invite was sent to.
First name of the invited person.
Last name of the invited person.
Role to assign on registration:
"VOLUNTEER", "ADMIN", or "DIRECTOR".Whether this invite has already been used to create an account.
Firestore Timestamp indicating when the invite was created.
Computed field —
true if the invite is unused and has not exceeded the configured expiration window (INVITE_EXPIRE_DAYS, default 7 days).Error codes
| Status | Reason |
|---|---|
404 | No invite found for the given inviteId |
