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

# Retrieve a person

> Retrieve a person by ID.



## OpenAPI

````yaml /openapi.json get /persons/{id}
openapi: 3.1.0
info:
  title: Sophic Engine API
  version: 0.1.0
servers:
  - url: https://api.engine.usesophic.com
security: []
tags:
  - description: Retrieve accounts, statements, and account documents.
    name: accounts
    x-group: Accounts
  - description: Read the audit trail of platform activity.
    name: activity
    x-group: Activity
  - description: Obtain OAuth access tokens for the Engine API.
    name: auth
    x-group: Authentication
  - description: Inspect the authenticated user or service actor.
    name: identity
    x-group: Identity
  - description: Retrieve fee schedules and billing information.
    name: billing
    x-group: Billing
  - description: Browse instruments and tradable products.
    name: catalog
    x-group: Catalog
  - description: Track onboarding applications through completion.
    name: onboarding
    x-group: Onboarding
  - description: Manage customer records and related person data.
    name: customers
    x-group: Customers
  - description: List platform events and inspect individual occurrences.
    name: events
    x-group: Events
  - description: Read positions, transactions, and account holdings.
    name: holdings
    x-group: Holdings
  - description: Retrieve legal agreements and required disclosures.
    name: legal-documents
    x-group: Legal Documents
  - description: Access prices and market data for instruments.
    name: market-data
    x-group: Market Data
  - description: Manage deposits, withdrawals, and funding accounts.
    name: payments
    x-group: Payments
  - description: Retrieve returns, earnings, and performance metrics.
    name: performance
    x-group: Performance
  - description: Place and manage orders, quotes, and trades.
    name: trading
    x-group: Trading
  - description: Read position and account valuations over time.
    name: valuation
    x-group: Valuation
  - description: Configure webhook endpoints and inspect deliveries.
    name: webhooks
    x-group: Webhooks
  - description: Upload files and retrieve stored documents.
    name: files
    x-group: Files
paths:
  /persons/{id}:
    get:
      tags:
        - customers
      summary: Retrieve a person
      description: Retrieve a person by ID.
      operationId: get_person_persons__id__get
      parameters:
        - description: The ID of the person.
          in: path
          name: id
          required: true
          schema:
            description: The ID of the person.
            title: Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                discriminator:
                  mapping:
                    legal:
                      $ref: '#/components/schemas/LegalPerson'
                    natural:
                      $ref: '#/components/schemas/NaturalPerson'
                  propertyName: person_type
                oneOf:
                  - $ref: '#/components/schemas/NaturalPerson'
                  - $ref: '#/components/schemas/LegalPerson'
                title: Response Get Person Persons  Id  Get
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
      security:
        - HTTPBearer: []
components:
  schemas:
    LegalPerson:
      properties:
        address:
          anyOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
          description: >-
            Registered address: residential for natural persons, registered
            office for legal persons.
        created_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was created.
          format: date-time
          title: Created At
          type: string
        entity_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Registered legal entity name.
          title: Entity Name
        entity_type:
          anyOf:
            - $ref: '#/components/schemas/LegalEntityType'
            - type: 'null'
          description: Legal entity type (e.g. `limited_company`, `partnership`).
        full_name:
          description: >-
            Full name: first and last for natural persons, entity name for legal
            persons.
          title: Full Name
          type: string
        id:
          description: Unique resource identifier.
          title: Id
          type: string
        lei_code:
          anyOf:
            - type: string
            - type: 'null'
          description: Legal Entity Identifier.
          title: Lei Code
        lei_code_expiry_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Expiry date of the Legal Entity Identifier.
          examples:
            - '2027-06-30'
          title: Lei Code Expiry Date
        modified_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was last modified.
          format: date-time
          title: Modified At
          type: string
        operating_address:
          anyOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
          description: Primary operating address.
        person_type:
          const: legal
          description: Person classification.
          title: Person Type
        phone_number:
          anyOf:
            - type: string
            - type: 'null'
          description: Person's primary phone number.
          title: Phone Number
      required:
        - created_at
        - modified_at
        - id
        - person_type
        - full_name
        - address
        - phone_number
        - entity_name
        - entity_type
        - lei_code
        - lei_code_expiry_date
        - operating_address
      title: LegalPerson
      type: object
    NaturalPerson:
      properties:
        address:
          anyOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
          description: >-
            Registered address: residential for natural persons, registered
            office for legal persons.
        created_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was created.
          format: date-time
          title: Created At
          type: string
        date_of_birth:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Person's date of birth.
          examples:
            - '1988-04-12'
          title: Date Of Birth
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Person's first name.
          title: First Name
        full_name:
          description: >-
            Full name: first and last for natural persons, entity name for legal
            persons.
          title: Full Name
          type: string
        id:
          description: Unique resource identifier.
          title: Id
          type: string
        id_number:
          anyOf:
            - type: string
            - type: 'null'
          description: Masked national identity number.
          title: Id Number
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Person's last name.
          title: Last Name
        modified_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was last modified.
          format: date-time
          title: Modified At
          type: string
        nationalities:
          description: ISO 3166-1 alpha-2 nationality codes.
          items:
            type: string
          title: Nationalities
          type: array
        passport_number:
          anyOf:
            - type: string
            - type: 'null'
          description: Masked passport number.
          title: Passport Number
        person_type:
          const: natural
          description: Person classification.
          title: Person Type
        phone_number:
          anyOf:
            - type: string
            - type: 'null'
          description: Person's primary phone number.
          title: Phone Number
        tax_number:
          anyOf:
            - type: string
            - type: 'null'
          description: Masked tax identification number.
          title: Tax Number
      required:
        - created_at
        - modified_at
        - id
        - person_type
        - full_name
        - address
        - phone_number
        - first_name
        - last_name
        - passport_number
        - id_number
        - tax_number
        - nationalities
        - date_of_birth
      title: NaturalPerson
      type: object
    Error:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        context:
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
          description: An optional object for adding extra context to the error.
          title: Context
          type: object
          x-remove-null-from-type-union: true
        detail:
          description: A human-readable description of the error.
          title: Detail
          type: string
        docs:
          description: A URL to documentation about this error code.
          title: Docs
          type: string
          x-remove-null-from-type-union: true
        params:
          description: An optional list of params that failed validation.
          items:
            $ref: '#/components/schemas/InvalidParam'
          title: Params
          type: array
          x-remove-null-from-type-union: true
      required:
        - detail
        - code
      title: Error
      type: object
    Address:
      properties:
        city:
          description: City or locality.
          title: City
          type: string
        country_code:
          description: ISO 3166-1 alpha-2 country code.
          title: Country Code
          type: string
        district_county:
          anyOf:
            - type: string
            - type: 'null'
          description: District or county.
          title: District County
        line1:
          description: Primary street address line.
          title: Line1
          type: string
        line2:
          anyOf:
            - type: string
            - type: 'null'
          description: Additional street address line.
          title: Line2
        line3:
          anyOf:
            - type: string
            - type: 'null'
          description: Further street address line.
          title: Line3
        postal_code:
          description: Postal code.
          title: Postal Code
          type: string
      required:
        - line1
        - line2
        - line3
        - district_county
        - city
        - postal_code
        - country_code
      title: Address
      type: object
    LegalEntityType:
      enum:
        - limited_company
        - partnership
        - sole_proprietorship
        - foundation
        - trust
        - cooperative
        - other
      properties: {}
      title: LegalEntityType
      type: string
    InvalidParam:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        detail:
          description: Human-readable detail for error.
          title: Detail
          type: string
        path:
          description: Path to the field name (or index if a list) that errored.
          items:
            anyOf:
              - type: integer
              - type: string
          title: Path
          type: array
      required:
        - path
        - detail
        - code
      title: InvalidParam
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````