🔌 API Documentation
Every endpoint, grouped by feature — with auth, role, and purpose.
Endpoint groups
Conventions
- Base URL:
https://api.ispeakerlive.com/api - Auth: Sanctum bearer token in the
Authorizationheader (Bearer <token>). - Locale: override with header
X-Lang: arorX-Lang: en. - Response: JSON, with
data,meta, and optionalmessage. - Errors: standard HTTP codes; validation errors return
422witherrors{}. - Role gates: some routes require
role:speakermiddleware (marked with a Speaker badge below).
# Example
curl -H "Authorization: Bearer <token>" \
-H "X-Lang: ar" \
https://api.ispeakerlive.com/api/posts/feed
Authentication
Public registration & login plus session management once authenticated.
Description
Create a new account. Returns token + user.
Body
{ "name":"…", "email":"…", "password":"…", "username":"…" }Description
Email/phone + password. Returns Sanctum token.
Description
Current user profile (requires token).
Description
Revoke current token.
Description
Revoke all tokens for this user.
Description
List active token sessions.
Description
Revoke a specific token.
Profile
Account info, media, privacy, certificates, and experiences.
Description
Authenticated user with profile, interests, certificates, experiences.
Description
Public profile (auth optional for richer data).
Description
Public content authored by a profile.
Description
List of categories available as interests.
Description
Update name / headline / bio / etc.
Description
Upload avatar (multipart).
Description
Upload cover (multipart).
Description
Change password (old + new).
Description
Privacy flags.
Description
Update social_links JSON.
Description
Replace interest selection.
Description
Toggle is_profile_private.
Description
Toggle notifications_enabled.
Description
Create certificate entry.
Description
Update certificate.
Description
Delete certificate.
Description
Create experience.
Description
Update experience.
Description
Delete experience.
Description
Soft-delete the authenticated account.
Posts & Feed
Author and consume social feed content.
Description
Personalised feed (people you follow + suggested).
Description
Create a post.
Description
Single post detail.
Description
Update a post.
Description
Delete a post.
Description
Pin/unpin own post.
Description
Add reaction (type in body).
Description
Remove reaction.
Description
Share post internally with optional comment.
Description
Report post.
Description
List comments.
Description
Add a comment (optional parent_id).
Description
Posts by a specific user.
Follow
Social graph operations & private-profile request flow.
Description
Suggested users to follow.
Description
Follow / send follow request.
Description
Unfollow.
Description
Check follow state.
Description
List followers.
Description
List following.
Description
Remove a follower from your own followers.
Description
Search users.
Description
Pending requests received.
Description
Pending count.
Description
Accept a request.
Description
Reject a request.
Description
Cancel a request you sent.
Description
Accept all.
Description
Reject all.
Trending
Discovery surfaces.
Description
Top trending hashtags.
Description
Top trending posts.
Description
Posts under a hashtag.
Description
Trending topics.
Description
Trending speakers.
Description
Search hashtags.
Speakers
Speaker directory & speaker-only stats.
Description
List/search speakers.
Description
Available filters for speaker discovery.
Description
Speaker detail.
Description
Send first DM to a speaker.
Description
Authenticated speaker stats.
Description
All content authored by speaker.
Dashboards
Role-specific dashboard data bundles.
Description
Student dashboard aggregate.
Description
Speaker dashboard aggregate.
Categories
Master list used across the platform.
Description
List all categories (bilingual).
Marketplace
Discover & purchase courses and books.
Description
Marketplace landing aggregate.
Description
Available filters.
Description
Popular topics.
Description
Browse courses.
Description
Course detail.
Description
Purchase a course.
Description
Course reviews.
Description
Add a review.
Description
Browse books.
Description
Book detail.
Description
Purchase a book.
Description
Book reviews.
Description
Add a book review.
Description
My purchased courses.
Description
My purchased books.
Course Player (Student)
Consume the course, track progress, take notes.
Description
Course player payload (curriculum + progress).
Description
Lesson detail.
Description
Update watched seconds.
Description
Mark complete.
Description
All notes for the course.
Description
Add note.
Description
Update note.
Description
Delete note.
Description
Public preview lesson.
Book Reader
Read books with annotations & DRM.
Description
Reader payload (DRM token + metadata).
Description
Stream the PDF.
Description
Refresh DRM token.
Description
Update reading progress.
Description
Create annotation.
Description
Update annotation.
Description
Delete annotation.
Description
List bookmarks.
Description
Annotations on a page.
Description
Public preview metadata.
Description
Stream preview pages.
Live Rooms
Group live sessions on Jitsi.
Description
List rooms.
Description
Create a room.
Description
Room detail.
Description
Update room.
Description
Delete room.
Description
Start session (issues Jitsi ID).
Description
End session.
Description
Register/RSVP.
Description
Cancel registration.
Description
Join (returns Jitsi link).
Description
Leave session.
Description
List participants.
Description
In-room messages.
Description
Send in-room message.
Description
Toggle pin.
Description
Delete message.
Description
Get shareable link.
Description
Report room.
Description
Pending registrations.
Description
Approve registration.
Description
Reject registration.
Consultations
1:1 sessions: setup, booking, lifecycle.
Description
Speaker consultation settings.
Description
Save settings.
Description
Add availability slot.
Description
Remove slot.
Description
Update pricing.
Description
Bookings as speaker.
Description
Booking detail.
Description
Accept booking.
Description
Reject booking.
Description
Complete & trigger payout.
Description
Consultation statistics.
Description
Bookings as student.
Description
Cancel booking.
Description
Rate after session.
Description
Join meeting.
Description
Slots for a date.
Description
Available dates.
Description
Book a slot.
Cart
Cart & checkout for courses + books.
Description
Get cart.
Description
Items count.
Description
Add item (polymorphic).
Description
Remove item.
Description
Empty cart.
Description
Check item presence.
Description
Apply discount code.
Description
Checkout (pays from wallet).
Wallet
Balance, transactions, invoices, withdrawals.
Description
Wallet summary.
Description
Paginated transactions.
Description
Export CSV.
Description
Single transaction.
Description
Invoice JSON.
Description
Invoice PDF.
Description
Top up (manual / admin).
Description
Send to another user.
Description
Request withdrawal.
Description
Earnings / spend stats.
PayPal
Online payment via PayPal SDK.
Description
Client config.
Description
Create order.
Description
Capture after approval.
Description
Verify status.
Description
Top-up create.
Description
Top-up capture.
Chat
1:1 messaging with media support.
Description
List conversations.
Description
Search conversations.
Description
Create / get pair.
Description
Messages list.
Description
Send message.
Description
Mark as read.
Description
Soft-delete.
Description
Delete a message.
Description
Direct send by user_id.
Description
Unread total.
Description
Search users for new chat.
Description
Upload media to use in chat.
Notifications
In-app notifications (FCM push is server-side).
Description
List paginated.
Description
Unread count.
Description
Mark all read.
Description
Mark single read.
Description
Delete.
Gifts
Send paid micro-gifts and track stats.
Description
List gift catalogue.
Description
Send a gift.
Description
Gifts on an entity.
Description
My sent gifts.
Description
My received gifts.
Description
Aggregate stats.
Description
Top gifts.
Description
Leaderboard.
Description
Sent by user.
Description
Received by user.
Collections
Personal library across content types.
Description
Library overview.
Description
My courses (enrolled).
Description
My books (purchased).
Description
My rooms (registered).
Description
My consultations.
Settings
Public & private platform-wide settings.
Description
All settings visible to authenticated user.
Description
Read a single setting (public).
Comments
Comment lifecycle & reactions.
Description
Update a comment.
Description
Delete a comment.
Description
Pin/unpin comment (post owner only).
Description
React to a comment.
Description
Remove reaction.