---
updatedAt: 2025-06-02T23:03:57.000Z
agentTools:
  projectIndex: https://api-doc.docusnap.com/llms.txt
---

# By type

Returns `Person` objects filtered by a specific type. You can find the full list of available types at: [People types](https://api-doc.docusnap.com/v2.0/reference/persontypes).

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Docusnap365 REST API",
    "version": "1.1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.docusnap365.com"
    }
  ],
  "paths": {
    "/api/v2/segment/people/type/{typeId}": {
      "get": {
        "tags": [
          "People"
        ],
        "summary": "By type",
        "description": "Returns `Person` objects filtered by a specific type. You can find the full list of available types at: [People types](https://api-doc.docusnap.com/v2.0/reference/persontypes).",
        "operationId": "getPeopleByType",
        "parameters": [
          {
            "name": "typeId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the Person type.",
            "schema": {
              "type": "string"
            },
            "example": "55200b8c-26cb-423b-817b-02a81bf5ffd4"
          },
          {
            "name": "select",
            "in": "query",
            "description": "The `select` parameter determines the properties to include in the response. For additional details, refer to [Expression](https://api-doc.docusnap.com/reference/expressions#select-parameter).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "The `search` parameter defines the criteria for filtering results. For additional information, refer to [Expression](https://api-doc.docusnap.com/reference/expressions#search-parameter).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizations",
            "in": "query",
            "description": "Filter by one or more organization IDs. Refer to the [Organizations](https://api-doc.docusnap.com/reference/organizations) to retrieve an `id`.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sites",
            "in": "query",
            "description": "Filter by one or more site IDs. Refer to the [Sites](https://api-doc.docusnap.com/reference/sites) to retrieve an `id`.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK - Returns a list of objects filtered by the specified type."
          },
          "404": {
            "description": "Not Found - No objects found for the given typeId."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "People"
    }
  ]
}
```