Overview
REST Single-Dimensional Credential allows you to fetch user data via RESTful APIs and validate user eligibility based on a single condition. It is suitable for when task verification is equivalent to answering the question, Did this particular user perform this task — yes or no?If you want to understand the workflow and considerations of REST credentials, please refer to the introduction
Config process
1. Finding the Config in Task Settings
The option to configure REST credential can be found in step 3, Task Settings of quest creation on the Galxe Dashboard, under theImport Your Own Data
task type.
2. Basic Config
- ID Type
ID Type
provides various identity options, including social accounts, blockchain addresses, and other unique identifiers.
- Title
- Credential Source
REST
type and select GET
or POST
based on your API request type.
- Type
Single Dimension
.
3. Configure API
- Input Endpoint URL
- Add Headers (Optional)
- Input Body (For POST Requests Only):
4. Test API Response
- Input a test address, send the request, and confirm whether the response is correct.
- The response must be in JSON format. Example:
5. Write Expressions
- Whitelist Validation:
- Token Balance Validation:
- Combined Condition Validation:
6. Description
Description of the certificate, supports rich text input, maximum 200 characters.7. Call-to-Action Link
Guide users to specific operation pages to complete interactive tasks.8. Participation End Time & Update Frequency (Optional)
- Participation End Time:
- Update Frequency:
Example
Polygon OAT Holder
- Endpoint
- Request Type
GET
- Headers
- Response
- Expression
ETH Balance Holder
- Endpoint
- Request Type
POST
- Headers
No header
- Body
- Response
- Expression
General NFT Holder
- Endpoint
- Request Type
POST
- Headers
No header
- Body
- Response
- Expression