CBL | DevPortal
  • Welcome to the Central Bank of Libya Developer Portal | DevPortal
  • LYPay
    • LYPay Instant Payment System
    • Regulatory Guidelines & Compliance
    • Accounting & Settlement in LYPay
    • LYPay Instant Payment System – Technical Overview
    • API Documentation
      • About the APIs
      • API reference
        • Webhooks
        • Auth
          • Revoke
        • Api
          • V1
            • Miscs
              • Institutions
              • Transaction status
            • Payments
              • Funds transfers
                • Refund
                • Confirm
              • Debited funds transfers
              • Credited funds transfers
                • By internal merchant reference
              • Details
            • Auth
              • Token
              • Password
                • Reset
      • Specification
    • NUMO QR Code Standards
  • Contact & Support
Powered by GitBook
On this page
  1. LYPay
  2. API Documentation
  3. API reference
  4. Auth

Revoke

PreviousAuthNextApi

Revoke Token

post

Revokes an existing bearer token. The request must include valid credentials in the body and a valid Bearer token in the header.

Authorizations
Body
emailstringRequiredExample: test@example.com
passwordstringRequiredExample: password
Responses
200
Token revoked successfully
default
An error response object
application/json
post
POST /auth/revoke HTTP/1.1
Host: 127.0.0.1:8080
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "email": "test@example.com",
  "password": "password"
}

No content