---
title: "Enroll new user"
method: POST
path: "/api/enroll"
tags: ["Authentication"]
---

# Enroll new user

`POST /api/enroll`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/enroll`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/enroll/post.ts> (a function with typed inputs; its response is checked against the schema)

Enrolls a new user into SponsorUnited. The user's email domain must match a registered organization. Credentials will be sent via email.

## Request body

- EnrollRequest
  - `firstname` string, required: User's first name
  - `lastname` string, required: User's last name
  - `email` string, email, required: User's email address

## Response `200`

Enrollment result

- EnrollResponse
  - `success` boolean: Whether enrollment was successful
  - `message` string: Enrollment result message

## Other responses

- `422`: Validation error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
