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

# Get Auth URL

> Start the OAuth flow for a toolkit. Returns a URL to redirect the user to for authorization.



## OpenAPI

````yaml POST /proxy/tools/auth
openapi: 3.1.0
info:
  title: Kylon Tools API
  description: >-
    Kylon Tools API for searching, authenticating, inspecting, executing,
    proxying, and uploading files for connected tools.
  version: 1.0.0
servers:
  - url: https://api.kylon.io
    description: Production
security:
  - apiKey: []
paths:
  /proxy/tools/auth:
    post:
      tags:
        - Connections
      summary: Get auth URL
      description: >-
        Start the OAuth flow for a toolkit. Returns a URL to redirect the user
        to for authorization.
      operationId: getAuthUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                toolkit:
                  type: string
                  description: Toolkit slug (from search results).
                scopes:
                  type: array
                  items:
                    type: string
                  description: >-
                    OAuth scopes to request. If omitted, requests all available
                    scopes.
                redirect_url:
                  type: string
                  description: URL to redirect the user to after authorization completes.
              required:
                - toolkit
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  redirectUrl:
                    type: string
                    description: URL to open in a browser to complete the OAuth flow.
                required:
                  - redirectUrl
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized - invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Can also be passed as `Authorization: Bearer
        <token>`.

````