GET /dashboard
Retrieves a list of all viewer links created by the authenticated user, including link metadata and associated user information.Authentication
Requires JWT authentication token in the Authorization header.Response
Returns an array of ViewerLink objects:Unique identifier for the viewer link
Name of the GitHub repository associated with this link
ID of the user who created the link
The unique access token for this viewer link
ISO 8601 timestamp when the link expires
Maximum number of views allowed (0 for unlimited)
Current number of times the link has been accessed
ISO 8601 timestamp when the link was created
ISO 8601 timestamp when the link was last updated
ISO 8601 timestamp when the link was soft-deleted (null if active)
Associated user information (preloaded)
Example Request
Example Response
Status Codes
200 OK- Successfully retrieved viewer links401 Unauthorized- Missing or invalid authentication token500 Internal Server Error- Failed to fetch links from database
Notes
- Only returns links created by the authenticated user
- Includes preloaded User relationship data
- Returns an empty array if the user has no viewer links