Public Documentation

Lawie Docs

Versionsv0.1.0

LAWIE-PUBLIC-APIv0.1.0

Endpoints

Supported public platform operations generated from the reviewed @lawie/contracts surface.

Authentication

Operations marked Authenticated require a tenant-authorized bearer credential in the Authorization header. Public login and registration operations do not.

Learn how to generate an API keyUse the credential-management surface enabled for your organization.

POST /auth/login

User login

Public
curl -H "Content-Type: application/json" -X POST https://api.sandbox.lawielabs.com/auth/login -d '{
  "email": "<string>",
  "password": "<string>"
}'
Parameters
  • bodybody
Responses
  • 200Login success
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

POST /auth/register

User registration

Public
curl -H "Content-Type: application/json" -X POST https://api.sandbox.lawielabs.com/auth/register -d '{
  "email": "<string>",
  "password": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "workspaceType": "<string>",
  "workspaceName": "<string>",
  "workspaceRegion": "<string>",
  "workspaceJurisdiction": "<string>",
  "workspaceRole": "<string>",
  "termsAccepted": "<boolean>",
  "privacyAccepted": "<boolean>",
  "termsVersion": "<string>",
  "privacyVersion": "<string>",
  "cookieVersion": "<string>",
  "mfaToken": "<string>"
}'
Parameters
  • bodybody
Responses
  • 200Register success
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /auth/session

Verify token and return session

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/auth/session
Parameters

No parameters.

Responses
  • 200Session
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /tenants

List tenants

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/tenants
Parameters

No parameters.

Responses
  • 200Tenants
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

POST /tenants

Create tenant

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X POST https://api.sandbox.lawielabs.com/tenants -d '{
  "name": "<string>",
  "slug": "<string>"
}'
Parameters
  • bodybody
Responses
  • 201Created tenant
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

PATCH /tenants/{tenantId}

Update tenant

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X PATCH https://api.sandbox.lawielabs.com/tenants/{tenantId} -d '{
  "name": "<string>",
  "slug": "<string>"
}'
Parameters
  • tenantIdpath
  • bodybody
Responses
  • 200Updated tenant
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /tenants/{tenantId}

Get tenant by ID

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/tenants/{tenantId}
Parameters
  • tenantIdpath
Responses
  • 200Tenant
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /users

List users

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/users
Parameters

No parameters.

Responses
  • 200Users
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /users/me

Current user

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/users/me
Parameters

No parameters.

Responses
  • 200Current user
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

PATCH /users/{userId}

Update user

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X PATCH https://api.sandbox.lawielabs.com/users/{userId} -d '{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>"
}'
Parameters
  • userIdpath
  • bodybody
Responses
  • 200Updated user
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

POST /users/{userId}/roles

Assign role to user

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X POST https://api.sandbox.lawielabs.com/users/{userId}/roles -d '{
  "userId": "<string>",
  "tenantId": "<string>",
  "role": "<string>"
}'
Parameters
  • userIdpath
  • bodybody
Responses
  • 200Membership updated
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

GET /documents

List documents

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X GET https://api.sandbox.lawielabs.com/documents
Parameters
  • statusquery
  • createdByquery
Responses
  • 200Documents
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

POST /documents

Create document

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X POST https://api.sandbox.lawielabs.com/documents -d '{
  "name": "<string>",
  "size": "<integer>",
  "mimeType": "<string>"
}'
Parameters
  • bodybody
Responses
  • 201Created document
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

PATCH /documents/{documentId}

Update document

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X PATCH https://api.sandbox.lawielabs.com/documents/{documentId} -d '{
  "name": "<string>",
  "status": "<string>"
}'
Parameters
  • documentIdpath
  • bodybody
Responses
  • 200Updated document
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.

DELETE /documents/{documentId}

Delete document

Authenticated
curl -H "Authorization: Bearer $LAWIE_API_KEY" -H "Content-Type: application/json" -X DELETE https://api.sandbox.lawielabs.com/documents/{documentId}
Parameters
  • documentIdpath
Responses
  • 204Deleted document
Try it

Replace each path placeholder before sending a live request. Query parameters are configured from the documented operation, not entered here.