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).
ApiKeyAuthx-api-key<token>ownerId?stringReturn only decision models owned by this principal UUID.
providerType?stringReturn only decision models that use this provider.
"JEV""LAYA""CLEF"pageSize?integerMaximum number of models to return, from 1 to 1000. Omit this parameter or use 0 for 50.
int3250pageToken?stringUse 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).
{ "environment": "production", "team": "nlp"}GoodMem-Timeout-Ms?integerOptional 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.
int641 <= value <= 86400000Success
application/json- 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*integerTotal number of models that match the filters and that you have permission to read, across all pages.
int64curl -X GET 'https://your-goodmem-server.example.com/v1/decision-models' \ -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}