---
title: "Get project events"
method: GET
path: "/api/projects/{projectName}/events"
tags: ["events"]
---

# Get project events

`GET /api/projects/{projectName}/events`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/events`
- Auth: HTTP bearer

Get project events

## Path parameters

- `projectName` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Project events found

- object
  - `data` Event[]
    - `type` 'Normal' | 'Warning', required: The Kubernetes event type
    - `reason` string, required: A short, machine-understandable reason for the event
    - `message` string, required: A human-readable message describing the event
    - `timestamp` string, date-time, required: When the event occurred
    - `project` string, required: The project this event belongs to
    - `source` 'infra' | 'admin', required: The origin of the event
    - `serviceType` 'app' | 'mysql' | 'postgres' | 'redis', nullable: The type of resource this event is about (e.g. app, mysql, postgres, redis)
    - `serviceName` string, nullable: Name of the service/app/database this event is related to
  - `total` integer

## Other responses

- `401`: User is not authorized
- `404`: Project not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
