> ## 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 Sentry install URL

> Returns the sentry.io URL that installs Aether's Sentry integration in a Sentry organization for the organization in the path, with a state signed for the caller.

Use this tool when you need to:
- Connect Sentry to the organization so its routes can start tasks from Sentry issues
- Connect Sentry again after getSentryStatus answers reauthorization_required, or move the organization to another Sentry organization

Examples:
- GET /orgs/{orgID}/auth/sentry/url
- GET /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/auth/sentry/url?redirect_to=https://app.runaether.dev/settings

Hints:
- redirect_to is optional, at most 512 characters (the schema answers 422 for a longer one or one that does not parse as a URL). The browser returns to it once Sentry has redirected back and the install succeeded, but only when it is on Aether's web app origin or is exactly aether://sentry-connected; otherwise, and on any failure, it lands on Aether's settings page with a sentry status.
- Returns an IntegrationInstallURL, url alone, and stores nothing. Open url in a browser within 15 minutes: Sentry redirects back to Aether, which stores the installation only if the caller is still an owner or admin of the organization.
- Installing for the Sentry organization already connected keeps its routes and default actor and records the caller as installed_by. A first install, or one for another Sentry organization, which replaces the installation and deletes its routes, makes the caller the default actor.
- Use getSentryStatus instead to read whether Sentry is connected, and disconnectSentry to uninstall it.
- Org owners and admins only, with a session or a platform API key: a member, viewer or billing member is refused with 403 org_role_insufficient before redirect_to is validated, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed. Not served (404) on a deployment without the Sentry integration.



## OpenAPI

````yaml api-reference/openapi.json GET /orgs/{orgID}/auth/sentry/url
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/auth/sentry/url:
    get:
      tags:
        - sentry
      summary: Get Sentry install URL
      description: >-
        Returns the sentry.io URL that installs Aether's Sentry integration in a
        Sentry organization for the organization in the path, with a state
        signed for the caller.


        Use this tool when you need to:

        - Connect Sentry to the organization so its routes can start tasks from
        Sentry issues

        - Connect Sentry again after getSentryStatus answers
        reauthorization_required, or move the organization to another Sentry
        organization


        Examples:

        - GET /orgs/{orgID}/auth/sentry/url

        - GET
        /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/auth/sentry/url?redirect_to=https://app.runaether.dev/settings


        Hints:

        - redirect_to is optional, at most 512 characters (the schema answers
        422 for a longer one or one that does not parse as a URL). The browser
        returns to it once Sentry has redirected back and the install succeeded,
        but only when it is on Aether's web app origin or is exactly
        aether://sentry-connected; otherwise, and on any failure, it lands on
        Aether's settings page with a sentry status.

        - Returns an IntegrationInstallURL, url alone, and stores nothing. Open
        url in a browser within 15 minutes: Sentry redirects back to Aether,
        which stores the installation only if the caller is still an owner or
        admin of the organization.

        - Installing for the Sentry organization already connected keeps its
        routes and default actor and records the caller as installed_by. A first
        install, or one for another Sentry organization, which replaces the
        installation and deletes its routes, makes the caller the default actor.

        - Use getSentryStatus instead to read whether Sentry is connected, and
        disconnectSentry to uninstall it.

        - Org owners and admins only, with a session or a platform API key: a
        member, viewer or billing member is refused with 403
        org_role_insufficient before redirect_to is validated, a non-member with
        403 org_membership_required, an orgID that is not a uuid with 400, and
        an agent host's grant with 403 agent_host_route_not_allowed. Not served
        (404) on a deployment without the Sentry integration.
      operationId: getSentryInstallUrl
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
        - explode: false
          in: query
          name: redirect_to
          schema:
            format: uri
            maxLength: 512
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationInstallURL'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentryErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentryErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentryErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentryErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentryErrorResponse'
          description: Internal Server Error
components:
  schemas:
    IntegrationInstallURL:
      additionalProperties: false
      properties:
        url:
          format: uri
          minLength: 1
          type: string
      required:
        - url
      type: object
    SentryErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - agent_profile_not_found
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - default_actor_not_member
            - forbidden
            - gateway_timeout
            - gone
            - internal_error
            - method_not_allowed
            - not_acceptable
            - not_connected
            - not_found
            - not_implemented
            - payment_required
            - precondition_failed
            - project_has_no_repository
            - project_not_found
            - project_repo_disconnected
            - rate_limited
            - reauthorization_required
            - request_canceled
            - request_timeout
            - request_too_large
            - route_exists
            - route_not_found
            - sentry_project_not_found
            - service_unavailable
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          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.