# Members & invites: Invite a user (https://docs.envocal.ai/api-reference/members-and-invites/invite-a-user/) > - If an account with this email exists, the user is added to the tenant directly and notified by email (204). - Otherwise an invitation email is sent with a link that is valid for 7 days (202). Inviting the same email again updates the role and resends the invitation. ## POST `/v1/tenants/{tenantId}/invites` - If an account with this email exists, the user is added to the tenant directly and notified by email (`204`). - Otherwise an invitation email is sent with a link that is valid for 7 days (`202`). Inviting the same email again updates the role and resends the invitation. **Required permission:** `members:write` ### Parameters | Name | In | | Type | Description | | --- | --- | --- | --- | --- | | `tenantId` | path | required | string | Tenant id, or `current` for the key's own tenant. Must be the key's tenant or one of its sub-tenants. | ### Request body `application/json`: InviteCreateDto | Field | Type | | Description | | --- | --- | --- | --- | | `email` | string | required | Email address to invite. | | `role` | TenantRole | | Role to give: `User` or `Admin` (`Owner` is not assignable). | ### Responses **202**: Invitation sent. **204**: Existing user added directly. **400**: `Owner` is not assignable. **401**: Missing, invalid, revoked or expired API key. **403**: The key lacks the required permission, or the tenant/resource is outside its reach. **409**: The user is already a member here, or of a parent tenant (and inherits access). **429**: Rate limit exceeded. Retry after the number of seconds in the Retry-After header. ### Example ```bash curl -X POST "https://api.envocal.ai/v1/tenants/current/invites" \ -H "Authorization: Bearer evk_eu_..." \ -H "Content-Type: application/json" \ -d '{"email":"string"}' ```