---
title: "IndividualDetails"
url: "https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/e785f384-c0a4-4d66-ac02-143cc153d512/schemas/IndividualDetails"
---

> Full API specification: https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/e785f384-c0a4-4d66-ac02-143cc153d512.md

# IndividualDetails

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Workspace
  version: v1.4.1
servers:
  - url: https://api.pexa.co.uk
    description: API Gateway URL
components:
  schemas:
    IndividualDetails:
      type: object
      required:
        - type
        - partyDetails
      allOf:
        - type: object
          discriminator:
            propertyName: type
            mapping:
              INDIVIDUAL: "#/components/schemas/IndividualDetails"
              ORGANISATION: "#/components/schemas/OrganisationDetails"
          properties:
            role:
              type: string
              pattern: ^(BORROWER|BUYER)$
              description: >
                Party Role: Allowed values are BUYER for purchase workspace and
                BORROWER for remortgage workspace
                 * `BORROWER`
                 * `BUYER`
          required:
            - role
      properties:
        type:
          type: string
          pattern: ^(INDIVIDUAL)$
          description: |
            Party Type:
             * `INDIVIDUAL`
        partyDetails:
          type: object
          required:
            - forenames
            - surname
          properties:
            forenames:
              maxLength: 90
              minLength: 1
              type: string
              example: James Thomas
              pattern: ^[A-Za-z][A-Za-z\- ']*$
            surname:
              maxLength: 50
              minLength: 1
              type: string
              example: Smith
              pattern: ^[A-Za-z][A-Za-z\- ']*$
            email:
              type: string
              minLength: 1
              pattern: ^$|(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-z0-9-]*[A-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5A\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
              example: approver@lawfirm.com
```
