Finds and returns permission records whoseDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TheSerchCp/SEAM-API/llms.txt
Use this file to discover all available pages before exploring further.
nameUri matches the supplied query parameter. The lookup is case-insensitive (backed by LOWER() in SQL), so GET /api/v1/users and get /api/v1/users resolve to the same records. If no match is found, a 404 is returned.
This endpoint is useful when you need to check whether a route is already protected before calling Register Permission, or to retrieve the idPermission for use in Assign Permission.
Authentication
Requires a valid JWT in theAuthorization header. No specific role permission is needed.
Request
Method:GET
Path: /api/v1/permission/getByNameUri
Headers
Bearer token obtained from the login endpoint. Format:
Bearer <token>Query Parameters
The route pattern to look up. Must be between 2 and 100 characters. URL-encode any spaces as
%20 or +. Example: GET%20/api/v1/users.Response
200 OK
Returns the matching permission records as an array.Always
true for successful responses.Human-readable status message. Value:
"Permiso obtenido por nombre.".Array of permission objects whose
nameUri matches the query (case-insensitive). Typically contains one element.Example Response
Error Responses
| Status | Description |
|---|---|
400 Bad Request | nameUri is missing or fails the 2–100 character length constraint. |
401 Unauthorized | Missing or invalid JWT token. |
404 Not Found | No permission with the given nameUri exists in the system. |
404 Not Found
Code Example
cURL — URL-encoded nameUri
cURL — Using shell quoting
Socket.IO Events
This is a read-only endpoint. Adata:changed broadcast is not emitted. The requesting client receives operation:progress events for the permissions:fetchByUri operation on their own socket only.
| Event | Target | Operation | Status sequence |
|---|---|---|---|
operation:progress | Requesting socket | permissions:fetchByUri | start → success |