Juman Project
  1. Auth
Juman Project
  • Auth
    • register
      POST
    • login
      POST
    • forgot-password
      POST
    • reset-password
      POST
    • logout
      POST
  • Events
    • user register to event
      POST
    • get all events
      GET
    • get single event
      GET
    • create event
      POST
    • update event
      PUT
    • delete event
      DELETE
  • Courses
    • recorded course
      • create recorded course
      • get all recorded courses
      • get single recorded course
      • delete recorded course
      • update recorded course
      • book a recorded course
      • verify payment
    • in person course
      • create in-person courses
      • get all in-person courses
      • get single in-person course
      • delete in-person course
      • update in-person course
      • book an in-person course
      • verify payment
    • get all courses
      GET
    • get single course
      GET
    • update course
      PUT
  • Consultations
    • create consultation
      POST
    • book a consultation
      POST
    • verify payment
      GET
    • all payments
      GET
    • payments history (for single user)
      GET
    • Get Available Consultations
      GET
  • Users
    • get user
      GET
    • me
      GET
    • update user
      PUT
    • update user password
      PUT
    • get all users
      GET
    • delete user
      DELETE
    • get user content
      GET
  • Contact
    • contact form
  • FAQs
    • get all faqs (admin)
    • get all faqs (users)
    • create faq
    • update faq
    • delete faq
    • toggle status
  • Podcasts
    • get all podcasts
    • create podcast
    • update podcast
    • delete podcast
    • get all podcasts (admin)
    • get single podcast
    • get single podcast
  1. Auth

logout

POST
/api/auth/logout

Logout User#

This endpoint is used to log out a user from the system.
Request Body
No request body is required for this endpoint.
Response
status (string): Indicates the status of the logout operation.
message (string): Provides additional information about the logout operation.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/auth/logout'
Response Response Example
{
    "status": "success",
    "message": "Logged out successfully"
}

Request

None

Responses

🟢200New Request
application/json
Body

Modified at 2025-07-27 20:59:58
Previous
reset-password
Next
user register to event
Built with