---
title: "Get regex pattern by ID"
method: GET
path: "/api/{org_id}/re_patterns/{pattern_id}"
tags: ["RePattern"]
---

# Get regex pattern by ID

`GET /api/{org_id}/re_patterns/{pattern_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/re_patterns/{pattern_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/re_patterns/:pattern_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a specific regex pattern using its unique identifier

## Path parameters

- `org_id` string, required
- `pattern_id` string, required

## Response `200`

Pattern info

- object
  - `created_at` integer, required
  - `description` string, required
  - `id` string, required
  - `name` string, required
  - `pattern` string, required
  - `updated_at` integer, required

## Other responses

- `404`: Pattern not found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
