> ## 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 Externally Signed Account

> Retrieve an externally signed account from a WebAuthn authenticator response

Retrieves an externally signed account from a WebAuthn authenticator response. This is an advanced endpoint for companies that need to host passkey flows on their own domain.

For most applications, use the [hosted UI approach](/squads-api/api-reference/v1/endpoint/passkeys/auth) instead.

### Key Notes

* **Custom Domain**: Use this endpoint when hosting passkey flows on your own domain
* **Complete Response Required**: Submit the full WebAuthn authenticator response object
* **Existing Passkeys**: Works with previously registered passkeys

For detailed implementation, see the [Custom Domain](/squads-api/passkeys/advanced-integration) guide.


## OpenAPI

````yaml POST /api/v1/passkeys/externally-signed-account
openapi: 3.0.0
info:
  title: Squads API
  version: 1.0.0
  description: >
    The Squads API provides functionality for managing smart accounts and
    spending limits.

    This API allows you to create and manage smart accounts, set up spending
    limits, and perform transactions.
servers:
  - url: https://developer-api.squads.so
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v1/passkeys/externally-signed-account:
    post:
      summary: Get externally signed account from authenticator response
      description: >
        Retrieves an externally signed account from a WebAuthn authenticator
        response.

        This endpoint allows you to obtain the account information associated
        with a passkey

        without going through the full session creation process.
      operationId: getExternallySignedAccount
      parameters:
        - $ref: '#/components/parameters/NetworkHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - authenticatorResponse
              properties:
                authenticatorResponse:
                  type: object
                  description: Complete WebAuthn authenticator response as JSON value
                metaInfo:
                  $ref: '#/components/schemas/MetaInfo'
                  description: Optional metadata information
      responses:
        '200':
          description: Externally signed account retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  externallySignedAccount:
                    type: string
                    description: Solana public key of the externally signed account
                  sessionKey:
                    $ref: '#/components/schemas/SessionKey'
                    description: Optional session key information
                  redirectUrl:
                    type: string
                    description: Optional redirect URL
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  parameters:
    NetworkHeader:
      name: x-squads-network
      in: header
      required: true
      schema:
        type: string
        enum:
          - mainnet
          - devnet
      description: Specifies the network for the API request
  schemas:
    MetaInfo:
      type: object
      properties:
        redirectUrl:
          type: string
          description: Optional - supports deep links for mobile apps
    SessionKey:
      type: object
      required:
        - key
        - expiration
      properties:
        key:
          type: string
          description: Solana public key string
        expiration:
          type: integer
          format: uint64
          description: >-
            Session validity duration in seconds from now (for requests) or Unix
            timestamp (for responses)
    Error:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code
        code:
          type: string
          description: Error code for easy lookup
        message:
          type: string
          description: Detailed error description
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
        metadata:
          $ref: '#/components/schemas/ErrorMetadata'
        custom:
          type: object
          additionalProperties:
            type: string
        simulation_logs:
          type: array
          items:
            type: string
          description: >-
            Transaction simulation logs. Returns an empty array when debug=false
            or not provided.
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
          description: The field that failed validation
        code:
          type: string
          description: Error code specific to this validation failure
        message:
          type: string
          description: Detailed message about the validation failure
        expected:
          type: string
          description: Expected value or condition
        actual:
          type: string
          description: Actual value received
    ErrorMetadata:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code
        request_id:
          type: string
          description: Unique identifier for debugging
        timestamp:
          type: string
          format: date-time
          description: When the error occurred
        resource_id:
          type: string
          description: Identifier of the resource that experienced the error
        useful_links:
          type: array
          items:
            type: string
          description: Links to relevant documentation
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: Unprocessable Entity
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: UUID
      description: UUID-based API key provided by Squads

````