API documentation for LegalOn services
LegalOn API (1.1.0)
Maximum number of user groups to retrieve. For the maximum number of user groups that can be specified in LegalOn, see the LegalOn Help article.
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/user-groups
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X GET \
'https://{api_base_url_without_scheme}/rest/v1/user-groups?limit_size=1&search_query=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "user-groups": [ { … } ] }
User group creation request
User group name. Both full-width and half-width characters count as one character. A user group cannot be created with a duplicate user group name.
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/user-groups
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X POST \
'https://{api_base_url_without_scheme}/rest/v1/user-groups' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"display_name": "string",
"description": "string"
}'{ "user_group_id": "76088fa5-1ce5-3ca9-303a-8466c48581ba", "display_name": "Legal Department", "description": "Contract Review Members", "member_size": 2 }
User group update request
User group name. Both full-width and half-width characters count as one character.
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/user-groups/{user_group_id}
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X PATCH \
'https://{api_base_url_without_scheme}/rest/v1/user-groups/{user_group_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"display_name": "string",
"description": "string"
}'{ "user_group_id": "76088fa5-1ce5-3ca9-303a-8466c48581ba", "display_name": "Legal Department", "description": "Contract Review Members", "member_size": 2 }
Workspaces
Workspaces/folders are the common units used to store and organize resources such as contracts. This endpoint returns the workspaces/folders the calling user has access to, as a tree. For operations that target a workspace (e.g., the Contract API), specify the workspace_id obtained here. To manage workspaces across the tenant (creation, permissions, etc.), see the admin workspace operations (/spaces).