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

# begin an OAuth connect flow

> Returns `{ url }`, the provider's authorize URL to redirect the browser to. The flow is bound to the initiating browser (a short-lived nonce cookie); the provider redirects back to /oauth/callback, which stores the token encrypted (auth_scheme=oauth2). Owner/admin Firebase session only.



## OpenAPI

````yaml /openapi.json get /v1/connections/{provider}/oauth/start
openapi: 3.1.0
info:
  title: fetchbean API
  version: v1
  description: >-
    One key for web search, page reads, weather, social data, and raw provider
    access.
servers:
  - url: https://api.fetchbean.com
security:
  - bearerAuth: []
paths:
  /v1/connections/{provider}/oauth/start:
    get:
      tags:
        - Connections
      summary: begin an OAuth connect flow
      description: >-
        Returns `{ url }`, the provider's authorize URL to redirect the browser
        to. The flow is bound to the initiating browser (a short-lived nonce
        cookie); the provider redirects back to /oauth/callback, which stores
        the token encrypted (auth_scheme=oauth2). Owner/admin Firebase session
        only.
      parameters:
        - name: provider
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            billable:
              type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your fetchbean API key (fb_…).

````