Task Verification API
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.
API Overview
API Endpoint:
/verify/xxxx
HTTP Method:
GET
Functionality: 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:
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
Response 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
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
Notes
Optional Authentication: If the
Authorization
header is not provided, the API will determine access based on its configuration.Request Body Validation:
The
input
field must contain valid external data (e.g.,txHash
ortweetId
).The
address
field 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 Unauthorized
error.If authentication is optional, the API will process the request based on default permissions.
2. How should verification failures be handled?
If
isValid
isfalse
, use the information in themessage
field 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?