Goldmine
Filter Sets

Create a filter set

POST
/contracts.v1.Contracts/CreateFilterSet

Creates a named, reusable predicate fragment in the workspace that contracts can reference by ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/contracts.v1.Contracts/CreateFilterSet" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",    "name": "Asiimov watchlist",    "description": "Curated list of Asiimov market hash names tracked across selling contracts.",    "predicate": {      "rule": {        "field": "PREDICATE_FIELD_MARKET_HASH_NAME",        "operator": "PREDICATE_OPERATOR_IN",        "value": {          "stringListValue": {            "values": [              "AWP | Asiimov (Field-Tested)",              "AWP | Asiimov (Well-Worn)",              "M4A4 | Asiimov (Field-Tested)"            ]          }        }      }    }  }'
{
  "filterSet": {
    "id": "ICEiIyQlJicoKSorLC0uLw==",
    "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",
    "name": "Asiimov watchlist",
    "description": "Curated list of Asiimov market hash names tracked across selling contracts.",
    "predicate": {
      "rule": {
        "field": "PREDICATE_FIELD_MARKET_HASH_NAME",
        "operator": "PREDICATE_OPERATOR_IN",
        "value": {
          "stringListValue": {
            "values": [
              "AWP | Asiimov (Field-Tested)",
              "AWP | Asiimov (Well-Worn)",
              "M4A4 | Asiimov (Field-Tested)"
            ]
          }
        }
      }
    },
    "version": "1",
    "createdAt": "2026-06-29T10:00:00Z",
    "updatedAt": "2026-06-29T10:00:00Z"
  }
}
{
  "code": "invalid_argument",
  "message": "The request was malformed, such as a missing required field or an unparseable cursor."
}
{
  "code": "unauthenticated",
  "message": "The request lacks a valid API key in the Authorization header."
}
{
  "code": "permission_denied",
  "message": "The API key is not allowed to perform this action on this workspace."
}
{
  "code": "resource_exhausted",
  "message": "The request was rate limited. Slow down and retry later."
}
{
  "code": "internal",
  "message": "An internal server error occurred."
}