get
/v4/schemas/
List schema groups (BETA)List schema groups
Returns every schema group exposed by this API. A group binds an enum (e.g. CampaignType) to a family of TypeBox JSON Schemas describing the inputs the Merkl engine accepts for each value of that enum.
Current groups:
campaignType— config inputs of a campaign of a givenCampaignType.campaignTypeExtended— same ascampaignTypeplusdistributionChainIdandcampaignId.distributionMethod— parameters of a givenDistributionMethod.computeScoreMethod— parameters of a givenComputeScoreMethod.hookType— parameters of a givenHookType.processorType— config of a givenProcessorType.
Pair this endpoint with /v4/enums for the enum value ↔ key mapping.
⚠️ Beta: response shape may change without notice.
Responses
200Response for status 200
Schema
object
groupsobject[]requiredAvailable schema groups
namestringSchema group name (e.g., campaignType)enumNamestringUnderlying enum name (e.g., CampaignType)valueTypeenumType of the discriminator values used to address a schema in this groupnumberstringcountnumberNumber of schemas available in the groupdescriptionstringHuman-readable description of the schema groupExample
{
"groups": [
{
"name": "string",
"enumName": "string",
"valueType": "number",
"count": 0,
"description": "string"
}
]
}get
https://api.merkl.xyz/v4/schemas/curl -X GET "https://api.merkl.xyz/v4/schemas/"