Merkl API

206 endpoints · v1.0.1
https://api.merkl.xyz/View as Markdown

The official API to access data related to Merkl campaigns, built and maintained by Merkl SAS. This API is provided as is, without any warranty of any kind.

Opportunities

Core
14

Campaigns

Core
9

Users

Core
14
get
/v4/users/{address}/rewardsGet the rewards associated to a user on a given chain.
get
/v4/users/{address}/protocols/{protocolId}/rewardsRetrieve claimable rewards for a user scoped to a single protocol. Breakdowns and amounts reflect…
get
/v4/users/{address}/termsCheck if a user address has signed Merkl's terms for a specific chain. Provide the user's wallet …
get
/v4/users/{address}/recipient/{token}Get the recipient address for a given user address and specific token.
get
/v4/users/{address}/operator/{operatorAddress}Check if an address is an operator for a given user address.
get
/v4/users/{address}/wrappedGet a summary of a user's claimed rewards, including their most-used protocol and most-claimed to…
get
/v4/users/{address}/rewards/statsLightweight USD totals for a user — total earned, currently claimable, and pending. Supports opti…
get
/v4/users/{address}/rewards/summaryPer-chain rewards rollup with USD totals and per-token raw amounts. A lightweight alternative to …
get
/v4/users/{address}/rewards/active-opportunitiesActive opportunities for a user — LIVE status with rewards still claimable or pending. Aggregated…
get
/v4/users/{address}/rewards/chains/{chainId}/breakdownsPer-chain opportunity breakdown for a user. Aggregated by opportunity with one row per token carr…
get
/v4/users/{address}/rewards/breakdownsPer-chain rewards with full opportunity breakdowns and proofs. Returns the same shape as /v4/user…
post
/v4/internal/users/
get
/v4/internal/users/tags
patch
/v4/internal/users/{address}/tags

Chains

Core
2

Protocols

Core
3

Tokens

Core
5

Rewards

Rewards
11

Claims

Rewards
5

Credits

Rewards
9

Creator

Rewards
9

Programs

Rewards
3

Campaign Lists

Rewards
6

Campaign Privacy

Rewards
3

Referral

Rewards
2

Reallocations

Rewards
1

Templates

Rewards
3

Overrides

Rewards
2

Historical

Rewards
3

SOFR Spread Ratchet

Rewards
2

Block Timestamp

Rewards
3

Developer API Keys

Internal
7

Authentication

Internal
7

Config

Internal
19
get
/v4/config/{id}Beta feature (not production ready yet) - Fetch the configuration for a specific campaign by its …
post
/v4/config/diffCompute the diff between two config schemas. Returns an array of edit operations (insert/update/d…
post
/v4/config/diff/{id}Compute the diff between the current config of a campaign and a new one. Returns an array of edit…
post
/v4/config/extendBeta feature (not production ready yet) - Extends a campaign configuration with the values resolv…
post
/v4/config/opportunityBeta feature (not production ready yet) - Computes an opportunity from a campaign configuration
post
/v4/config/tvlBeta feature (not production ready yet) - Computes a TVL from a campaign configuration
post
/v4/config/encodeBeta feature (not production ready yet) - Encodes campaign parameters into the transaction payloa…
post
/v4/config/encode/overrideBeta feature (not production ready yet) - Builds the transaction payload used to override (or can…
post
/v4/config/encode/reallocateBeta feature (not production ready yet) - Builds the transaction payload used to reallocate an ex…
post
/v4/config/encode/safeBeta feature (not production ready yet) - Encodes campaign config to Safe transaction payload. Us…
post
/v4/config/encode/batchBeta feature (not production ready yet) - Encodes a batch of campaign parameters into transaction…
post
/v4/config/encode/batch/safeBeta feature (not production ready yet) - Encodes batch campaign configs to Safe transaction payl…
get
/v4/config/decode/onchain/{distributionChainId}/{campaignId}Decodes an on-chain campaign configuration. Use distributionChainId and campaignId path parameters.
post
/v4/config/decode/{distributionChainId}Decodes campaign data from the Distribution contract. Use distributionChainId path parameter and …
get
/v4/config/decode/{distributionChainId}/{payload}Decodes campaign from a raw payload. Use distributionChainId and payload (hex string) path parame…
post
/v4/config/decode/safeDecodes a Safe transaction payload back to the original campaign configurations. Returns an array…
post
/v4/config/decode/args/createCampaignDecodes arguments of the create campaign function back to the original campaign configuration.
post
/v4/config/storeStores campaign configurations keyed by their hash. Provide the campaign configuration payload in…
get
/v4/config/hash/{hash}Gets a campaign configuration by its hash. If campaignId and distributionChainId are provided, as…

Key Value Store

Internal
17
put
/v4/key-value-stores/{key}/entriesUpsert a single entry. Authenticate with a JWT for user access, or an X-API-Key header for servic…
get
/v4/key-value-stores/{key}/entriesList entries. Public for stores configured as publicly readable; otherwise requires authentication.
put
/v4/key-value-stores/{key}/entries/batchBatch upsert entries. Requires X-API-Key authentication.
get
/v4/key-value-stores/{key}/entries/{address}Get a single entry by address
delete
/v4/key-value-stores/{key}/entries/{address}Delete an entry. Users may delete their own entry; the store owner or an X-API-Key holder may del…
post
/v4/key-value-stores/selfCreate a key-value store you own (allowlisted users, X-API-Key). key is a suffix; the response re…
get
/v4/key-value-stores/selfList the key-value stores you own (X-API-Key)
patch
/v4/key-value-stores/self/{key}Update a key-value store you own by its canonical key (X-API-Key)
delete
/v4/key-value-stores/self/{key}Delete a key-value store you own (by canonical key) and all its entries (X-API-Key)
post
/v4/internal/key-value-storesCreate a new key-value store config (BackOffice only)
get
/v4/internal/key-value-storesList all key-value store configs (BackOffice only)
patch
/v4/internal/key-value-stores/{key}Update a config (BackOffice only)
delete
/v4/internal/key-value-stores/{key}Delete a config and all entries (BackOffice only)
post
/v4/internal/key-value-stores/quotasGrant a self-serve creator quota (BackOffice only)
get
/v4/internal/key-value-stores/quotasList all self-serve creator quotas (BackOffice only)
patch
/v4/internal/key-value-stores/quotas/{address}Update a creator quota (BackOffice only)
delete
/v4/internal/key-value-stores/quotas/{address}Revoke a creator quota (BackOffice only)

Node

Internal
6

Leaves

Internal
2

Roots

Internal
2

Enums

Internal
4

Schemas

Internal
3

Health

Internal
6

GraphQL

Internal
5

Diffs

Internal
8

Payload

Internal
3

Transactions

Internal
1

OffchainBilling

Internal
3

Volume

Internal
4