---
title: "Search contracts"
method: GET
path: "/search/contracts"
tags: ["Search", "Contracts"]
---

# Search contracts

`GET /search/contracts`

## Request

- The document declares no server URL.
- Auth: none declared

Searches for artifacts that have contract metadata labels. Filters by status, owner team, and compatibility group.

## Query parameters

- `status` string
- `ownerTeam` string
- `compatibilityGroup` string
- `offset` integer
- `limit` integer
- `order` 'asc' | 'desc'
- `orderby` 'name' | 'createdOn' | 'modifiedOn'

## Response `200`

A paginated list of artifacts that have contract metadata.

- ArtifactSearchResults: Describes the response received when searching for artifacts.
  - `artifacts` SearchedArtifact[], required: The artifacts returned in the result set.
    - `name` string
    - `description` string
    - `createdOn` string, date-time, required
    - `owner` string, required
    - `artifactType` string, required
    - `modifiedOn` string, date-time, required
    - `modifiedBy` string, required
    - `groupId` string, required: An ID of a single artifact group.
    - `artifactId` string, required: The ID of a single artifact.
    - `labels` Labels: User-defined name-value pairs. Name and value must be strings.
  - `count` integer, required: The total number of artifacts that matched the query that produced the result set (may be more than the number of artifacts in the result set).

## Other responses

- `500`: Common response for all operations that can fail with an unexpected server error.

## Changes

- **2026-10-31** `ff9684af2aad`: 5 info
  - added the optional property `ruleViolation/causes/items/code` to the response with the `500` status
  - added the optional property `ruleViolation/causes/items/direction` to the response with the `500` status
  - added the optional property `ruleViolation/causes/items/existing` to the response with the `500` status
  - added the optional property `ruleViolation/causes/items/proposed` to the response with the `500` status
  - …1 more
- **2026-10-29** `f17f5df4e79c`: 1 info
  - added the optional property `ruleViolation` to the response with the `500` status
- **2026-05-19** `96ff089c4fd9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/changes/search/contracts/get.md)

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/revisions/ff9684af2aad?raw)
