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

# Get GitHub install URL

> Returns the github.com URL that installs Aether's GitHub App on a GitHub account or organization, with a state signed for the caller.

Use this tool when you need to:
- Connect GitHub for the first time so Aether can reach the caller's repositories
- Install the App on another GitHub organization, or give it more repositories

Examples:
- GET /auth/github/url?redirect_to=https://app.runaether.dev/onboarding

Hints:
- redirect_to is optional, an absolute URL the caller returns to after the claim; only Aether's own onboarding and connect pages and the mobile app's aether://github-claim are honoured, and any other lands on the claim page.
- Open the URL in a browser: the install happens on github.com, and the claim page then calls claimGithubInstallations with GitHub's code and state.
- Use getGithubAuthorizeUrl instead when the App is installed and only the caller's GitHub authorization must be renewed.
- Any signed-in user, for their own account; through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient, and an agent host's grant with 403 agent_host_route_not_allowed. Refused with 422 for a redirect_to that is not a URL and 503 when this deployment's GitHub integration is disabled.



## OpenAPI

````yaml api-reference/openapi.json GET /auth/github/url
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /auth/github/url:
    get:
      tags:
        - github
      summary: Get GitHub install URL
      description: >-
        Returns the github.com URL that installs Aether's GitHub App on a GitHub
        account or organization, with a state signed for the caller.


        Use this tool when you need to:

        - Connect GitHub for the first time so Aether can reach the caller's
        repositories

        - Install the App on another GitHub organization, or give it more
        repositories


        Examples:

        - GET /auth/github/url?redirect_to=https://app.runaether.dev/onboarding


        Hints:

        - redirect_to is optional, an absolute URL the caller returns to after
        the claim; only Aether's own onboarding and connect pages and the mobile
        app's aether://github-claim are honoured, and any other lands on the
        claim page.

        - Open the URL in a browser: the install happens on github.com, and the
        claim page then calls claimGithubInstallations with GitHub's code and
        state.

        - Use getGithubAuthorizeUrl instead when the App is installed and only
        the caller's GitHub authorization must be renewed.

        - Any signed-in user, for their own account; through a platform API key
        pinned to an org where the caller is a viewer or billing member it is
        refused with 403 org_role_insufficient, and an agent host's grant with
        403 agent_host_route_not_allowed. Refused with 422 for a redirect_to
        that is not a URL and 503 when this deployment's GitHub integration is
        disabled.
      operationId: getGithubInstallUrl
      parameters:
        - explode: false
          in: query
          name: redirect_to
          schema:
            format: uri
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationInstallURL'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubErrorResponse'
          description: Service Unavailable
components:
  schemas:
    IntegrationInstallURL:
      additionalProperties: false
      properties:
        url:
          format: uri
          minLength: 1
          type: string
      required:
        - url
      type: object
    GithubErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - control_forbidden
            - creator_github_access_missing
            - forbidden
            - gateway_timeout
            - github_claim_unverified
            - github_identity_mismatch
            - github_reconnect_required
            - github_ref_not_found
            - gone
            - internal_error
            - method_not_allowed
            - no_dispatch_target
            - not_acceptable
            - not_found
            - not_implemented
            - org_role_insufficient
            - org_suspended
            - payment_required
            - precondition_failed
            - project_archived
            - project_has_no_repository
            - project_repo_disconnected
            - project_repository_differs
            - push_file_too_large
            - push_rejected
            - push_secret_detected
            - rate_limited
            - repository_administration_not_granted
            - repository_already_connected
            - repository_create_forbidden
            - repository_create_rejected
            - repository_created_not_linked
            - repository_owner_not_caller
            - request_canceled
            - request_timeout
            - request_too_large
            - save_in_progress
            - save_requires_task_creator
            - service_unavailable
            - task_already_saved
            - task_backed_by_work_tree
            - task_bound_at_creation
            - task_branch_diverged
            - task_branch_is_default
            - task_branch_mismatch
            - task_branch_missing
            - task_creator_deleted
            - task_executing
            - task_file_too_large
            - task_has_no_commits
            - task_has_no_files
            - task_history_has_merges
            - task_is_child
            - task_not_started
            - task_rebase_in_progress
            - unauthenticated
            - unsupported_media_type
            - validation_failed
            - working_tree_dirty
            - workspace_gone
            - workspace_outdated
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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