---
title: "Search"
method: POST
path: "/api/v1/search/local-directory-invitations"
tags: ["Local Directory"]
---

# Search

`POST /api/v1/search/local-directory-invitations`

List invitations for a directory, with optional status filter.
 Search invitations with filters (directory, status).

## Request body

- C1ApiLocalDirectoryV1LocalUserInvitationServiceSearchRequest — The LocalUserInvitationServiceSearchRequest message.
  - `directoryAppId` string — The directoryAppId field.
  - `pageSize` integer — The pageSize field.
  - `pageToken` string — The pageToken field.
  - `statusFilter` 'LOCAL_INVITATION_STATUS_UNSPECIFIED' | 'LOCAL_INVITATION_STATUS_PENDING' | 'LOCAL_INVITATION_STATUS_ACCEPTED' | 'LOCAL_INVITATION_STATUS_REVOKED' | 'LOCAL_INVITATION_STATUS_EXPIRED' — Optional filter by invitation status.

## Response `200`

Successful response

- C1ApiLocalDirectoryV1LocalUserInvitationServiceSearchResponse — The LocalUserInvitationServiceSearchResponse message.
  - `list` C1ApiLocalDirectoryV1LocalUserInvitation[], nullable — The list field.
    - `acceptedAt` string, date-time, nullable
    - `createdAt` string, date-time, nullable
    - `createdUserId` string — Set when status = ACCEPTED. FK to the created User. Read-only.
    - `directoryAppId` string — FK to the LocalDirectoryConfig (app_id) this invitation belongs to. Read-only after creation.
    - `displayName` string — Display name to pre-populate on the new user account.
    - `email` string — Email address the invitation was sent to.
    - `expiresAt` string, date-time, nullable
    - `id` string — Unique KSUID identifier. Read-only.
    - `initialRoleIds` string[], nullable — Optional initial role IDs to assign to the user upon acceptance.
    - `invitedByUserId` string — FK to the User who created the invitation. Read-only.
    - `jobId` string — Optional FK to a ThirdPartyJob.
    - `onboardingFlowId` string — Optional onboarding flow override for this invitation.
    - `purpose` string — Human-readable reason this user was invited.
    - `sponsorUserId` string — Optional sponsor User override for this invitation.
    - `status` 'LOCAL_INVITATION_STATUS_UNSPECIFIED' | 'LOCAL_INVITATION_STATUS_PENDING' | 'LOCAL_INVITATION_STATUS_ACCEPTED' | 'LOCAL_INVITATION_STATUS_REVOKED' | 'LOCAL_INVITATION_STATUS_EXPIRED' — Current lifecycle status. Read-only.
    - `updatedAt` string, date-time, nullable
  - `nextPageToken` string — The nextPageToken field.

---

[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)
