API endpoints

Laravel API foundation

These endpoints are live in the codebase as the first backend foundation for the AfriTune mobile app and future admin tooling.

POST /api/register

Create account + issue Sanctum token.

POST /api/login

Authenticate and return token.

GET /api/home

Home feed with banners, songs, artists, genres and playlist.

GET /api/search

Search songs, artists and albums with filters.

GET /api/songs

Paginated song catalog with artist and album metadata.

GET /api/artists

Artist listing and detail payloads.

GET /api/albums

Album catalog with release data and tracklists.

GET /api/subscription/plans

Free and premium plan data.