---
updatedAt: 2025-11-06T16:48:46.000Z
agentTools:
  projectIndex: https://developer.peakon.com/llms.txt
---

# Get employees for context

# OpenAPI definition

```json
{
  "info": {
    "version": "1.1.0",
    "title": "Peakon API",
    "description": "The Public Peakon API"
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://{subdomain}.peakon.com/api/v1/",
      "variables": {
        "subdomain": {
          "description": "Unique subdomain assigned to your Peakon instance.",
          "default": "api"
        }
      }
    }
  ],
  "tags": [
    {
      "description": "Manage employees",
      "name": "Employees"
    }
  ],
  "paths": {
    "/employees/contexts/{contextId}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get employees for context",
        "parameters": [
          {
            "name": "contextId",
            "description": "A company or segment context id. Param is a `string` formatted as `company_[companyId]` or `segment_[segmentId]`.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "in": "path"
          },
          {
            "name": "filter[account.email]",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "filter[accountId]",
            "schema": {
              "type": "integer"
            },
            "in": "query"
          },
          {
            "name": "filter[admin]",
            "schema": {
              "type": "boolean"
            },
            "in": "query"
          },
          {
            "name": "filter[employeeId]",
            "schema": {
              "type": "integer"
            },
            "in": "query"
          },
          {
            "name": "filter[manager]",
            "schema": {
              "type": "boolean"
            },
            "in": "query"
          },
          {
            "name": "filter[segmentIds]",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "in": "query"
          }
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "responses": {
          "200": {
            "description": "A [JSONAPI resource](http://jsonapi.org/format/#document-resource-objects) of type 'employees'",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/employees"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/resourceIdentifier"
                      },
                      "description": "An array of included JSONAPI resources"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "employees": {
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "identifier": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "lastName": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "avatar": {
                "type": "string"
              },
              "employmentStart": {
                "type": "string"
              },
              "external": {
                "type": "boolean"
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "account": {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/resourceIdentifier"
                  }
                }
              }
            }
          }
        },
        "type": "object"
      },
      "resourceIdentifier": {
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "jwt": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```