Envistudios API Documentation (2.0)
Download OpenAPI specification:Download
The Envistudios API is a RESTful service that allows developers to interact with the Envistudios platform programmatically. It provides endpoints for user authentication, token management, health checks, and various other functionalities related to user management, boards, documents, reports, and more.
The API is designed to be secure, scalable, and easy to use. It follows RESTful principles and uses JSON for data exchange.
Learn more about Envistudios.
The Envistudios API uses Bearer Token authentication for securing endpoints. To authenticate, you need to include the Authorization
header in your requests with the value Bearer <token>
, where <token>
is the access token obtained from the /login
or /refresh-token
endpoints.
Steps to Authenticate:
- Login: Use the
/login
endpoint to obtain an access token and refresh token. - Refresh Token: Use the
/refresh-token
endpoint to refresh your access token when it expires. - Include Token: Include the access token in the
Authorization
header for all subsequent requests.
Note: Some endpoints may require specific roles or permissions to access.
The Envistudios API follows RESTful principles and uses standard HTTP methods (GET, POST, PUT, PATCH, DELETE) to perform operations on resources. Below are the key standards:
- Base URL: All API requests should be made to the base URL
https://api.envistudios.com/v1
. - Content-Type: The API uses
application/json
for both request and response bodies. - Authentication: Use Bearer Token authentication for all secured endpoints.
- Error Handling: The API returns standard HTTP status codes to indicate success or failure. In case of errors, a detailed error message is returned in the response body.
- Pagination: For endpoints that return lists of resources, pagination is supported using
limit
andpage
query parameters.
The User Service handles user-related operations such as authentication, profile management, and password recovery.
The Documente Service manages document-related operations such as document upload, retrieval, and processing. It provides endpoints for handling documents, including text extraction, document tagging, and document search.
The Infomente Service provides intelligent data processing and analytics capabilities. It includes endpoints for text-to-SQL conversion, data visualization, and generating insights from structured and unstructured data.
Check Service Health
This endpoint is used to verify the operational status of the service. It returns a simple success status indicating the health of the API.
Use Case:
- Monitor system uptime for automated health checks.
- Ensure the service is running properly.
Authorizations:
Responses
Response samples
- 200
{- "success": true
}
Refresh User Token
This endpoint allows the client to refresh the user's authentication token. A valid refresh token must be provided, and upon success, new access and refresh tokens are issued.
Use Case:
- Maintain user sessions without requiring re-login.
- Extend the lifecycle of user sessions securely.
Authorizations:
Responses
Response samples
- 200
{- "data": {
- "user_id": 0,
- "access_token": "string",
- "refresh_token": "string",
- "role": "string",
- "is_active": true
}, - "message": "string",
- "status": 0
}
Retrieve User Details
This endpoint retrieves detailed information about a user based on their session or authentication token. Developers can use this to fetch profile data, including the user's role, email, and security group.
Use Case:
- Fetch user details to personalize dashboard experiences.
- Retrieve user information for display in profile settings.
- Validate user role and permissions for feature access.
Authorizations:
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "role": "string",
- "email": "string",
- "username": "string",
- "security_group": 0
}, - "message": "User detail",
- "status": 0
}
Update User Details
This endpoint allows partial updates to user information. Developers can update specific user attributes (e.g., name, role, email) without overwriting the entire user profile. A JsonPatch
payload must be provided to specify the changes.
Use Case:
- Update user profile information (e.g., name change or email update).
- Modify user role or security group for role-based access control.
- Enable user self-service to edit their account details.
Authorizations:
Request Body schema: application/json
first_name | string |
last_name | string |
user_name | string |
Responses
Request samples
- Payload
{- "first_name": "string",
- "last_name": "string",
- "user_name": "string"
}
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "role": "string",
- "email": "string",
- "username": "string",
- "security_group": 0
}, - "message": "User details updated"
}
User login
Authenticates a user and returns an access token, refresh token, and user details.
Authorizations:
Request Body schema: application/json
email required | string <email> |
password required | string |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "password": "string"
}
Change Password API
Allows users to change their password by providing the old and new password.
Authorizations:
Request Body schema: application/json
current_password required | string |
new_password required | string |
Responses
Request samples
- Payload
{- "current_password": "string",
- "new_password": "string"
}
Add user in the org
This endpoint allows an admin to add a new user to the organization. Only admins can add users.
Authorizations:
Request Body schema: application/json
string <email> | |
first_name | string |
last_name | string |
role | string |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "role": "string"
}
Response samples
- 200
- 400
- 403
{- "data": {
- "id": 0,
- "security_group": 0,
- "email": "user@example.com"
}, - "message": "New user created",
- "status": 0
}
Get user ID from access token
This endpoint retrieves user information by verifying the provided access token. The response includes the user's ID, role, and other attributes.
Authorizations:
Responses
Response samples
- 200
{- "data": {
- "user_id": 0,
- "role": "string",
- "is_active": true,
- "is_guest": true,
- "security_group": 0,
- "llm_model": "string"
}, - "message": "string",
- "status": 0
}
Google Authentication API
Authenticate users via Google OAuth. Returns an access and refresh token upon success.
Authorizations:
Request Body schema: application/json
access_token required | string |
Responses
Request samples
- Payload
{- "access_token": "string"
}
Response samples
- 200
- 404
{- "data": {
- "access_token": "string",
- "refresh_token": "string",
- "user_id": 0,
- "role": "string"
}, - "message": "User logged in successfully",
- "status": 0
}
upload google drive doc
Authorizations:
path Parameters
board_id required | integer |
Request Body schema: application/json
file_ids | Array of strings |
Responses
Request samples
- Payload
{- "file_ids": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
{- "data": [
- {
- "id": 0
}
], - "message": "string",
- "status": 0
}
Retrieve security group and activity data for a user
This endpoint retrieves the security group and its associated activity data, including usage statistics like users, boards, documents, reports, and more.
Authorizations:
Responses
Response samples
- 200
{- "data": {
- "group": "string",
- "logo": "string",
- "plan": 0,
- "started_at": "2019-08-24",
- "expire_at": "2019-08-24",
- "gpt-model": "string",
- "rephrase_question": true,
- "max_users": 0,
- "max_board": 0,
- "max_document": 0,
- "max_questions": 0,
- "max_reports": 0,
- "max_scraping": 0,
- "max_dashboard": 0,
- "max_product_widget": 0,
- "users": 0,
- "board": 0,
- "document": 0,
- "query": 0,
- "dashboard": 0,
- "reports": 0,
- "scraping": 0,
- "product_widget": 0,
- "total_users": 0,
- "total_boards": 0,
- "total_documents": 0,
- "total_queries": 0,
- "total_reports": 0,
- "total_scraping": 0,
- "total_dashboard": 0,
- "is_using_custom_cloud_storage": true
}, - "message": "security grp data",
- "status": 0
}
Get all users
This endpoint retrieves a list of all users in the system. Filters can be applied to search by keyword, active status, and pagination options.
Authorizations:
query Parameters
keyword | string Filter users by keyword (name, email, or username) |
is_active | string Enum: "true" "false" Filter users by active status |
limit | integer Default: 10 Number of users per page |
page | integer Default: 1 Page number for pagination |
Responses
Response samples
- 200
{- "data": [
- {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "name": "string",
- "user_name": "string",
- "email": "user@example.com",
- "is_active": true,
- "role": "string",
- "document": 0,
- "query": 0,
- "board": 0,
- "dashboard": 0,
- "total_document": 0,
- "total_query": 0,
- "total_board": 0,
- "total_dashboard": 0
}
], - "message": "Users fetched successfully",
- "status": 0
}
Update user's active/blocked state
This endpoint allows an admin to update the active or blocked state of a user. Only admins can perform this action.
Authorizations:
path Parameters
user_id required | integer <int64> The ID of the user to update |
Request Body schema: application/json
string <email> | |
role | string |
first_name | string |
last_name | string |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "role": "string",
- "first_name": "string",
- "last_name": "string"
}
Response samples
- 200
- 400
- 403
{- "data": { },
- "message": "User updated successfully",
- "status": 0
}
Retrieve all supported LLM models
This endpoint returns a list of all supported LLM (Large Language Models) along with their capabilities, such as support for text, image, and video processing.
Authorizations:
Responses
Response samples
- 200
{- "data": [
- {
- "name": "string",
- "title": "string",
- "description": "string",
- "is_text_supported": true,
- "is_image_supported": true,
- "is_video_supported": true
}
], - "message": "string",
- "status": 0
}
Retrieve all boards for the user
This endpoint retrieves all boards associated with the authenticated user. Boards are linked to the user's workspace and can represent projects or categories.
Use Case:
- Display a list of all user boards on a dashboard.
- Fetch all user boards for navigation and management.
Authorizations:
Responses
Response samples
- 200
- 500
{- "data": [
- {
- "id": 0,
- "user_id": 0,
- "workspace_name": "string",
- "name": "string",
- "feature_name": "string",
- "context": "string",
- "created_at": "2019-08-24",
- "board_type": "string",
- "agent_id": 0
}
], - "message": "List of boards retrieved",
- "status": 0
}
Create a new board
Creates a new board for the authenticated user within a workspace.
Use Case:
- Users can create boards to manage tasks, projects, or organize resources.
Authorizations:
Request Body schema: application/json
workspace_id | integer |
name | string |
context | string |
feature_id | integer |
board_type | string Default: "APP" Enum: "PLUGIN" "APP" |
agent_id | integer |
Responses
Request samples
- Payload
{- "workspace_id": 0,
- "name": "string",
- "context": "string",
- "feature_id": 0,
- "board_type": "PLUGIN",
- "agent_id": 0
}
Response samples
- 200
{- "data": {
- "id": 0,
- "user_id": 0,
- "workspace_id": 0,
- "name": "string",
- "feature_id": 0,
- "context": "string",
- "board_type": "string",
- "agent_id": 0
}, - "message": "Board created",
- "status": 0
}
Update an existing board
Updates the details of a specific user board. The user can modify the name, context, or associated features.
Use Case:
- Update the name or context of a board after creation.
Authorizations:
Request Body schema: application/json
board_id | integer |
name | string |
context | string |
Responses
Request samples
- Payload
{- "board_id": 0,
- "name": "string",
- "context": "string"
}
Retrieve all messages from a conversation
This endpoint fetches all messages from a specific conversation within a board.
Use Case:
- View conversation history to track past interactions and messages.
- Display chat logs or messages for collaboration.
Authorizations:
path Parameters
board_id required | string ID of the board |
conversation_id required | string ID of the conversation |
Responses
Response samples
- 200
{- "data": [
- {
- "id": 0,
- "conversation_id": "string",
- "message": "string",
- "sender": "string",
- "response": "string",
- "context": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "file_ids": [
- 0
], - "rephrasing": true,
- "type": "string"
}
], - "message": "List of messages retrieved",
- "status": 0
}
Create a new message in a conversation
Allows users to create and send a message in an existing board conversation.
Use Case:
- Users can collaborate by adding messages to board-related conversations.
- Ideal for tracking project communication and collaboration.
Authorizations:
path Parameters
board_id required | integer ID of the board |
Request Body schema: application/json
conversation_id | string |
title | string |
message | string |
document_ids | Array of integers |
Responses
Request samples
- Payload
{- "conversation_id": "string",
- "title": "string",
- "message": "string",
- "document_ids": [
- 0
]
}
Retrieve all conversations for a board
Fetches all conversations linked to a specific board.
Use Case:
- Retrieve all board conversations for project tracking and collaboration.
- Display active conversations in board management interfaces.
Authorizations:
path Parameters
board_id required | string ID of the board |
Responses
Response samples
- 200
{- "data": [
- {
- "id": 0,
- "board_id": 0,
- "title": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "message": "List of conversations retrieved",
- "status": 0
}
Get user IDs with access to a board
Retrieves the user IDs with access to the specified board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
Responses
Response samples
- 200
{- "data": [
- {
- "user_id": 0,
- "email": "user@example.com"
}
], - "message": "Emails fetched successfully",
- "status": 0
}
Share a board with users
Shares the specified board with the provided user IDs.
Authorizations:
path Parameters
board_id required | integer ID of the board |
Request Body schema: application/json
JSON object containing 'user_ids'
user_ids | Array of integers |
Responses
Request samples
- Payload
{- "user_ids": [
- 0
]
}
Response samples
- 200
- 404
- 500
{- "data": {
- "id": 0,
- "board_id": 0,
- "role": "string"
}, - "message": "Board shared",
- "status": 0
}
Revoke access to a board for users
Revokes access to the specified board for the provided user IDs.
Authorizations:
path Parameters
board_id required | integer ID of the board |
query Parameters
user_ids required | string Comma-separated list of user IDs |
Responses
Response samples
- 200
- 404
- 500
{- "data": {
- "user_id": [
- 0
]
}, - "message": "Access revoked successfully",
- "status": 0
}
Retrieve widget data
Retrieves widget data based on the specified user, board, and conversation message.
Authorizations:
path Parameters
user_id required | integer ID of the user |
board_id required | integer ID of the board |
message_id required | string ID of the conversation message |
Responses
Response samples
- 200
- 404
{- "data": {
- "conversation_id": "string",
- "message": "string",
- "response": "string",
- "meta_data": { }
}, - "message": "Widget data retrieved successfully",
- "status": 0
}
Update message object
Updates a message object associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
message_id required | string ID of the message |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "conversation_id": "string",
- "message": "string",
- "sender": "string",
- "context": "string",
- "created_at": "2019-08-24",
- "response": "string",
- "meta_data": { },
- "file_ids": [
- 0
]
}, - "message": "Message object updated successfully",
- "status": 0
}
Fetch question and answer data for a report
Fetches question and answer data for a report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
query Parameters
execution_id | integer ID of the execution (optional) |
Responses
Response samples
- 200
- 404
{- "data": {
- "question_id": 0,
- "answer": "string",
- "question_text": "string",
- "document_ids": [
- 0
]
}, - "message": "Successfully fetched question and answer data.",
- "status": 0
}
Get a specific report
Fetches details of a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Responses
Response samples
- 200
- 404
- 500
{- "data": {
- "board_id": 0,
- "report_name": "string",
- "documents": [
- 0
], - "report_id": 0,
- "report_type": "string",
- "description": "string",
- "report_created_at": "2019-08-24T14:15:22Z"
}, - "message": "Report data fetched successfully",
- "status": 0
}
Delete a specific report
Deletes a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Responses
Response samples
- 200
- 400
- 404
{- "data": {
- "number_of_execution": 0,
- "number_of_question": 0
}, - "message": "Report deleted successfully",
- "status": 0
}
Update a specific report
Updates details of a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Request Body schema: application/json
JSON object containing updated report details
object (boardboard_idreportreport_id_data) |
Responses
Request samples
- Payload
{- "data": {
- "report_name": "string",
- "report_type": "string",
- "description": "string",
- "document_ids": [
- 0
]
}
}
Response samples
- 200
- 400
- 404
{- "data": {
- "report_id": 0,
- "board_id": 0,
- "name": "string",
- "documents": [
- 0
], - "type": "string",
- "description": "string",
- "created_at": "2019-08-24"
}, - "message": "Report Updated",
- "status": 0
}
Get all reports for a board
Fetches all reports associated with a specific board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "board_id": 0,
- "report_name": "string",
- "documents": [
- 0
], - "report_id": 0,
- "report_type": "string",
- "description": "string",
- "report_created_at": "2019-08-24"
}
], - "message": "All reports fetched successfully",
- "status": 0
}
Create a new report for a board
Creates a new report associated with a specific board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
Request Body schema: application/json
JSON object containing report details
name | string |
documents | Array of integers |
report_type | string Default: "comprehensive" Enum: "per_doc" "comprehensive" |
description | string |
questions | Array of strings |
Responses
Request samples
- Payload
{- "name": "string",
- "documents": [
- 0
], - "report_type": "per_doc",
- "description": "string",
- "questions": [
- "string"
]
}
Response samples
- 200
- 404
{- "data": {
- "report_name": "string",
- "report_type": "string",
- "description": "string",
- "document_ids": [
- 0
]
}, - "message": "Report created successfully",
- "status": 0
}
Fetch questions for a report
Fetches questions for a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "board_id": 0,
- "report_id": 0,
- "question_id": 0,
- "question": "string"
}
], - "message": "fetched all the questions for report",
- "status": 0
}
Create questions for a report
Creates new questions for a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Request Body schema: application/json
JSON object containing 'questions'
questions | Array of strings |
Responses
Request samples
- Payload
{- "questions": [
- "string"
]
}
Response samples
- 200
- 404
{- "data": [
- null
], - "message": "Question Stored",
- "status": 0
}
Update questions for a report
Updates questions for a specific report associated with a board.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Request Body schema: application/json
JSON object containing 'remove_question' and 'add_question'
remove_question | Array of integers |
add_question | Array of strings |
Responses
Request samples
- Payload
{- "remove_question": [
- 0
], - "add_question": [
- "string"
]
}
Response samples
- 200
- 404
{- "data": {
- "remove_question": [
- 0
], - "add_question": [
- "string"
]
}, - "message": "Questions updated successfully",
- "status": 0
}
Initiate execution of a report
Initiates the execution of a report and returns the execution ID.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
Responses
Response samples
- 200
- 403
- 404
{- "data": {
- "execute_id": 0
}, - "message": "Creating Report",
- "status": 0
}
Retrieve execution history of a report
Retrieves the execution history of a report.
Authorizations:
path Parameters
board_id required | integer ID of the board |
report_id required | integer ID of the report |
query Parameters
limit | integer Number of items per page |
page | integer Page number |
execution_id | integer ID of the execution |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "execution_id": 0,
- "status": "string",
- "created_at": "2019-08-24",
- "document_ids": [
- 0
]
}
], - "message": "Fetched all report excutions",
- "status": 0
}
get action list
get action list
Authorizations:
path Parameters
board_id required | integer board id |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "id": 0,
- "name": "string",
- "board_id": 0,
- "llm_model": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}
], - "message": "string",
- "status": 0
}
create action
create action
Authorizations:
path Parameters
board_id required | integer board_id |
Request Body schema: application/json
request body
name | string |
prompt | string |
icon | string |
suggest_title | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}
Response samples
- 200
- 400
{- "data": {
- "id": 0,
- "name": "string",
- "board_id": 0,
- "llm_model": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}, - "message": "string",
- "status": 0
}
action details
action details
Authorizations:
path Parameters
board_id required | integer board_id |
action_id required | integer action_id |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "name": "string",
- "board_id": 0,
- "llm_model": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}, - "message": "string",
- "status": 0
}
update action
update action
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
Request Body schema: application/json
name | string |
prompt | string |
icon | string |
suggest_title | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "name": "string",
- "board_id": 0,
- "llm_model": "string",
- "prompt": "string",
- "icon": "string",
- "suggest_title": true
}, - "message": "action updated",
- "status": 0
}
get action's arguments
get action's arguments
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
Request Body schema: application/json
document_ids | Array of any |
user_query | string |
Responses
Request samples
- Payload
{- "document_ids": [
- null
], - "user_query": "string"
}
Response samples
- 200
- 400
- 404
{- "data": [
- { }
], - "message": "string",
- "status": 0
}
get action's arguments
get action's arguments
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "action_id": 0,
- "input": { },
- "output": [
- { }
], - "run_at": "2019-08-24",
- "board_id": 0,
- "action": { }
}, - "message": "string",
- "status": 0
}
get action's arguments
get action's arguments
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "name": "string",
- "description": "string",
- "id": 0,
- "generate_colour": true
}
], - "message": "string",
- "status": 0
}
creat action's arguments
creat action's arguments
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
Request Body schema: application/json
attributes | Array of any |
Responses
Request samples
- Payload
{- "attributes": [
- null
]
}
Response samples
- 201
- 400
- 404
{- "data": [
- {
- "id": 0,
- "name": "string",
- "data_type": "string",
- "arg_type": "string",
- "action_id": "string",
- "question": "string",
- "description": "string",
- "argument_id": 0,
- "parent_argument": { },
- "sequence_id": 0
}
], - "message": "string",
- "status": 0
}
update action's arguments
update action's arguments
Authorizations:
path Parameters
board_id required | integer |
action_id required | integer |
argument_id required | integer |
Request Body schema: application/json
name | string |
description | string |
generate_colour | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "generate_colour": true
}
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "name": "string",
- "data_type": "string",
- "arg_type": "string",
- "action_id": "string",
- "question": "string",
- "description": "string",
- "argument_id": 0,
- "parent_argument": { },
- "sequence_id": 0
}, - "message": "argument updated",
- "status": 0
}
Add text content in board
Authorizations:
path Parameters
board_id required | integer |
Request Body schema: application/json
title | string |
content | string |
Responses
Request samples
- Payload
{- "title": "string",
- "content": "string"
}
Response samples
- 200
- 403
- 404
{- "data": {
- "id": 0
}, - "message": "Content saved successfully",
- "status": 0
}
API for returning question for the select document
Authorizations:
path Parameters
board_id required | integer |
Request Body schema: application/json
documents | Array of integers |
Responses
Request samples
- Payload
{- "documents": [
- 0
]
}
Response samples
- 200
- 404
{- "data": [
- "string"
], - "message": "list of all the questions for the given document",
- "status": 0
}
API for sending text content
Authorizations:
path Parameters
board_id required | integer |
Request Body schema: application/json
tags | Array of strings <csv> |
Responses
Request samples
- Payload
{- "tags": [
- "string"
]
}
Response samples
- 200
- 404
{- "data": [
- {
- "id": 1,
- "status": "Approved",
- "board_id": 123,
- "file": "document.pdf",
- "created_at": "2024-06-17T12:00:00Z",
- "type": "application/pdf",
- "title": "Project Plan",
- "description": "A detailed project plan document",
- "tags": [
- "project",
- "planning",
- "important"
], - "questions": [
- "What is the timeline?",
- "Who are the stakeholders?"
], - "is_group": false,
- "size": 2048
}
], - "message": "List of documents related to the tags {tags}",
- "status": 0
}
Response samples
- 200
- 404
{- "data": [
- {
- "id": 1,
- "status": "Approved",
- "board_id": 123,
- "file": "document.pdf",
- "created_at": "2024-06-17T12:00:00Z",
- "type": "application/pdf",
- "title": "Project Plan",
- "description": "A detailed project plan document",
- "tags": [
- "project",
- "planning",
- "important"
], - "questions": [
- "What is the timeline?",
- "Who are the stakeholders?"
], - "is_group": false,
- "size": 2048
}
], - "message": "list of all the documents of the user",
- "status": 0
}
document details API
Authorizations:
path Parameters
board_id required | integer |
document_id required | integer |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "id": 1,
- "status": "Approved",
- "board_id": 123,
- "file": "document.pdf",
- "created_at": "2024-06-17T12:00:00Z",
- "type": "application/pdf",
- "title": "Project Plan",
- "description": "A detailed project plan document",
- "tags": [
- "project",
- "planning",
- "important"
], - "questions": [
- "What is the timeline?",
- "Who are the stakeholders?"
], - "is_group": false,
- "size": 2048
}
], - "message": "list of all the documents of the user",
- "status": 0
}
generate thumbnails and reels for video
Authorizations:
path Parameters
board_id required | integer |
document_id required | integer |
Request Body schema: application/json
user_prompt | string |
feature_type | boolean |
conversation_id | string |
document_file_id | integer |
Responses
Request samples
- Payload
{- "user_prompt": "string",
- "feature_type": true,
- "conversation_id": "string",
- "document_file_id": 0
}
Response samples
- 201
- 400
- 404
{- "data": {
- "conversation_id": "string",
- "id": 0,
- "board_id": 0,
- "status": "string",
- "process_id": 0,
- "meta_data": { }
}, - "message": "string",
- "status": 0
}
get all thumbnails and reels for a video
Authorizations:
path Parameters
board_id required | integer |
document_id required | integer |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "file": "string",
- "document_url": "string",
- "created_at": "2019-08-24",
- "size": 0
}, - "message": "string",
- "status": 0
}
Extract accesss token from supported connetor (confluence)
Authorizations:
path Parameters
connector required | string Default: "atlassian" |
Request Body schema: application/json
code | string |
Responses
Request samples
- Payload
{- "code": "string"
}
Response samples
- 200
- 400
{- "data": {
- "access_token": "string",
- "refresh_token": "string"
}, - "message": "string",
- "status": 0
}
get all groups present in a board
Authorizations:
path Parameters
board_id required | integer |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "group_name": "string",
- "status": "string",
- "created_at": "2019-08-24",
- "updated_at": "2019-08-24",
- "board_id": 0,
- "space_id": "string",
- "scraping_url": "string"
}, - "message": "string",
- "status": 0
}
Chat bot for text to SQL
This endpoint allows users to interact with a chat bot that converts natural language prompts into SQL queries.
Authorizations:
Request Body schema: application/json
prompt | string The natural language prompt to convert into SQL. |
board_id | integer The ID of the board associated with the query. |
Responses
Request samples
- Payload
{- "prompt": "string",
- "board_id": 0
}
Response samples
- 200
- 403
- 404
{- "data": {
- "suggestions": {
- "id": 0,
- "db_id": 0,
- "prompt": "string",
- "sql": "string",
- "suggested_graph": [
- { }
], - "updated_at": "2019-08-24T14:15:22Z",
- "data": "2019-08-24T14:15:22Z",
- "type": "string",
- "business_usecase": "string",
- "valid_sql": true,
- "is_conversation": true,
- "is_active": true,
- "column_details": [
- "string"
], - "explanation": "string"
}
}, - "message": "string",
- "success": 200
}
Create a new database connection for a board.
This endpoint establishes a connection to a database and stores the connection details for a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
Request Body schema: application/json
db_type | string The type of database (e.g., MySQL, PostgreSQL). |
host | string The database host. |
port | integer The database port. |
user | string The database user. |
password | string The database password. |
db_name | string The database name. |
Responses
Request samples
- Payload
{- "db_type": "string",
- "host": "string",
- "port": 0,
- "user": "string",
- "password": "string",
- "db_name": "string"
}
Response samples
- 200
- 400
- 404
{- "data": [
- "string"
], - "message": null,
- "status": 200
}
Retrieve database credentials for a specific board.
This endpoint retrieves the database credentials for a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
Responses
Response samples
- 200
- 404
{- "data": {
- "db_type": "string",
- "host": "string",
- "port": 0,
- "user": "string",
- "password": "string",
- "db_name": "string"
}, - "message": null,
- "status": 200
}
Create a new dashboard for a board.
This endpoint creates a new dashboard for a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
Request Body schema: application/json
db_type | string The type of database (e.g., MySQL, PostgreSQL). |
host | string The database host. |
port | integer The database port. |
user | string The database user. |
password | string The database password. |
db_name | string The database name. |
Responses
Request samples
- Payload
{- "db_type": "string",
- "host": "string",
- "port": 0,
- "user": "string",
- "password": "string",
- "db_name": "string"
}
Response samples
- 200
- 400
- 404
{- "data": [
- "string"
], - "message": null,
- "status": 200
}
Get list of dashboards for a board.
This endpoint retrieves a list of dashboards for a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
query Parameters
dashboard_type | string The type of dashboard. |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "title": "string",
- "db_type": "string",
- "database_description": "string",
- "status": "string",
- "status_msg": "string",
- "id": 0,
- "prompts": [
- "string"
], - "insights": [
- { }
]
}
], - "message": null,
- "status": 200
}
Get dashboard details.
This endpoint retrieves details of a specific dashboard for a board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "board_id": 0,
- "name": "string",
- "description": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "status_msg": "string",
- "insight_category": [
- "string"
], - "type": "string"
}, - "message": null,
- "status": 200
}
Update dashboard details.
This endpoint updates the details of a specific dashboard for a board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Request Body schema: application/json
name | string The new name of the dashboard. |
insight_category | Array of strings The updated insight categories. |
dashboard_type | string The updated dashboard type. |
Responses
Request samples
- Payload
{- "name": "string",
- "insight_category": [
- "string"
], - "dashboard_type": "string"
}
Response samples
- 200
- 404
{- "data": {
- "id": 0,
- "board_id": 0,
- "name": "string",
- "description": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "string",
- "status_msg": "string",
- "insight_category": [
- "string"
], - "type": "string"
}, - "message": null,
- "status": 200
}
Delete a dashboard.
This endpoint deletes a specific dashboard for a board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Responses
Response samples
- 200
- 404
{- "data": { },
- "message": "Dashboard deleted successfully",
- "status": 200
}
Add a widget to a dashboard.
This endpoint adds a widget to a specific dashboard for a board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Request Body schema: application/json
widget_ids | Array of integers The IDs of the widgets to add. |
Responses
Request samples
- Payload
{- "widget_ids": [
- 0
]
}
Response samples
- 200
- 404
{- "data": { },
- "message": "Widget added successfully",
- "status": 200
}
Execute dashboard widgets.
This endpoint executes the widgets on a specific dashboard for a board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Responses
Response samples
- 200
- 404
{- "data": { },
- "message": "Widgets executed successfully",
- "status": 200
}
Execute an SQL query on a board's database.
This endpoint executes an SQL query on the database associated with a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
Request Body schema: application/json
sql_query | string The SQL query to execute. |
Responses
Request samples
- Payload
{- "sql_query": "string"
}
Response samples
- 200
- 404
{- "data": { },
- "message": "SQL query executed successfully",
- "status": 200
}
Fetch all widgets for a specific board.
This endpoint retrieves all widgets associated with a specific board.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "id": 0,
- "name": "string",
- "type": "string",
- "description": "string"
}
], - "message": null,
- "status": 200
}
Update a widget.
This endpoint updates the details of a specific widget.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
widget_id required | integer The ID of the widget. |
Request Body schema: application/json
widget_name | string The new name of the widget. |
widget_type | string The new type of the widget. |
widget_description | string The new description of the widget. |
Responses
Request samples
- Payload
{- "widget_name": "string",
- "widget_type": "string",
- "widget_description": "string"
}
Response samples
- 200
- 404
{- "data": { },
- "message": "Widget updated successfully",
- "status": 200
}
Fetch all widgets for a specific dashboard.
This endpoint retrieves all widgets associated with a specific dashboard.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "id": 0,
- "name": "string",
- "type": "string",
- "description": "string"
}
], - "message": null,
- "status": 200
}
Add a new widget to a specific dashboard.
This endpoint adds a new widget to a specific dashboard.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Request Body schema: application/json
widget_name | string The name of the widget. |
widget_type | string The type of the widget. |
widget_description | string The description of the widget. |
Responses
Request samples
- Payload
{- "widget_name": "string",
- "widget_type": "string",
- "widget_description": "string"
}
Response samples
- 200
- 404
{- "data": { },
- "message": "Widget added successfully",
- "status": 200
}
Delete a widget from a specific dashboard.
This endpoint deletes a specific widget from a dashboard.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
widget_id required | integer The ID of the widget. |
Responses
Response samples
- 200
- 404
{- "data": { },
- "message": "Widget deleted successfully",
- "status": 200
}
Add a chat widget to a specific dashboard.
This endpoint adds a chat widget to a specific dashboard.
Authorizations:
path Parameters
board_id required | integer The ID of the board. |
dashboard_id required | integer The ID of the dashboard. |
Responses
Response samples
- 200
- 404
{- "data": { },
- "message": "Chat widget added successfully",
- "status": 200
}