> ## Documentation Index
> Fetch the complete documentation index at: https://velt-mintlify-40d8baa1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Patterns

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

<ParamField header="x-velt-api-key" type="string" required>
  Your API key.
</ParamField>

<ParamField header="x-velt-auth-token" type="string" required>
  Your [Auth Token](/security/auth-tokens).
</ParamField>

# Body

#### Params

<ParamField body="data" type="object" required>
  No fields required. Send an empty object.
</ParamField>

## **Example Requests**

#### List detected patterns

```JSON theme={null}
{
  "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

```JSON theme={null}
{
  "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

```JSON theme={null}
{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
```

<ResponseExample>
  ```js theme={null}
  {
    "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
      }
    ]
  }
  ```
</ResponseExample>
