Overview
This endpoint allows recruiters and other stakeholders to view the root contents of a repository using a secure viewer token. No authentication is required - access is granted through the token itself.Endpoint
Path Parameters
The unique viewer token generated when creating a viewer link. This token provides time-limited access to the repository.
How It Works
- The token is validated against the database
- Expiration date is checked
- View count is verified against max views (if set)
- View count is incremented
- Repository root contents are fetched from GitHub
- Contents are returned as JSON
Response
Returns an array of repository contents at the root level.The name of the file or folder
Either “file” or “dir” indicating the content type
The path to the content within the repository
GitHub API URL for this content
Example Request
Example Response
Error Responses
Missing token - No token provided in the URL
Invalid or expired link - Token not found in database
Link has expired - The token’s expiration date has passedView limit reached - The maximum number of views has been exceeded