get
/v4/schemas/{groupName}/{typeId}
Get raw JSON Schema for a typed input (BETA)Get raw JSON Schema for a typed input
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 ajv, openapi-typescript, json-schema-to-ts or quicktype.
:typeId accepts either:
- the enum value — e.g.
1forCampaignType.INVALID, orFIX_APRforDistributionMethod.FIX_APR; - the enum key — e.g.
INVALIDforCampaignType.INVALID.
Examples:
GET /v4/schemas/campaignType/1GET /v4/schemas/distributionMethod/FIX_APRGET /v4/schemas/hookType/APIBOOST
Responds 404 if either groupName is unknown or typeId does not match any value/key of the underlying enum.
⚠️ Beta: the returned schema may evolve as the engine evolves.
Path parameters
groupNamestringrequired
typeIdstringrequired
get
https://api.merkl.xyz/v4/schemas/{groupName}/{typeId}curl -X GET "https://api.merkl.xyz/v4/schemas/{groupName}/{typeId}"Fill the required path parameters groupName, typeId to send.