--- url: https://docs.youcan.shop/store-front/customers/logout.md --- # Logout a customer Endpoint: `https://my-store.youcan.shop/api/customers/logout` Method: `POST` Revokes the token in the `Authorization` header. Get the token from the [Login endpoint](/store-front/customers/login). ## Response \[200] OK ```json { "message": "Logged out" } ``` \[401] Unauthorized ```json { "status": 401, "detail": "Unauthenticated.", "meta": [] } ```