---
title: "Get"
method: GET
path: "/api/v1/directories/{app_id}"
tags: ["Directory"]
---

# Get

`GET /api/v1/directories/{app_id}`

Get a directory by app_id.

## Path parameters

- `app_id` string, required — The appId field.

## Response `200`

The Directory Service Get Response returns a directory view with a directory and JSONPATHs indicating the
 location in the expanded array that items are expanded as indicated by the expand mask in the request.

- C1ApiDirectoryV1DirectoryServiceGetResponse — The Directory Service Get Response returns a directory view with a directory and JSONPATHs indicating the location in the expanded array that items are expanded as indicated by the expand mask in the request.
  - `directoryView` C1ApiDirectoryV1DirectoryView — The directory view contains a directory and an app_path which is a JSONPATH set to the location in the expand mask that the expanded app will live if requested by the expander.
    - `appPath` string — JSONPATH expression indicating the location of the App object in the array.
    - `directory` C1ApiDirectoryV1Directory — This object indicates that an app is also a directory. This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: - all - celExpression
      - `all` C1ApiDirectoryV1DirectoryAccountFilterAll — The DirectoryAccountFilterAll message.
      - `appId` string — The ID of the app associated with the directory.
      - `celExpression` C1ApiDirectoryV1DirectoryAccountFilterCel — The DirectoryAccountFilterCel message.
        - `expression` string — The expression field.
      - `createdAt` string, date-time, nullable
      - `deletedAt` string, date-time, nullable
      - `mergeConfig` C1ApiDirectoryV1DirectoryMergeConfig — DirectoryMergeConfig configures how AppUsers from this directory are matched to C1 Users.
        - `matchCases` C1ApiDirectoryV1DirectoryMergeMatchCase[], nullable — Ordered list of match cases evaluated in sequence. First match wins.
          - `appUserKeyCel` string — CEL expression evaluated against an AppUser to produce match key(s).
          - `userKeyCel` string — CEL expression evaluated against a User to produce match key(s).
      - `updatedAt` string, date-time, nullable
  - `expanded` object[], nullable — List of serialized related objects.
    - `@type` string — The type of the serialized message.

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/f2cf3228f366/schema)
