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).
In: header
Query Parameters
Return only decision models owned by this principal UUID.
Return only decision models that use this provider.
"JEV" | "LAYA" | "CLEF"Maximum number of models to return, from 1 to 1000. Omit this parameter or use 0 for 50.
50int32Use nextPageToken from the previous response to request the next page. Keep the filters and pageSize unchanged.
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"}Empty Object
Header Parameters
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.
int641 <= value <= 86400000Response 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
}