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

# Get Event With Stats

> Get a single event by ID with invitation statistics

This endpoint retrieves detailed information about a specific event, including statistics about invitations. It's perfect for building event dashboards and monitoring attendance.

**What it does:**

* Fetches complete information about a single event using its ID
* Provides statistics about invitations (sent, accepted, pending, rejected)
* Shows you the current status of your event and its attendance metrics

**When to use it:**

* When building an event management dashboard
* When you need to monitor invitation response rates
* When checking how many people have accepted your invitations
* Before an event to assess expected attendance

## Path Parameters

| Parameter  | Type   | Required | Description                                    |
| ---------- | ------ | -------- | ---------------------------------------------- |
| `event_id` | string | Yes      | The unique identifier of the event to retrieve |

## Response

The API returns the event object with all its details, including invitation statistics:

```json theme={null}
{
  "id": "event-123",
  "description": "Join us for the annual tech conference featuring speakers from top tech companies",
  "instructions": "Please arrive 30 minutes before the event starts for registration",
  "title": "Annual Tech Conference",
  "imageUrl": "https://example.com/event-image.jpg",
  "status": "upcoming",
  "type": "dated",
  "location": {
    "address": "123 Conference Center Dr",
    "city": "San Francisco",
    "state": "CA",
    "zipCode": "94105",
    "country": "USA"
  },
  "start_timestamp": 1677609600,
  "end_timestamp": 1677696000,
  "is_deleted": false,
  "invite_stats": {
    "sent": 150,
    "accepted": 75,
    "pending": 50,
    "rejected": 25,
    "total": 150
  }
}
```

The `invite_stats` field shows you:

* How many invitations were sent total (`total`)
* How many people have accepted your invitation (`accepted`)
* How many haven't responded yet (`pending`)
* How many declined to attend (`rejected`)

This helps you gauge interest and plan accordingly for your event's attendance.


## OpenAPI

````yaml GET /events/{event_id}
openapi: 3.1.0
info:
  title: Securegate.ai API
  version: 0.1.0
servers:
  - url: https://api.securegate.ai
    description: Production environment
security:
  - ApiKeyAuth: []
paths:
  /events/{event_id}:
    get:
      summary: Get Event With Stats
      description: Get a single event by ID with invitation statistics
      operationId: get_event_with_stats_events__event_id__get
      parameters:
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventWithStats'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EventWithStats:
      properties:
        id:
          type: string
          title: Id
        description:
          type: string
          title: Description
        instructions:
          type: string
          title: Instructions
        title:
          type: string
          title: Title
        imageUrl:
          type: string
          title: Imageurl
        status:
          type: string
          title: Status
        type:
          $ref: '#/components/schemas/EventType'
        location:
          $ref: '#/components/schemas/EventLocation'
        start_timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Timestamp
        end_timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Timestamp
        is_deleted:
          type: boolean
          title: Is Deleted
        invite_stats:
          $ref: '#/components/schemas/InviteStats'
      type: object
      required:
        - id
        - description
        - instructions
        - title
        - imageUrl
        - status
        - type
        - location
        - is_deleted
        - invite_stats
      title: EventWithStats
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EventType:
      type: string
      enum:
        - fixed
        - dated
      title: EventType
    EventLocation:
      properties:
        address:
          type: string
          title: Address
        city:
          type: string
          title: City
        state:
          type: string
          title: State
        zipCode:
          type: string
          title: Zipcode
        country:
          type: string
          title: Country
      type: object
      required:
        - address
        - city
        - state
        - zipCode
        - country
      title: EventLocation
    InviteStats:
      properties:
        sent:
          type: integer
          title: Sent
        accepted:
          type: integer
          title: Accepted
        pending:
          type: integer
          title: Pending
        rejected:
          type: integer
          title: Rejected
        total:
          type: integer
          title: Total
      type: object
      required:
        - sent
        - accepted
        - pending
        - rejected
        - total
      title: InviteStats
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key authentication. Add your API key as the value of the 'x-api-key'
        header.

````