# Get staff member by ID

> 🔐 **Required role:** `API_ADMIN`
📖 **Data dictionary:** [Staff](/reference/data-dictionary/staff)

Returns a staff member's full profile:
- Staff member ID and PMS reference
- Personal information (first name, last name, email)
- Active status indicator
- Department and office assignments
- Job title and role (when available)
- Service line and sub-service line
- Wage type and employee type
- Permission set, manager, and supervisor assignments
- Last-updated timestamp

**Business Applications:**
- Staff member lookup and verification
- Organizational structure queries
- Basic staff information retrieval
- Department and office staff management

**Response:** the record is wrapped in a `staff` key. An id that does not exist
returns 200 with `{"staff": null}` (not 404). A non-numeric id returns 400.
**Response Example:**

```json
{
  "staff": {
    "id": 202,
    "pmsRef": "2254",
    "firstName": "Holley",
    "lastName": "Abbott",
    "email": "ena.toy@hotmail.com",
    "active": true,
    "deptId": 8,
    "jobTitle": null,
    "type": null,
    "officeId": 2,
    "serviceLine": { "id": 4, "pmsRef": "TAX", "name": "Tax" },
    "subServiceLine": { "id": 12, "pmsRef": "TAX-COMP", "name": "Tax Compliance" },
    "wageType": { "id": 1, "pmsRef": "SAL", "name": "Salary" },
    "employeeType": { "id": 2, "pmsRef": "FT", "name": "Full Time" },
    "role": {
      "id": 11,
      "pmsRef": "MANAGER",
      "display": "Manager",
      "description": "Manager"
    },
    "permissionSet": { "id": 3, "name": "Standard Manager" },
    "staffSupervisor": {
      "id": 53,
      "pmsRef": "A53",
      "staffRef": "AH",
      "firstName": "Allen",
      "lastName": "Hermiston",
      "email": "allen.hermiston@company.com"
    },
    "staffManagerId": 53,
    "updatedAt": "2026-09-21T18:30:00Z"
  }
}
```

Endpoint: GET /gql/v1/staff/{id}
Version: 1.0.0
Security: BearerAuth, CfAccessClientId, CfAccessClientSecret

## Security:

  - `BearerAuth` (unknown)
    http bearer JWT

  - `CfAccessClientId` (unknown)
    apiKey in header CF-Access-Client-Id

  - `CfAccessClientSecret` (unknown)
    apiKey in header CF-Access-Client-Secret

## Path parameters:

  - `id` (integer, required)
    Unique identifier of the staff member

## Response 200:

  - `200` (unknown)
    Staff member lookup result. `staff` is the directory record, or `null` when no
staff member has that id.

## Response 200 fields (application/json):

  - `staff` (any, required)

  - `staff.id` (integer, required)
    Example: 21

  - `staff.pmsRef` (string | null, required)
    Example: AIWYN_21

  - `staff.staffRef` (string | null, required)
    Example: AIWYN

  - `staff.firstName` (string, required)
    Example: Aiwyn

  - `staff.lastName` (string, required)
    Example: User

  - `staff.email` (string | null, required)
    Null for staff without an email address on file.
    Example: test@aiwyn.ai

  - `staff.active` (boolean, required)
    Example: true

  - `staff.deptId` (integer | null, required)

  - `staff.jobTitle` (string | null, required)

  - `staff.jobTitleId` (integer | null, required)

  - `staff.type` (string | null, required)

  - `staff.officeId` (integer | null, required)

  - `staff.department` (any, required)

  - `staff.department.id` (integer)
    Example: 7

  - `staff.department.pmsRef` (string)
    Practice management system reference of the department
    Example: TECH

  - `staff.department.name` (string)
    Example: Technology

  - `staff.office` (any, required)

  - `staff.office.id` (integer)

  - `staff.office.pmsRef` (string | null)

  - `staff.office.name` (string | null)

  - `staff.office.city` (string | null)

  - `staff.office.stateProvince` (string | null)

  - `staff.office.country` (string | null)

  - `staff.serviceLine` (any, required)
    Primary service line assigned to the staff member

  - `staff.serviceLine.id` (integer)
    Example: 2

  - `staff.serviceLine.pmsRef` (string | null)
    Example: FT

  - `staff.serviceLine.name` (string | null)
    Example: Full Time

  - `staff.subServiceLine` (any, required)
    Sub-service line assigned to the staff member

  - `staff.wageType` (any, required)
    Wage classification, such as salary or hourly

  - `staff.employeeType` (any, required)
    Employment classification, such as full time or contractor

  - `staff.role` (any, required)
    Staff role; this response field replaces the former `staffType` field

  - `staff.role.id` (integer)
    Example: 11

  - `staff.role.pmsRef` (string | null)

  - `staff.role.display` (string | null)

  - `staff.role.description` (string)
    Example: Senior Associate

  - `staff.role.rateCardStaffTypeBillingRates` (array)
    Billing rates configured for this role

  - `staff.permissionSet` (any, required)
    Permission set assigned directly to the staff member

  - `staff.permissionSet.id` (integer)
    Example: 3

  - `staff.permissionSet.name` (string)
    Example: Standard Manager

  - `staff.staffSupervisor` (any, required)
    Staff member assigned as this person's supervisor

  - `staff.staffSupervisor.id` (integer)
    Example: 53

  - `staff.staffSupervisor.pmsRef` (string | null)
    Example: A53

  - `staff.staffSupervisor.staffRef` (string | null)
    Example: AH

  - `staff.staffSupervisor.firstName` (string)
    Example: Allen

  - `staff.staffSupervisor.lastName` (string)
    Example: Hermiston

  - `staff.staffSupervisor.email` (string | null)
    Null for staff without an email address on file.
    Example: allen.hermiston@company.com

  - `staff.staffManagerId` (integer | null, required)

  - `staff.rateCardBillingRates` (array, required)

  - `staff.updatedAt` (string | null, required)
    Timestamp of the most recent staff record update
    Example: 2026-09-21T18:30:00Z

  - `staff.createdAt` (string, required)
    When the record was created.
    Example: 2024-05-12T22:42:02.719873+00:00

  - `staff.fullName` (string | null, required)
    Full name.
    Example: Aiwyn User

  - `staff.prefix` (string | null, required)
    Name prefix.
    Example: Ms.

  - `staff.startDt` (string | null, required)
    Date the staff member started at the firm, as a local date-time with no time-zone offset.
    Example: 2024-01-08T00:00:00

  - `staff.endDt` (string | null, required)
    Date the staff member left the firm, as a local date-time with no time-zone offset.
    Example: null

  - `staff.staffPartnerId` (integer | null, required)
    Staff id of the partner this staff member reports to.

  - `staff.staffPaId` (integer | null, required)
    Staff id of this staff member's practice administrator.

  - `staff.orgId` (integer | null, required)
    Organization id.

  - `staff.isCreatedByAiwyn` (boolean, required)
    Whether the record was created in Aiwyn.

  - `staff.isManagedByAiwyn` (boolean, required)
    Whether Aiwyn manages the record's lifecycle.

  - `staff.lastUpdatedByStaffId` (integer | null, required)
    Staff id of whoever last updated the record.

  - `staff.customFieldValues` (object | null, required)
    Firm-defined custom fields.

## Response 400:

  - `400` (unknown)
    Bad request - the id is not an integer

## Response 400 fields (application/json):

  - `code` (string)

  - `error` (string)

  - `path` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized - Invalid or missing authentication token

## Response 403:

  - `403` (unknown)
    Forbidden - Insufficient permissions to access this staff member

## Response 500:

  - `500` (unknown)
    Internal server error

## Response 200 examples:

  - `Staff member found` (unknown)

  - `No staff member with this id` (unknown)

## Response 400 examples:

  - `Non-numeric id` (unknown)

