---
title: "List recent GitHub activity"
method: GET
path: "/v1/integrations/github/{integrationId}/activity"
tags: ["Content"]
---

# List recent GitHub activity

`GET /v1/integrations/github/{integrationId}/activity`

## Request

- Base URL: `https://api.usenotra.com`
- URL: `https://api.usenotra.com/v1/integrations/github/{integrationId}/activity`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/usenotra/apis/notra-api/docs/v1/integrations/github/:integrationId/activity/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists pull requests merged into the default branch, commits on the default branch, or releases published in a connected repository within a time window, so you can decide what to write about before calling create_post or generate_post. Reads GitHub live; pagination follows GitHub's pages, so a page can hold fewer items than the page size while nextPage is still set.

## Path parameters

- `integrationId` string, required

## Query parameters

- `type` 'pull_requests' | 'commits' | 'releases': Activity to list: pull requests merged into the default branch, commits on the default branch, or releases published in the repository.
- `since` string, date-time: Start of the window (ISO 8601). Defaults to 7 days ago.
- `until` string, date-time: End of the window (ISO 8601). Defaults to now.
- `page` integer: Page number

## Response `200`

Activity fetched successfully

- object
  - `integration` object, required
    - `id` string, required
    - `displayName` string, required
    - `owner` string, nullable, required
    - `repo` string, nullable, required
    - `defaultBranch` string, nullable, required
  - `type` 'pull_requests' | 'commits' | 'releases', required
  - `since` string, required
  - `until` string, required
  - `items` object[], required
    - `ref` string, required: Pull request number, commit SHA or release tag, depending on type.
    - `title` string, required
    - `body` string, nullable, required
    - `author` string, nullable, required
    - `url` string, required
    - `occurredAt` string, required: Merge, commit or publish time (ISO 8601).
  - `pagination` object, required
    - `page` integer, required
    - `nextPage` integer, nullable, required
  - `organization` object, required
    - `id` string, required
    - `slug` string, required
    - `name` string, required
    - `logo` string, nullable, required

## Other responses

- `400`: Invalid request or repository no longer readable
- `401`: Missing or invalid API key
- `403`: Forbidden
- `404`: GitHub integration not found
- `503`: GitHub unavailable or rate limited

## Changes

- **2026-11-01** `b2465e605a4d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usenotra/apis/notra-api/changes/v1/integrations/github/:integrationId/activity/get.md)

---

[API](https://skmtc.dev/usenotra/apis/notra-api.md) - [All operations](https://skmtc.dev/usenotra/apis/notra-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usenotra/apis/notra-api/revisions/a81c93229b54?raw)
