public-api API

HTTP boundary for `/api/invites` POST requests.

Function I/O

NameInOutSidePurpose
postInvitesHttpRequestHttpResponsenetworkValidates the bearer token then delegates to invite-issuance-service.

Variables

NameTypeScopePurpose
tokenstringcallBearer token used to resolve the requesting member.

Internal data flow

1 Validate Authorization header. 2 Resolve userId from token. 3 Call invite-issuance-service.Issue. 4 Serialize response.

Errors

NameWhenMeans
ErrUnauthorizedToken missing or invalid.401 response.