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

# List recent GitHub activity

> 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.



## OpenAPI

````yaml https://api.usenotra.com/openapi.json get /v1/integrations/github/{integrationId}/activity
openapi: 3.1.1
info:
  title: Notra API
  version: 1.0.0
  description: >-
    OpenAPI schema for Notra content endpoints. Use GET /v1/status for public
    reachability. Error responses include recovery guidance. Breaking changes
    ship under a new major path; deprecated operations send Deprecation and
    Sunset headers at least 90 days before removal.
servers:
  - url: https://api.usenotra.com
    description: Production
  - url: https://demo-api.usenotra.com
    description: >-
      Sandbox with sample data. Get a free sandbox key at demo.usenotra.com, no
      signup needed
security:
  - BearerAuth: []
tags:
  - name: Webhooks
    description: Manage outbound webhook subscriptions and delivery history.
  - name: Discovery
    description: Public API status and authenticated workspace discovery.
  - name: Content
    description: >-
      Manage posts, brand identities, and GitHub or Linear integrations, and
      queue content generation. Organization is inferred from the API key
      (identity.externalId).
  - name: Schedules
    description: >-
      Manage scheduled content generation. Organization is inferred from the API
      key (identity.externalId).
  - name: Event Triggers
    description: >-
      Manage event-based content generation triggered by GitHub webhooks.
      Organization is inferred from the API key (identity.externalId).
  - name: Chats
    description: >-
      Manage chat sessions. Organization is inferred from the API key
      (identity.externalId).
  - name: Skills
    description: >-
      Manage reusable writing skills. Organization is inferred from the API key
      (identity.externalId).
  - name: Feedback
    description: >-
      Collect and triage feedback submitted by AI agents. Agents post to the
      organization's feedback URL without credentials; reading and triage
      require an API key with feedback.read or feedback.write.
  - name: GEO
    description: >-
      Manage generative engine optimization: projects, tracking settings,
      prompts, prompt sequences, competitors, scans, visibility reads, content
      gaps and briefs, agent readiness and AI traffic. Project-scoped endpoints
      require the GEO plan entitlement in addition to their scope;
      organization-level ingest endpoints require only the traffic scope.
  - name: Sites
    description: >-
      Notra Sites are hosted blogs and changelogs built from a GitHub
      repository. Read Sites and their deployments, start builds, preview posts
      on a Site, open pull requests that publish posts to it, and manage
      blog.json authors and the author page through staged Design changes.
      Domains, settings, rollbacks and deletion stay in the dashboard.
externalDocs:
  description: Notra API versioning and deprecation policy
  url: https://www.usenotra.com/docs/api/versioning
paths:
  /v1/integrations/github/{integrationId}/activity:
    get:
      tags:
        - Content
      summary: List recent GitHub activity
      description: >-
        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.
      operationId: getGitHubActivity
      parameters:
        - schema:
            type: string
            minLength: 1
            pattern: ^[A-Za-z0-9_-]{1,100}$
            example: 51c2f3aa-efdd-4e28-8e69-23fa2dfd3561
          required: true
          in: path
          name: integrationId
        - schema:
            type: string
            enum:
              - pull_requests
              - commits
              - releases
            default: pull_requests
            description: >-
              Activity to list: pull requests merged into the default branch,
              commits on the default branch, or releases published in the
              repository.
            example: pull_requests
          required: false
          description: >-
            Activity to list: pull requests merged into the default branch,
            commits on the default branch, or releases published in the
            repository.
          name: type
          in: query
        - schema:
            type: string
            format: date-time
            description: Start of the window (ISO 8601). Defaults to 7 days ago.
            example: '2026-10-23T00:00:00Z'
          required: false
          description: Start of the window (ISO 8601). Defaults to 7 days ago.
          name: since
          in: query
        - schema:
            type: string
            format: date-time
            description: End of the window (ISO 8601). Defaults to now.
            example: '2026-10-30T00:00:00Z'
          required: false
          description: End of the window (ISO 8601). Defaults to now.
          name: until
          in: query
        - schema:
            type: integer
            minimum: 1
            default: 1
            description: Page number
            example: 1
          required: false
          description: Page number
          name: page
          in: query
      responses:
        '200':
          description: Activity fetched successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  integration:
                    type: object
                    properties:
                      id:
                        type: string
                      displayName:
                        type: string
                      owner:
                        type:
                          - string
                          - 'null'
                      repo:
                        type:
                          - string
                          - 'null'
                      defaultBranch:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - displayName
                      - owner
                      - repo
                      - defaultBranch
                  type:
                    type: string
                    enum:
                      - pull_requests
                      - commits
                      - releases
                  since:
                    type: string
                  until:
                    type: string
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        ref:
                          type: string
                          description: >-
                            Pull request number, commit SHA or release tag,
                            depending on type.
                          example: '482'
                        title:
                          type: string
                        body:
                          type:
                            - string
                            - 'null'
                        author:
                          type:
                            - string
                            - 'null'
                        url:
                          type: string
                        occurredAt:
                          type: string
                          description: Merge, commit or publish time (ISO 8601).
                      required:
                        - ref
                        - title
                        - body
                        - author
                        - url
                        - occurredAt
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      nextPage:
                        type:
                          - integer
                          - 'null'
                    required:
                      - page
                      - nextPage
                  organization:
                    type: object
                    properties:
                      id:
                        type: string
                      slug:
                        type: string
                      name:
                        type: string
                      logo:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - slug
                      - name
                      - logo
                required:
                  - integration
                  - type
                  - since
                  - until
                  - items
                  - pagination
                  - organization
        '400':
          description: Invalid request or repository no longer readable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: GitHub integration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: GitHub unavailable or rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        recovery:
          type: string
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Send your API key in the Authorization header as Bearer API_KEY. Account
        API keys work in every workspace you belong to: send
        X-Notra-Organization-Id with the workspace id or slug to choose one.
        Workspace endpoints require it when you belong to more than one
        workspace; GET /v1/me/workspaces works without it. Organization keys
        only accept their own workspace there.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.