---
title: "Fetch Contracts"
method: GET
path: "/contracts/"
tags: ["CONTRACT"]
---

# Fetch Contracts

`GET /contracts/`

Fetches contracts by metadata. Filters based on the provided query parameters.
If None, them not filtered based on that
:param auth: The authorization token for the request.
:param db: The database session to use for fetching the contracts.
:param data_store_name: The name of the data store.
:param fqn_path: The fully qualified name path. This can be provided partially
:param contract_type: The type of the contract.
:param contract_name: The name of the contract.
:return: A dictionary containing the result of the operation.

## Query parameters

- `data_store_name` string
- `fqn_path` string
- `contract_type` string
- `contract_name` string

## Response `200`

Successful Response

- ContractFetchMultipleResponse
  - `contracts` AppSchemasContractsContractFetchResponse[], required
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
    - `data_store_type` string, required
    - `data_store_name` string, required
    - `registry_name` string, required
    - `status` string, required
    - `fqn_path` string, required
    - `created_on` string, required
    - `updated_on` string, required
    - `created_by` string, required
    - `last_modified_by` string, required
    - `version` string, required

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
