# Returning all contracts

## Returns all contracts.

<mark style="color:blue;">`GET`</mark> `/contracts`

Returns all contracts.

#### Query Parameters

| Name                                        | Type   | Description                                                           |
| ------------------------------------------- | ------ | --------------------------------------------------------------------- |
| type                                        | String | Contract Type                                                         |
| pageIndex<mark style="color:red;">\*</mark> | Number | The number of pages to skip before starting to collect the result set |
| pageSize<mark style="color:red;">\*</mark>  | Number | The numbers of items to return                                        |

{% tabs %}
{% tab title="200: OK Successful Operation" %}

```
{
    headers:
            x-total-count:
              schema:
                type: integer
              description: Total items in the collection.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Contract'
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```
{
   content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
