Directory grants are the permission records that control access to a directory. Each grant assigns a single permission level to a principal — an organization, user, or API key. When a request arrives, Orbit checks whether the caller’s principal matches any grant on the requested directory. You use the endpoints below to inspect and modify the grant list for any directory your credentials can manage.Documentation Index
Fetch the complete documentation index at: https://docs.orbitsearch.com/llms.txt
Use this file to discover all available pages before exploring further.
Organization admins have implicit access to all directories within their organization and do not require explicit grants.For developer API key directory search, the key must be an organization API key (not a personal key) and must match an
organization or api_key grant with search or manage permission on the target directory. Personal API keys are always rejected for directory search.Permissions
search
search
Allows the principal to run directory-scoped search queries against this directory. This is the minimum permission required for an organization API key to search the directory.
upload
upload
Allows the principal to upload source data into this directory, including CSV files and connection imports.
manage
manage
Full administrative control. A principal with
manage permission can update directory metadata, manage sources, create and delete grants, and run searches. Grants search and upload capabilities as well.Grant principals
| Principal type | What it grants access to |
|---|---|
organization | All users and API keys across the entire organization. |
user | One specific organization member. |
api_key | One specific organization API key. |
List grants
GET /v2/organizations/:organizationId/directories/:directoryId/grants
Returns all grants currently assigned to the specified directory.
Path parameters
The UUID of the owning organization.
The UUID of the directory whose grants you want to list.
Create a grant
POST /v2/organizations/:organizationId/directories/:directoryId/grants
Assigns a permission to a principal on the specified directory. If the principal already has a grant on this directory, the existing grant is updated.
Path parameters
The UUID of the owning organization.
The UUID of the directory to grant access on.
Request body
The type of principal receiving the grant. One of
organization, user, or api_key.The UUID of the principal — the organization ID, user ID, or API key ID depending on
principal_type.The permission to assign. One of
search, upload, or manage.Delete a grant
DELETE /v2/organizations/:organizationId/directories/:directoryId/grants/:grantId
Removes a grant from a directory. The principal immediately loses the associated permission.
Path parameters
The UUID of the owning organization.
The UUID of the directory.
The UUID of the grant to delete.