> ## 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 Data

> Retrieve detailed information about an externally signed account by its address

Retrieves detailed information about an externally signed account by its address. 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
* **Account Lookup**: Retrieve account details using the Solana public key address
* **Read-Only**: This operation doesn't modify account state

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


## OpenAPI

````yaml GET /api/v1/passkeys/externally-signed-account/{externally_signed_account_address}
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/{externally_signed_account_address}:
    get:
      summary: Get externally signed account data by address
      description: >
        Retrieves detailed information about an externally signed account by its
        address.

        This endpoint provides comprehensive data about a passkey account
        including its

        relying party ID, public key, and session key information.
      operationId: getExternallySignedAccountData
      parameters:
        - $ref: '#/components/parameters/NetworkHeader'
        - $ref: '#/components/parameters/ExternallySignedAccountAddress'
      responses:
        '200':
          description: Externally signed account data retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  relyingPartyId:
                    type: string
                    description: Relying party identifier
                  pubkey:
                    type: string
                    description: Base64 encoded public key
                  sessionKey:
                    $ref: '#/components/schemas/SessionKey'
                    description: Optional session key information
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
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
    ExternallySignedAccountAddress:
      name: externally_signed_account_address
      in: path
      required: true
      schema:
        type: string
      description: The Solana public key address of the externally signed account
  schemas:
    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:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: UUID
      description: UUID-based API key provided by Squads

````