> ## Documentation Index
> Fetch the complete documentation index at: https://docs.justanotheruptime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invite user to project

> Invite a user to a specific project by email



## OpenAPI

````yaml /openapi.json post /projects/{id}/users
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /projects/{id}/users:
    post:
      tags:
        - Projects
      summary: Invite user to project
      description: Invite a user to a specific project by email
      operationId: ProjectController_inviteUser
      parameters:
        - name: id
          required: true
          in: path
          description: Project ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteUserDto'
      responses:
        '200':
          description: User successfully invited to project
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
        '404':
          description: Project or user not found
      security:
        - bearer: []
components:
  schemas:
    InviteUserDto:
      type: object
      properties:
        email:
          type: string
        role:
          type: string
          enum:
            - user
            - admin
            - project_manager
            - super_admin
      required:
        - email
        - role
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````