Wasla
  1. Auth
Wasla
  • Auth
    • Register a new user
      POST
    • Login
      POST
    • Logout
      POST
  • FreelancerProfile
    • Certifications
      • Update Freelancer Certifications
      • Add Freelancer Certification
      • All freelancer Certifications
      • Delete Freelancer Certifaction
    • Educations
      • All Educations
      • Add Educations
    • Social Links
      • All Freelancer Social Links
      • Add Freelancer Social Link
      • Delete Freelancer Social Link
      • Update Freelancer Social Links
    • Proposal
      • Apply Freelancer on Project
      • Update Proposal
      • Delete Proposal
    • Show Freelancer
      GET
    • MyProfile
      GET
    • Add Skills
      POST
    • Freelancer Image
      POST
    • Update Freelancer Profile
      PUT
    • Delete Freelancer Profile
      DELETE
  • ClientProfile
    • Project
      • Post Project
      • Show Project
      • Update Project
      • Delete Project
    • Review
      • Create Review
      • Update Review
    • Show Profile
      GET
    • Update Profile
      PUT
    • Accept Proposal
      PUT
  • All Skills
    GET
  • All Projects
    GET
  • Schemas
    • Api Responce
    • User
  1. Auth

Logout

Developing
Testing Env
https://test.your-api-server.com
Testing Env
https://test.your-api-server.com
POST
/logout
Allows an authenticated user to securely log out. This endpoint works by revoking the user's current access token, making it unusable for future authenticated requests. This action ensures that the session is terminated on the server-side, providing enhanced security.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Responses

🟢200Success
application/json
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/logout' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "code": 200,
    "message": "Logout successful",
    "data": null
}
Modified at 2025-09-04 07:44:38
Previous
Login
Next
Update Freelancer Certifications
Built with