Main Component
Last updated
Last updated
The Main Component endpoint retrieves a combined list of projects and stories for a user. It adapts based on whether the user has supported projects previously or is new to the platform.
user_hash
string
Yes
No
The unique hash identifier for the user. If omitted, the response defaults to 4 new projects for new users.
The response returns a list of projects with the following fields:
project_id
integer
The unique identifier for the project.
project_name
string
The name of the project.
project_image_url
string
The URL for the project's image.
is_supported
boolean
Indicates whether the user supports this project.
has_stories
boolean
Indicates whether the project has any stories.
has_unviewed_stories
boolean
Indicates whether the user has unviewed stories for this project.
The response adapts based on the user's status:
New User (No user_hash
)
The query is sent without a user_hash
.
The response contains 4 new projects that the user hasn’t supported yet.
All projects have "is_supported": false
.
Returning User (With user_hash
)
The query includes the user_hash
.
The response contains the user's supported projects (with their support statuses and story updates) followed by new projects they haven’t supported.
Example Response: