Skip to main content
DataRaven uses a layered permissions model. Every request is authorized by checking two things:
  1. User Role — hierarchical team membership role (JWT sessions)
  2. API Key Scope — granular scope string (API key authentication)
A request succeeds when the caller meets at least the minimum role shown below, or presents an API key that includes the listed scope.
Some actions are JWT-only — they cannot be performed with an API key. These are marked with a in the API Key Scope column.

Role Hierarchy

Roles are hierarchical — higher roles inherit all permissions of lower roles.
LevelRoleDescription
4OwnerFull control including team deletion and ownership transfer
3AdminAll operations except team deletion
2OperatorDay-to-day operations — run tasks, verify connections
1ViewerRead-only access across all resources

Locations

ActionMethodMin. RoleAPI Key Scope
Get provider defaultsGETViewerlocations:read
Create locationPOSTAdminlocations:create
List locationsGETViewerlocations:read
Get location detailsGETViewerlocations:read
Update locationPATCHAdminlocations:update
Verify locationPOSTOperatorlocations:verify
Delete locationDELETEAdminlocations:delete

Secrets

ActionMethodMin. RoleAPI Key Scope
Create secretPOSTAdminsecrets:create
List secretsGETViewersecrets:read
Get secret detailsGETViewersecrets:read
Update secretPATCHAdminsecrets:update
Delete secretDELETEAdminsecrets:delete

Tasks

ActionMethodMin. RoleAPI Key Scope
Create taskPOSTOperatortasks:create
List tasksGETViewertasks:read
Get task detailsGETViewertasks:read
Update taskPATCHOperatortasks:update
Disable taskPOSTOperatortasks:update
Enable taskPOSTOperatortasks:update
Archive taskPOSTOperatortasks:update
Delete taskDELETEAdmintasks:delete

Executions

ActionMethodMin. RoleAPI Key Scope
Submit executionPOSTOperatortasks:execute
Submit dry runPOSTOperatortasks:execute
List executionsGETViewertasks:read
Get execution detailsGETViewertasks:read
Stop executionPOSTOperatortasks:execute
Download logsGETViewertasks:read
Stream logs (SSE)GETViewertasks:read

Vault Connections

ActionMethodMin. RoleAPI Key Scope
Create vault connectionPOSTAdminvault_connections:create
List vault connectionsGETViewervault_connections:read
Get vault connection detailsGETViewervault_connections:read
Test vault connectionPOSTOperatorvault_connections:test
Update vault connectionPATCHAdminvault_connections:update
Rotate vault tokenPOSTAdminvault_connections:rotate
Delete vault connectionDELETEAdminvault_connections:delete

Notifications

ActionMethodMin. RoleAPI Key Scope
Create notificationPOSTAdminnotifications:create
List notificationsGETViewernotifications:read
Get notification detailsGETViewernotifications:read
Update notificationPATCHAdminnotifications:update
Delete notificationDELETEAdminnotifications:delete
Test notificationPOSTOperatornotifications:test

Audit Logs

ActionMethodMin. RoleAPI Key Scope
List audit logsGETVieweraudit_logs:read

Teams

ActionMethodMin. RoleAPI Key Scope
List my teamsGET
Get team detailsGETViewerteams:read
Create teamPOST
Update teamPATCHAdmin
Delete teamDELETEOwner
Update member rolePATCHAdmin
Remove team memberDELETEAdmin
Team management actions (create, update, delete, member management) are JWT-only. API keys cannot create or modify teams.

Invitations

ActionMethodMin. RoleAPI Key Scope
List team invitationsGETAdmin
Create invitationPOSTAdmin
Revoke invitationDELETEAdmin
Resend invitationPOSTAdmin
Get my invitationsGET
Accept invitationPOST
Decline invitationPOST
All invitation actions are JWT-only. User-scoped endpoints (get/accept/decline) require only a valid session — no team role is needed.

API Keys

ActionMethodMin. RoleAPI Key Scope
Create API keyPOSTAdmin
List API keysGETViewer
Get API key detailsGETViewer
Revoke API keyPOSTAdmin
Rotate API keyPOSTAdmin
Delete API keyDELETEAdmin
API key management is JWT-only. You cannot use an API key to create, revoke, or rotate other API keys.

Subscriptions & Billing

ActionMethodMin. RoleAPI Key Scope
Get subscriptionGETViewer
Verify subscriptionPOSTViewer
Billing portalPOSTAdmin
Upgrade (checkout)POSTAdmin

Usage

ActionMethodMin. RoleAPI Key Scope
Get team usageGETViewerusage:read

Scope Reference

API key scopes follow the resource:action pattern. Here is the full list of available scopes:
ScopeDescription
audit_logs:readList and view audit logs
locations:createCreate new locations
locations:deleteDelete locations
locations:readList and view locations
locations:updateUpdate location properties
locations:verifyTest location connectivity
notifications:createCreate notification configurations
notifications:deleteDelete notification configurations
notifications:readList and view notifications
notifications:testSend test notifications
notifications:updateUpdate notification configurations
secrets:createCreate new secrets
secrets:deleteDelete secrets
secrets:readList and view secret metadata
secrets:updateUpdate secrets and rotate credentials
tasks:createCreate new tasks
tasks:deletePermanently delete tasks
tasks:executeSubmit, stop, and dry-run executions
tasks:readList and view tasks and executions
tasks:updateUpdate, enable, disable, and archive tasks
teams:readView team details
usage:readView team usage analytics
vault_connections:createCreate vault connections
vault_connections:deleteDelete vault connections
vault_connections:readList and view vault connections
vault_connections:rotateRotate vault access tokens
vault_connections:testTest vault connectivity
vault_connections:updateUpdate vault connection properties