Skip to main content
POST
SearchAppResources

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

Search app resources based on filters specified in the request body.

agentStatuses
enum<string>[] | null

Restrict the search to AI-agent resources with one of the given agent lifecycle statuses (READY, DISABLED, DELETED). When empty, agent status is not used as a filter.

Available options:
AGENT_STATUS_UNSPECIFIED,
AGENT_STATUS_READY,
AGENT_STATUS_DISABLED,
AGENT_STATUS_DELETED
appId
string

The app ID to restrict the search to.

appIds
string[] | null

A list of app IDs to restrict the search to. Mirrors the singular app_id; both fold into the same filter, so callers may set either or both.

appUserIds
string[] | null

A list of app user IDs to restrict the search by.

credentialTypes
enum<string>[] | null

Restrict the search to resources whose credential material spine (K1) matches one of the given CredentialType values. Applies to resources with a secret_trait. When empty, credential_type is not used as a filter.

Available options:
CREDENTIAL_TYPE_UNSPECIFIED,
CREDENTIAL_TYPE_STATIC_SECRET,
CREDENTIAL_TYPE_ASYMMETRIC_KEY,
CREDENTIAL_TYPE_CERTIFICATE
direction
enum<string>

Direction to sort in. Unspecified falls back to ASC when sort_field is set. No defined_only validation here: protoc-gen-validate mis-resolves the cross-package enum name map to this file's c1.models.app.v1 import alias instead of c1.api.search.v1, which fails to compile. The query builder already treats any unrecognized value as ASC, so this is safe to omit.

Available options:
SORT_DIRECTION_UNSPECIFIED,
SORT_DIRECTION_ASC,
SORT_DIRECTION_DESC
excludeDeletedApps
boolean

When true, excludes resources belonging to soft-deleted apps.

excludeDeletedResourceBindings
boolean

If true, exclude resources whose bindings have been deleted.

excludeResourceIds
string[] | null

A list of resource IDs to exclude from the search results.

excludeResourceTypeTraitIds
string[] | null

A list of resource type trait IDs to exclude from the search.

nhiTypes
enum<string>[] | null

Restrict the search to resources whose NHI classification spine (K3) is one of the given NhiType values. When empty, nhi_type is not used as a filter.

Available options:
NHI_TYPE_UNSPECIFIED,
NHI_TYPE_APP_REGISTRATION,
NHI_TYPE_ASSUMABLE_ROLE,
NHI_TYPE_MANAGED_IDENTITY
ownerUserIds
string[] | null

A list of C1 user IDs to filter resources by ownership. The sentinel value "none" matches resources with no owner. Mutually exclusive with unowned_only — combine "none" with real owner IDs instead of setting unowned_only alongside them.

pageSize
integer<int32>

The maximum number of results to return per page.

pageToken
string

The token for fetching the next page of results.

query
string

Fuzzy search the display name of resources.

refs
App Resource Ref · object[] | null

A list of specific app resource references to restrict the search to.

resourceIds
string[] | null

A list of resource IDs to restrict the search to.

resourceTypeIds
string[] | null

A list of resource type IDs to restrict the search by.

resourceTypeTraitIds
string[] | null

A list of resource type trait IDs to restrict the search by.

secretAging
Secret Aging Filter · object | null

SecretAgingFilter restricts a resource search to secrets (credential_type != 0) whose secret-trait timestamps fall in the given half-open ranges. Each bound is optional; leave one unset for an open-ended range. All set bounds are ANDed. Callers pass absolute timestamps (computed against their reference "now").

sortField
enum<string>

Column to sort by. Unspecified (0) keeps the server's default order (app, then display name).

Available options:
APP_RESOURCE_SORT_FIELD_UNSPECIFIED,
APP_RESOURCE_SORT_FIELD_SECRET_CREATED_AT,
APP_RESOURCE_SORT_FIELD_SECRET_EXPIRES_AT,
APP_RESOURCE_SORT_FIELD_LAST_USED_AT
unownedOnly
boolean

When true, restrict results to resources with no ownership-v2 primary-role owner. Mutually exclusive with owner_user_ids — use owner_user_ids: ["none"] instead if you also need to combine it with real owner IDs.

withOpenFindings
boolean

When true, restrict results to resources that have at least one open finding (index-backed EXISTS semi-join). When false/unset, results are unfiltered.

Response

200 - application/json

The SearchAppResourcesResponse message contains a list of results and a nextPageToken if applicable.

The SearchAppResourcesResponse message contains a list of results and a nextPageToken if applicable.

expanded
object[] | null

List of serialized related objects.

list
App Resource View · object[] | null

The list of app resource results.

nextPageToken
string

The token for fetching the next page of results.