Skip to main content
POST
/
v2
/
memory
/
patterns
/
get
Get Patterns
curl --request POST \
  --url https://api.velt.dev/v2/memory/patterns/get \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '{
  "data": {}
}'
{
  "result": [
    {
      "scope": "org",
      "organizationId": "org_eu",
      "description": "Copy with medical claims is rejected unless it cites a source.",
      "confidence": 0.83,
      "sourceCount": 19,
      "contentType": "marketing-copy",
      "category": "compliance",
      "discoveredAt": 1731432000000
    }
  ]
}
Use this API to list the decision patterns Memory has detected for the workspace, e.g. “copy with medical claims is rejected unless it cites a source.” Patterns are derived from accumulated judgments.

Endpoint

POST https://api.velt.dev/v2/memory/patterns/get

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required
No fields required. Send an empty object.

Example Requests

List detected patterns

{
  "data": {}
}

Response

Each pattern includes its scope (apiKey or org), an optional organizationId, a plain-language description, a confidence score, the sourceCount of judgments behind it, the contentType and category it applies to, and when it was discovered.

Success Response

{
  "result": [
    {
      "scope": "org",
      "organizationId": "org_eu",
      "description": "Copy with medical claims is rejected unless it cites a source.",
      "confidence": 0.83,
      "sourceCount": 19,
      "contentType": "marketing-copy",
      "category": "compliance",
      "discoveredAt": 1731432000000
    }
  ]
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
{
  "result": [
    {
      "scope": "org",
      "organizationId": "org_eu",
      "description": "Copy with medical claims is rejected unless it cites a source.",
      "confidence": 0.83,
      "sourceCount": 19,
      "contentType": "marketing-copy",
      "category": "compliance",
      "discoveredAt": 1731432000000
    }
  ]
}