Invite a staff member to the firm

POST /api/v1/advisory-firms/{firm_id}/users/invite

Invite a user by email to join the firm as staff (admin or member). If the user already exists they are added immediately; otherwise an invitation email is sent and they are added on signup. Owner role cannot be assigned via invitation.

Operation ID: invite_staff_to_firm_api_v1_advisory_firms__firm_id__users_invite_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

firm_id string required

Request body

email string required

Email address of the person to invite.

role string

Role to assign: 'admin' or 'member'. Owner cannot be invited.

One of: admin, member

first_name string

Optional first name to personalize the invitation.

last_name string

Optional last name to personalize the invitation.

message string

Optional personal message from the inviter included in the email.

business_ids array · string

For 'member' role: explicit list of businesses the invitee should be assigned to on acceptance. Ignored for 'admin' (admins see every firm business).

team_id string

For 'member' role: team to add the invitee to on acceptance. Mutually exclusive with 'business_ids' and 'assign_all_firm_businesses'.

assign_all_firm_businesses boolean

For 'member' role: if true, grant the invitee direct assignment to every currently active firm business on acceptance.

Responses

201 Successful Response

status string required

'added' if user existed and was added, 'invited' if invitation email was sent.

reason string

Why this branch was chosen. Lets the UI render the right confirmation message without parsing 'message'.

message string required
email_sent boolean

Whether the notification email was sent successfully.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

409 Conflict - Resource already exists

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object