DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. Docs
  • Overview
  • Getting Started
  • Authentication
  • Permissions
  • API Reference
    • locations
      • List locations
      • Create a location
      • Get a location
      • Update a location by UUID
      • Delete a location
    • users
      • List users
      • Create a new user
      • Get a user
      • Delete a user
    • groups
      • List groups
      • Create a new group
      • Get a group
      • Update a group
      • Delete a group
    • assets
      • List assets
      • Get single asset
    • products
      • List products
  1. Docs

Permissions

Marvia API uses permission-scoped API keys to securely control access to its features. Each API key can be assigned specific permissions for different entities (e.g., Locations, Users, Groups). These permissions determine which actions are allowed when using the key.

Why Permissions Matter#

Having granular permissions helps to:
Enforce the principle of least privilege
Protect sensitive operations like user management
Limit the damage if an API key is ever exposed
If an API request is made without the required permission, it will be denied with a clear error response. For example:
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing permission: read:locations"
  }
}

Permission Format#

Each permission follows the format: <action>:<entity>
Examples:
read:locations → Read Locations (List or Get details)
create:users → Create Users
update:groups → Update Groups
delete:locations → Delete Locations
API endpoints map to permissions based on their HTTP method:
HTTP MethodActionRequired Permission
GETRead dataread:<entity>
POSTCreate datacreate:<entity>
PUT/PATCHUpdate dataupdate:<entity>
DELETEDelete datadelete:<entity>

Example: List Locations#

Required Permission: read:locations

Editing Permissions#

To modify permissions for an existing key:
1.
Go to Settings → Connections → Marvia API
2.
Locate the relevant API key
3.
Click Edit
API Keys
4.
Add or remove permissions as needed
API Keys
5.
Save changes
6.
View permissions applied to confirm (optional)
API Keys
Modified at 2025-07-14 13:19:25
Previous
Authentication
Next
List locations
Built with