---
title: "Get a mapping rule"
method: GET
path: "/mapping/{programId}/rules/{mappingId}"
tags: ["mapping"]
---

# Get a mapping rule

`GET /mapping/{programId}/rules/{mappingId}`

Get a mapping rule from a program

## Path parameters

- `programId` string, required — Mapping Program ID
- `mappingId` string, required — Mapping Rule ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeMappingMappingRuleResponse
  - `data` TypeMappingMappingRule, required
    - `name` string, required — Name of the mapping rule
    - `type` string, required
    - `config` unknown
    - `acceptedAt` string, date-time — Time the mapping rule was last updated
    - `acceptedBy` string — Actor ID
    - `metadata` unknown
    - `id` string, required — Mapping Rule ID
    - `confidence` integer — Confidence of the mapping rule
    - `createdBy` string — User ID
    - `createdAt` string, date-time, required — Time the mapping rule was created
    - `updatedAt` string, date-time, required — Time the mapping rule was last updated
    - `deletedAt` string, date-time — Time the mapping rule was deleted

## Other responses

- `400` — Error response with status 400
- `404` — Error response with status 404

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/versions/9d3a9979cd96/schema)
