GoodMemGoodMem
ReferenceAPIREST APIDecision Models

List decision models

GET /v1/decision-models: Lists decision models that you have permission to read.

Lists decision models that you have permission to read. Requires LIST_DECISION_MODEL for the instance and READ_DECISION_MODEL for each returned model. Results are ordered by creation time, newest first, with UUID descending to break ties. Credentials are omitted.

LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).

GET
/v1/decision-models
x-api-key<token>

In: header

Query Parameters

ownerId?string

Return only decision models owned by this principal UUID.

providerType?string

Return only decision models that use this provider.

Value in"JEV" | "LAYA" | "CLEF"
pageSize?integer

Maximum number of models to return, from 1 to 1000. Omit this parameter or use 0 for 50.

Default50
Formatint32
pageToken?string

Use nextPageToken from the previous response to request the next page. Keep the filters and pageSize unchanged.

label?object

Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).

Example{"environment":"production","team":"nlp"}

Empty Object

Header Parameters

GoodMem-Timeout-Ms?integer

Optional waiting budget in milliseconds, measured from REST servlet ingress and shared across all internal gRPC calls. Supply one decimal integer from 1 to 86400000. Omission adds no deadline. Existing shorter deadlines still apply. Expiry returns HTTP 504 before streaming starts; after streaming starts, no successful completion event is sent. Use SSE or opt into GoodMem-Stream-Terminal for an explicit terminal outcome. Retrieval work is cooperatively cancelled. An accepted mutation may still commit after timeout or disconnect; a failed response does not imply rollback.

Formatint64
Range1 <= value <= 86400000

Response Body

curl -X GET "https://your-goodmem-server.example.com/v1/decision-models?ownerId=string&providerType=JEV&pageSize=50&pageToken=string&label%5Benvironment%5D=production&label%5Bteam%5D=nlp" \  -H "GoodMem-Timeout-Ms: 30000"
{
  "decisionModels": [
    {
      "credentials": {
        "apiKey": {
          "inlineSecret": "sk-1234567890abcdef",
          "secretRef": {
            "uri": "vault://path/to/secret"
          },
          "headerName": "Authorization",
          "prefix": "Bearer "
        },
        "gcpAdc": {
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "quotaProjectId": "my-quota-project"
        }
      }
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
Empty
Empty
Empty
Empty
Empty
Empty