API Task
Verify quest completion by making a request to an external endpoint. This allows you to create quests with custom tasks tied to your own platform or application.
Configuration
Configuration
- Name: Unique title to clearly identify the task.
- Description: Clear description of what has to be done to complete the task.
- Endpoint: The URL that our system should call to verify the task.
- User identification: Select what user data to include in the request payload.
Request payload
When verifying an API task, our system sends aPOST request to the endpoint you specified in the task settings.
Each request includes the following data:
Expected response
If the task verification is successful, return a response with a200 status code. No response body is required, but
you can include a verificationData field in the response to store additional, arbitrary metadata about the
verification result. This metadata will be saved with the task completion record for future reference.
400 status code and include a message field in the response body.
This message should explain why the verification failed in a user-friendly way, as it will be displayed to the user in the Flipsuite UI.
Endpoint security
In the quest integration settings, you can configure an authentication secret that will be sent with every request to your API. This allows you to verify that the request originated from Flipsuite. The secret is included in theAuthorization header of each request.
