---
title: "Get contracts for authenticated user (as owner or claimer) with pagination and optional status filtering"
method: GET
path: "/api/v1/contracts/"
tags: ["contracts"]
---

# Get contracts for authenticated user (as owner or claimer) with pagination and optional status filtering

`GET /api/v1/contracts/`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/contracts/`
- Auth: HTTP bearer

Get contracts for authenticated user (as owner or claimer) with pagination and optional status filtering

## Query parameters

- `limit` number
- `offset` number
- `status` 'all' | 'active' | 'completed' | 'cancelled'

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `contracts` object[], required
      - `id` number
      - `serverId` number
      - `fieldId` string, nullable
      - `ownerId` string
      - `claimerId` string, nullable
      - `payment` number, nullable
      - `paymentType` string, nullable
      - `contractType` string, nullable
      - `description` string, nullable
      - `contractStatus` string
      - `createdAt` string
      - `updatedAt` string
      - `owner` object
        - `discordId` string
        - `username` string, nullable
        - `nickname` string, nullable
        - `image` string, nullable
      - `claimer` object, nullable
        - `discordId` string
        - `username` string, nullable
        - `nickname` string, nullable
        - `image` string, nullable
      - `field` object, nullable
        - `fieldNumber` number
      - `_links` object
  - `meta` object, required
    - `timestamp` number, required
    - `pagination` object, required
      - `total` number, required
      - `limit` number, required
      - `offset` number, required
      - `hasMore` boolean, required
  - `_links` object: HATEOAS pagination links
    - `self` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `first` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `prev` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `next` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `last` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string

## Other responses

- `400`: Invalid query parameters
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
