---
title: 'Get contracts'
description: 'Get contracts'
openapi: GET /api/contracts
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.snagsolutions.io/llms.txt). Append `.md` to any page URL for its markdown version.

`GET /api/contracts` — query parameters: `search`, `organizationId`, `websiteId`, `cursor`, `includeAbi`, `id`, `limit`, `startingAfter`

`GET https://admin.snagsolutions.io/api/contracts`

Get contracts

## Authentication

- `apiKeyAuth` — apiKey in header: `X-API-KEY`

## Query parameters

- `search` (string)
- `organizationId` (string, required)
- `websiteId` (string, required)
- `cursor` (string)
- `includeAbi` (boolean)
- `id` (string)
- `limit` (integer) — Number of contracts to return
- `startingAfter` (string) — Pagination cursor to start after a specific contract ID

## Response 200

200
  - response (object)
    - `data` (array, required)
      - `items` (object) — Schema for a contract
        - `id` (string, uuid, required) — Unique identifier for the contract
        - `name` (string, required) — Name of the contract
        - `address` (string, required) — Contract address matching the required format
        - `chainId` (integer, int64, required) — ID of the blockchain chain
        - `type` (string, required, one of: erc20, erc721, erc1155, custom) — Type of the contract
        - `organizationId` (string, uuid, required) — Unique identifier for the organization
        - `iconUrl` (string, uri) — Optional icon image for the contract; used as the reward token icon
    - `hasNextPage` (boolean, required)


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://docs.snagsolutions.io/api-specs.zip
