task verification specification
Orbiter Quest supports any third party to provide a mission verification interface. As long as you follow the interface specifications, your mission can be verified in our Quest.
Custom task interface verification interface specification
API Overview
API Endpoint:
/verify/xxxxHTTP Method:
GETFunctionality: Verifies whether a user has completed a task.
Use Case: Third-party projects can use this API to validate user task completion and return the results to the Orbiter platform.
Authentication
Is Authentication Required?: Optional.
Authentication Method: If authentication is required, provide an API key in the request header in the following format:
Authorization: Bearer <API_KEY>
Request Headers
Content-Type
Yes
The content type of the request body, fixed as application/json.
Authorization
No
API key in the format Bearer <API_KEY>.
Request Query
tweetId
string
No
tweetId
address
string
Yes
The user's wallet or account address.
Example Request
GET /v1/verify?address="0x1234abcd..."
Authorization: Bearer sk_test_abcdef123456Response Body
isValid
boolean
Indicates whether the verification passed (true) or failed (false).
message
string
A human-readable result or error message.
result
object
Optional, strategy-specific return data, e.g., { "count": 1 }.
Example Response
{
"isValid": true,
"message": "Verification succeeded",
"result":null
}Error Response
When a request fails, the API will return an error response with the following fields:
isValid
boolean
Should be false, indicating the verification failed.
message
string
Detailed error description.
result
object
Optional.
Example Error Response
{
"isValid": false,
"message": "The provided txHash is invalid."
}Notes
Optional Authentication: If the
Authorizationheader is not provided, the API will determine access based on its configuration.Request Body Validation:
The
inputfield must contain valid external data (e.g.,txHashortweetId).The
addressfield must be a valid wallet address.
Response Time: The API's response time may vary depending on the complexity of the external data validation.
FAQs
1. What happens if the Authorization header is not provided?
Authorization header is not provided?If authentication is required, the API will return a
401 Unauthorizederror.If authentication is optional, the API will process the request based on default permissions.
2. How should verification failures be handled?
If
isValidisfalse, use the information in themessagefield to guide users in correcting their input data.
Contact Us
If you encounter any issues while using the API, please contact us via the following channels:
Email: [email protected]
Website: https://orbiter.finance
Last updated
Was this helpful?