# GET /v4/schemas/{groupName}/{typeId}

_Merkl API_

> Get raw JSON Schema for a typed input (BETA)

**Get raw JSON Schema for a typed input**<p>Returns the raw TypeBox JSON Schema describing the inputs accepted for a specific entry of a group. The returned object is a standard JSON Schema document and can be consumed directly by tooling such as <code>ajv</code>, <code>openapi-typescript</code>, <code>json-schema-to-ts</code> or <code>quicktype</code>.</p><p><code>:typeId</code> accepts either:</p><ul><li>the enum <strong>value</strong> — e.g. <code>1</code> for <code>CampaignType.INVALID</code>, or <code>FIX_APR</code> for <code>DistributionMethod.FIX_APR</code>;</li><li>the enum <strong>key</strong> — e.g. <code>INVALID</code> for <code>CampaignType.INVALID</code>.</li></ul><p>Examples:</p><ul><li><code>GET /v4/schemas/campaignType/1</code></li><li><code>GET /v4/schemas/distributionMethod/FIX_APR</code></li><li><code>GET /v4/schemas/hookType/APIBOOST</code></li></ul><p>Responds <code>404</code> if either <code>groupName</code> is unknown or <code>typeId</code> does not match any value/key of the underlying enum.</p><p>⚠️ <strong>Beta:</strong> the returned schema may evolve as the engine evolves.</p>

### Path parameters

- `groupName` (string) _(required)_
- `typeId` (string) _(required)_

## Responses

## Example request

```bash
curl -X GET "https://api.merkl.xyz//v4/schemas/{groupName}/{typeId}" \
  -H "x-api-key: YOUR_API_KEY"
```