Get Permissions
Access Control
Get Permissions
POST
Get Permissions
Use this API to get a user’s permissions for various resources like organizations, folders, documents, etc.Documentation Index
Fetch the complete documentation index at: https://velt-v5-0-2-beta-28.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Returns permissions per user and resource. Temporary permissions include an
expiresAt(Unix seconds) value. - See the Access Control overview for concepts and detailed guidance.
Endpoint
POST https://api.velt.dev/v2/auth/permissions/get
Headers
Your API key.
Your Auth Token.
Body
Example Request
- JSON
- cURL
Response
Error responses include an
errorCode field with structured error codes from the UserPermissionAccessRoleResult enum. This helps you handle permission resolution failures programmatically.Response Schema
The response returns a nested structure with permissions per user and resource type. Each resource permission can include:| Field | Type | Description |
|---|---|---|
accessRole | string | The user’s access role ("editor" or "viewer") |
accessType | string | The effective access type for the resource: "public", "restricted", or "organizationPrivate". Documents inside folders inherit the folder’s accessType. Also present on PERMISSION_DENIED entries. |
expiresAt | number | Unix timestamp (seconds) when temporary access expires |
error | string | Human-readable error message if permission resolution failed |
errorCode | string | Error code from UserPermissionAccessRoleResult enum (v4.5.4+) |
Success Response
Success Response with Context Access Info
When using Access Context for feature-level permissions, the response includes acontext object with accessFields showing which context values the user has access to:
accessFields array contains strings in the format "fieldName:value" representing each context field and value combination the user has access to.
Permission Denied
Error Response Examples
When a resource does not exist, is denied, or encounters an error, the response includes both anerror message and an errorCode:
Resource Not Found:

