MadFi
Search
K

Impressions

Log an impression for a Lens post created on MadFi
Log an impression against a post that has in the metadata appId = Mad Finance.
General response for this endpoint is under 500ms, and you don’t have to wait for the response as long as the body is valid.

POST /impression

https://api.madfi.xyz/prod/impression
MUST include the api key in the header for x-api-key

JSON BODY

{
"chainId": "137",
"address": "0x28ff8e457feF9870B9d1529FE68Fbb95C3181f64",
"impressionType": "IMPRESSION",
"publicationId": "0x012b94-0x1e6f"
// "profileId": "",
// "promotedProfileId: "",
}
key
type
explanation
chainId
string
the chain id where the impression occurred (for lens, always 137)
address
string
the address of the connected wallet that generated the impression
profileId
string | undefined
the profile id of the lens user that generated the impression
impressionType
string
the type of impression, one of the following values: IMPRESSION | LIKE | COLLECT | MIRROR | COMMENT | LINK_CLICK | FOLLOW_CLICK
publicationId
string | undefined
the publication id for the impression in format profileId-pubId
promotedProfileId
string | undefined
the profile id being promoted, for when the impression type is FOLLOW_CLICK (Suggested Follows)

RESPONSES

status code
description
200
OK
400
BAD PARAMS - SEE ERROR MESSAGE
403
FORBIDDEN
404
BOUNTY / CAMPAIGN NOT FOUND