Get project by id
get a project by id
Path Parameters
Your magic AI project id
- 200
- 401
- 403
- 426
- 500
successful
Schema
- Array [
- ]
The unique identifier of the project
The name of the project.
Your AI chat bot will greet the user with this question.
This is the base prompt what will be passed to the AI model. You can customize the chat bot's behavior by changing this.
If true, the project will be accessible to all users. Only mark it as true if you want to embed your chat bot to your website
If true, the project will show the resources after answering user's question.
dataSources object[]
The data sources that you added to your project
The unique identifier of the data source
Your Magic AI project id
The name of the data source.
Possible values: [pending
, processing
, ready
, failed
]
The status of the data source. If the status is ready, it means that the data source is ready to be used to train the AI model. If the status is processing, it means that the data source is still being processed. You can not use the data source until the status is ready.
Possible values: [file
, drive
, notion
, web
, text
]
Data source type. This is automatically set by the system depending on how did you connect your data source. You can not change it.
A short summary of the data source. When you first upload your data source, the system will automatically generate a summary for you.
{
"id": "5f738671-0ccc-4d32-9b7a-ddab669ab799",
"name": "Sample Project",
"welcomeQuestion": "Hi, how can I help you?",
"systemPrompt": "string",
"isPublic": false,
"showResources": true,
"dataSources": [
{
"id": "5f738671-0ccc-4d32-9b7a-ddab669ab799",
"projectId": "5f738671-0ccc-4d32-9b7a-ddab669ab799",
"name": "Magic AI website home page",
"status": "ready",
"sourceType": "file",
"summary": "string",
"characterCount": 1000
}
]
}
Authentication information is missing or invalid
Response Headers
WWW_Authenticate string
You don't have permission to access this resource
Schema
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
You need to upgrade your account to access this resource
Schema
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
An unexpected error occurred
Schema
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}