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

# Refresh repositories or channels

> Reloads GitHub repositories or Slack channels from the provider, then returns the same result as listing integrations. Use it after giving the GitHub App access to a new repository or creating a Slack channel.



## OpenAPI

````yaml /api-reference/openapi.json post /integrations/refresh
openapi: 3.1.0
info:
  description: >-
    Manage a Superlog workspace's automations, runs, tag mode, model access, and
    secrets. Every request acts as the member who created the API key.
  title: Superlog management API
  version: 1.0.0
servers:
  - url: https://superlog.sh/api/v1
security:
  - bearerAuth: []
tags:
  - description: The workspace and its members.
    name: Workspace
  - description: Keys that authenticate the management API and MCP server.
    name: API keys
  - description: Connected integrations and the IDs automations and tag mode use.
    name: Integrations
  - description: Create and change automations.
    name: Automations
  - description: Start, follow, and cancel automation runs.
    name: Runs
  - description: What Superlog can use and change when someone mentions it in Slack.
    name: Tag mode
  - description: Model API keys, subscriptions, and available models.
    name: Models
  - description: Credentials agents can use without seeing them.
    name: Secrets
paths:
  /integrations/refresh:
    post:
      tags:
        - Integrations
      summary: Refresh repositories or channels
      description: >-
        Reloads GitHub repositories or Slack channels from the provider, then
        returns the same result as listing integrations. Use it after giving the
        GitHub App access to a new repository or creating a Slack channel.
      operationId: refresh_integrations
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
                  enum:
                    - github
                    - slack
                  description: The provider to reload.
              required:
                - provider
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  integrations:
                    type: array
                    items:
                      type: object
                      properties:
                        displayName:
                          type: string
                        id:
                          type: string
                          format: uuid
                          description: >-
                            Integration account ID. Use it as
                            `integrationAccountId` in triggers and
                            notifications, and in `contextAccountIds`.
                        provider:
                          type: string
                          description: >-
                            For example `github`, `slack`, `sentry`, or
                            `linear`.
                      required:
                        - displayName
                        - id
                        - provider
                      additionalProperties: false
                  repositories:
                    type: array
                    items:
                      type: object
                      properties:
                        defaultBranch:
                          type: string
                        fullName:
                          type: string
                          description: '`owner/name`.'
                        id:
                          type: string
                          format: uuid
                          description: Repository ID. Use it in `repositoryIds`.
                        integrationAccountId:
                          type: string
                          format: uuid
                          description: The GitHub integration that grants access.
                        private:
                          type: boolean
                      required:
                        - defaultBranch
                        - fullName
                        - id
                        - integrationAccountId
                        - private
                      additionalProperties: false
                  resources:
                    type: array
                    items:
                      type: object
                      properties:
                        displayName:
                          type: string
                        externalId:
                          type: string
                          description: >-
                            The provider's ID, such as a Slack channel ID or
                            Sentry project ID. Triggers and notifications use
                            this value.
                        id:
                          type: string
                          format: uuid
                          description: >-
                            Resource ID. Tag mode uses it in
                            `contextResourceIds`.
                        integrationAccountId:
                          type: string
                          format: uuid
                          description: The integration the resource belongs to.
                        kind:
                          type: string
                          description: >-
                            For example `slack_channel`, `sentry_project`,
                            `discord_channel`, or `vercel_project`.
                      required:
                        - displayName
                        - externalId
                        - id
                        - integrationAccountId
                        - kind
                      additionalProperties: false
                required:
                  - integrations
                  - repositories
                  - resources
                additionalProperties: false
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: The request is invalid. `issues` lists each invalid field.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: The API key is missing, revoked, or its creator left the workspace.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            The request conflicts with the current state, such as a name already
            in use.
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          description: A stable machine-readable error code, when there is one.
          type: string
        error:
          type: string
          description: What went wrong.
        issues:
          description: Validation problems, one per invalid field.
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
            required:
              - message
              - path
            additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      description: A workspace API key, created in Superlog under Settings → API keys.
      scheme: bearer
      type: http

````

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