GoodMemGoodMem
ReferenceAPIREST APIDecision Models

List decision models

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

GET
/v1/decision-models

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).

Authorization

ApiKeyAuth
headerx-api-key<token>

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.

Formatint32
Default50
pageToken?string

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

label?

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"}

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

Success

application/json
  1. response

One page of decision models that you have permission to read.

decisionModels*array<>

Decision models ordered by creation time, newest first, with UUID descending to break ties.

nextPageToken?|

Token to pass as pageToken in the next request. Omitted when there are no more results.

totalCount*integer

Total number of models that match the filters and that you have permission to read, across all pages.

Formatint64
Example Request
curl -X GET 'https://your-goodmem-server.example.com/v1/decision-models' \  -H 'GoodMem-Timeout-Ms: 30000'
Example Response
{  "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}