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

# OAuth Transaction Status

> Poll this to check if the OAuth flow completed. Returns status (pending, completed, expired, failed), integrationId when completed, and errorMessage when failed.



## OpenAPI

````yaml https://hub.griff.services/documentation/json get /integrations/oauth/status/{transactionId}
openapi: 3.1.0
info:
  title: Griffin Hub API
  description: API for managing and running test monitors
  version: 1.0.0
servers:
  - url: https://hub.griff.services
    description: Local development server
  - url: http://localhost:3000
    description: Local development server
security:
  - bearerAuth: []
tags:
  - name: monitors
    description: Test monitor management endpoints
  - name: runs
    description: Test run management endpoints
  - name: metrics
    description: Metrics and health summary endpoints
paths:
  /integrations/oauth/status/{transactionId}:
    get:
      tags:
        - integrations
        - oauth
      summary: OAuth Transaction Status
      description: >-
        Poll this to check if the OAuth flow completed. Returns status (pending,
        completed, expired, failed), integrationId when completed, and
        errorMessage when failed.
      parameters:
        - schema:
            type: string
          in: path
          name: transactionId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                properties:
                  status:
                    anyOf:
                      - type: string
                        enum:
                          - pending
                      - type: string
                        enum:
                          - completed
                      - type: string
                        enum:
                          - failed
                      - type: string
                        enum:
                          - expired
                  integrationId:
                    type: string
                  errorMessage:
                    type: string
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '502':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````