Add Content
Adding links, files and text to your AskAI
Last updated
Adding links, files and text to your AskAI
Last updated
The only optional fields are meta_author, meta_link, meta_published (which can be MM/DD/YYYY or an Epoch Unix Timestamp, as a string) and content_id.
Use the below body to add webpages/links to your AskAI. These must be publicly accessible and cannot be files.
Use the below body to add raw text to your AskAI. This text must all be JSON-safe.
If the request is valid and successful, the API will return the below response.
{
"status": "success",
"response": {
"content_id": "1682755",
"status": "success"
}
}
Your content is then processed in the background and will take longer if it's a large piece of content. This content_id
can also be used to update or delete this content item.
Once your content has been successfully added, it will appear on your AskAI upload page and you can start asking questions about that content.
AskAI ID
AskAI API Key
URL of the webpage to be added
Title of the content
Published date of the content in 'MM/DD/YYYY' format or as an Epoch Unix Timestamp string
Author of the content
Link to the content
Unique identifier for the content, used when updating content
Unique identifier for the client, used when updating content
POST /api/1.1/wf/ask-ai-content HTTP/1.1
Host: myaskai.com
Content-Type: application/json
Accept: */*
Content-Length: 200
{
"id": "text",
"api_key": "text",
"webpage": "https://example.com",
"meta_title": "text",
"meta_published": "text",
"meta_author": "text",
"meta_link": "https://example.com",
"content_id": "text",
"client_id": "text"
}
Successful operation
{
"status": "text",
"response": {
"content_id": "text",
"status": "text"
}
}
AskAI ID
AskAI API Key
URL of the file to be added
Title of the content
Published date of the content in 'MM/DD/YYYY' format or as an Epoch Unix Timestamp string
Author of the content
Link to the content
Unique identifier for the content, used when updating content
Unique identifier for the client, used when updating content
POST /api/1.1/wf/ask-ai-content HTTP/1.1
Host: myaskai.com
Content-Type: application/json
Accept: */*
Content-Length: 201
{
"id": "text",
"api_key": "text",
"file_url": "https://example.com",
"meta_title": "text",
"meta_published": "text",
"meta_author": "text",
"meta_link": "https://example.com",
"content_id": "text",
"client_id": "text"
}
Successful operation
{
"status": "text",
"response": {
"content_id": "text",
"status": "text"
}
}
AskAI ID
AskAI API Key
JSON-safe text content
Title of the content
Published date of the content in 'MM/DD/YYYY' format or as an Epoch Unix Timestamp string
Author of the content
Link to the content
Unique identifier for the content, used when updating content
Unique identifier for the client, used when updating content
POST /api/1.1/wf/ask-ai-content HTTP/1.1
Host: myaskai.com
Content-Type: application/json
Accept: */*
Content-Length: 182
{
"id": "text",
"api_key": "text",
"text": "text",
"meta_title": "text",
"meta_published": "text",
"meta_author": "text",
"meta_link": "https://example.com",
"content_id": "text",
"client_id": "text"
}
Successful operation
{
"status": "text",
"response": {
"content_id": "text",
"status": "text"
}
}