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

# Get Passkey Session

> Retrieve a session URL with challenge for passkey account lookup operations.

<Warning>
  The "Try It" feature is disabled for this endpoint because it initiates a WebAuthn ceremony that returns a URL. Testing requires completing the ceremony in a browser. Use the [Integration Guide](/grid/v1/accounts/passkeys/integration-guide) for implementation examples.
</Warning>

Generates a session URL containing a WebAuthn challenge for passkey account lookup operations. Use when you need to find a passkey account but don't have the authenticator response yet.

<Note>
  This endpoint returns a **URL** for initiating a passkey lookup ceremony, while [Find Passkey Account](/grid/v1/api-reference/endpoint/passkeys/find) (POST /passkeys/find) accepts an authenticator response and returns account details.
</Note>

## Implementation Flow

<Steps>
  <Step title="Request Session URL">
    GET /passkeys/find to retrieve session URL
  </Step>

  <Step title="Load UI">
    Display URL in iframe (web) or WebBrowser (mobile)
  </Step>

  <Step title="User Selects Passkey">
    User completes WebAuthn get() ceremony
  </Step>

  <Step title="Receive Result">
    Hosted UI returns passkey account address via postMessage or redirect
  </Step>
</Steps>

## GET vs POST Comparison

| Feature             | GET /passkeys/find (This Endpoint) | POST /passkeys/find               |
| ------------------- | ---------------------------------- | --------------------------------- |
| Purpose             | Get session URL for lookup         | Submit response to find account   |
| Input               | None (headers only)                | Authenticator response            |
| Output              | URL with challenge                 | Passkey account address + session |
| Creates Session Key | No                                 | Yes                               |

<Note>
  Challenge is valid for 60 seconds. This endpoint doesn't create a session key—use /passkeys/auth for that.
</Note>

## Related Endpoints

* [Find Passkey Account](/grid/v1/api-reference/endpoint/passkeys/find) - Submit response to find account
* [Get Passkey Account](/grid/v1/api-reference/endpoint/passkeys/get-account) - Get account by address
* [Authorize Passkey Session](/grid/v1/api-reference/endpoint/passkeys/auth) - Standard authentication


## OpenAPI

````yaml GET /api/grid/v1/passkeys/find
openapi: 3.1.0
info:
  title: Grid v1 API
  description: Grid v1 REST API for Solana-based smart account system
  contact:
    name: Grid API Support
    url: https://squads.so
    email: support@squads.so
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://grid.squads.xyz
    description: Production server
security:
  - bearer_auth: []
tags:
  - name: accounts
    description: Smart account management operations
  - name: spending-limits
    description: Spending limit management
  - name: standing-orders
    description: Standing order operations
  - name: transactions
    description: Transaction management
  - name: trade
    description: Trade operations and management
  - name: payments
    description: Payment intent operations
  - name: passkeys
    description: Passkey management
  - name: kyc
    description: Know Your Customer operations
  - name: external-accounts
    description: External bank account management
  - name: virtual-accounts
    description: Virtual account management
  - name: auth
    description: Authentication operations
  - name: proposals
    description: Proposal management for multi-sig operations
  - name: compliance
    description: Compliance entity management and KYB/KYC operations
paths:
  /api/grid/v1/passkeys/find:
    get:
      tags:
        - passkeys
      summary: Get passkey session
      description: >-
        Retrieve existing passkey session information. Returns a session URL
        with challenge for passkey lookup.
      operationId: handler
      parameters:
        - name: x-grid-environment
          in: header
          description: Solana network environment (sandbox, devnet, mainnet)
          required: true
          schema:
            type: string
          example: sandbox
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetPasskeySessionRequestPayload'
        required: true
      responses:
        '200':
          description: Passkey session URL retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPasskeySessionResponsePayload'
        '400':
          description: Invalid request parameters
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
components:
  schemas:
    GetPasskeySessionRequestPayload:
      type: object
      required:
        - metaInfo
      properties:
        baseUrl:
          type:
            - string
            - 'null'
        metaInfo:
          $ref: '#/components/schemas/MetaInfo'
        sessionKey:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SessionKey'
    GetPasskeySessionResponsePayload:
      type: object
      required:
        - url
      properties:
        url:
          type: string
    MetaInfo:
      type: object
      required:
        - appName
      properties:
        appName:
          type: string
        redirectUrl:
          type:
            - string
            - 'null'
    SessionKey:
      type: object
      description: >-
        Grid v1 API SessionKey type that supports backward-compatible
        deserialization

        from both raw bytes array (old format) and base58 string (new format).

        Always serializes to base58 string format.
      required:
        - key
        - expiration
      properties:
        expiration:
          type: integer
          format: int64
          minimum: 0
        key:
          type: string
          example: '11111111111111111111111111111111'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: Your Grid API key from the Grid Dashboard

````