The admin user endpoints let administrators inspect and manage VinylVibes user accounts. All three endpoints require at leastDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/akibanks/api-tienda-vinilos/llms.txt
Use this file to discover all available pages before exploring further.
admin or demo role; the two write operations (PUT, DELETE) are blocked for demo accounts, which are read-only by design.
GET /admin/usuarios
Returns a list of every registered user, ordered by registration date descending.| Property | Value |
|---|---|
| Method | GET |
| Path | /admin/usuarios |
| Auth | JWT — admin or demo role |
Request parameters
No query parameters or request body required.Response
Returns an array of user objects.Unique identifier for the user.
The user’s username as provided at registration.
The user’s email address. Auto-generated placeholder addresses follow the pattern
<username>@vinylvibes.local.The user’s current role. One of
cliente, vendedor, admin, or demo.ISO 8601 timestamp of when the account was created.
Example request
Example response
Error responses
| Status | Description |
|---|---|
401 | Missing or invalid JWT token. |
403 | Authenticated user does not have admin or demo role. |
500 | Internal server error while querying the database. |
PUT /admin/usuarios/:id/rol
Updates the role of a specific user account.| Property | Value |
|---|---|
| Method | PUT |
| Path | /admin/usuarios/:id/rol |
| Auth | JWT — admin role only |
Path parameters
The unique identifier (
id_usuario) of the user whose role you want to change.Body parameters
The new role to assign. Must be one of
cliente, vendedor, or admin.Response
Example request
Error responses
| Status | Description |
|---|---|
400 | rol is missing or not one of cliente, vendedor, admin. |
401 | Missing or invalid JWT token. |
403 | Authenticated user is not admin, or is a demo account (write blocked). |
500 | Internal server error while updating the database. |
DELETE /admin/usuarios/:id
Permanently deletes a user account. An admin cannot delete their own account.| Property | Value |
|---|---|
| Method | DELETE |
| Path | /admin/usuarios/:id |
| Auth | JWT — admin role only |
Path parameters
The unique identifier (
id_usuario) of the user to delete.Response
Example request
Error responses
| Status | Description |
|---|---|
400 | The id in the path matches the currently authenticated admin’s own account — self-deletion is blocked. Returns {"error": "No puedes eliminarte a ti mismo."}. |
401 | Missing or invalid JWT token. |
403 | Authenticated user is not admin, or is a demo account (write blocked). |
500 | Internal server error while deleting from the database. |