The TechStore Explorer REST API is a JSON API secured with Laravel Sanctum Bearer tokens. Covers authentication, wishlist management, and admin role management.
Use this file to discover all available pages before exploring further.
TechStore Explorer exposes a REST API under /api/ that returns JSON responses and uses Laravel Sanctum Bearer token authentication. Every protected endpoint requires a token obtained from POST /api/login or POST /api/register, passed via the Authorization: Bearer {token} header. All responses — including errors — are JSON objects.
Your Railway-assigned URL (e.g. https://<app>.up.railway.app/api)
All example requests in this documentation use the local development base URL http://127.0.0.1:8000/api. Replace it with your Railway URL when targeting your deployed instance.
Requests to protected endpoints must include the Authorization header with a valid Sanctum Bearer token. Tokens are issued as plain-text personal access tokens and stored in the personal_access_tokens table.
Authorization: Bearer {token}
Obtain a token by calling POST /api/login with valid credentials, or POST /api/register to create a new account and receive a token in the same response.
See the Authentication guide for step-by-step instructions on registering, logging in, and attaching tokens to requests in both curl and Postman.
All endpoints return JSON. Successful responses always include a message field alongside the relevant resource payload. Error responses contain a message field describing what went wrong.Successful response structure (example):
An official Postman collection is available for exploring all TechStore Explorer API endpoints with pre-configured request bodies and environment variables.Open the Postman collection →
The collection is shared as read-only. Fork it into your own Postman workspace to add your own environment variables (e.g. base_url, token).