Campaigns
Custom API Activity
How to integrate custom API activity into your campaign.
🤝 Third-party activity integration
DeForm has a list of first-party activities that can be done in the DeForm
Campaigns platform. However in order to support any kind of activities, we offer
the ability to create an activity with any custom API.
🔑 Auth
Your API should not require any auth and should be an open API endpoint. In the future, we plan to allow custom headers required for the API (ex: API keys).
🎟️ Input / Request
⚙️ Whenever a DeForm Campaigns user verifies doing an activity on the platform, our backend will make a request to your open API endpoint with the below data.
URL: https://<domain>/<path>?<static query params>
Query params
- your own custom static query params (ex:
requiredPts=50
) - identity query params (depending on which identities you pick to identify a unique user, we will call the API with one or more of these query params)
evmAddress
(ex:0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
)farcasterFid
(unique Farcaster FID - ex:12345
)
Example request (unique identity = evmAddress
)
🚪 Output / Response
We expect a particular response format from your open API endpoint. We will throw a 500 error if we detect any response that doesn’t conform to the below format.
Response Schema
Example (Success)
Example (Failure)