Creating a new article
Create article.
POST https://bottalk.io/api/articles
Creates a new audio article inside of a project.
The main content of the article.
The page url of the original article
Should BotTalk parse HTML inside of the article?
Labels to assign to the article inside BotTalk.
uniq id for external control, this field in uniq, and if already exists we will answer by 400 http status code.
The voice from list for audify article
The language from list for audify article
{
"result": "ok",
"id": "b49f2511d9033f313b8c0d361687cd5f"
}
{
"result": "error",
"message": "article with externalId='123456789' already exists"
}
Retrieving an aritcle
GET https://bottalk.io/api/articles/{id}
Fetches an article by id
Retrieving an article by external_id
GET https://bottalk.io/api/articles_external_id/{external_id}
response same as for retrieve an article method
Retrieving an article by URL
In some cases - for instance - to integrate into your custom mobile app - you need to fetch an article by the external URL.
GET https://bottalk.io/api/articles_external_url/{external_url}
Please note that the external_url parameter should be URL encoded.
Retrieving multiple articles
Fetch multiple articles.
GET https://bottalk.io/api/articles?limit={n}&offset={m}
Fetches articles from the project.
Query Parameters
Number of articles to retrieve
Offset of the results if they are limited
Updating an article
Update article.
PUT https://bottalk.io/api/articles/{id}
Updates a audio article.
The main content of the article.
The page url of the original article
Labels to assign to the article inside BotTalk.
Should BotTalk parse HTML inside of the article?
Voice "de-DE-ConradNeural"
Updating an article by external id
Update article by external_id
PUT https://bottalk.io/api/articles_external_id/{external_id}
Updates an audio article.
All params and responses same as for Update Article /api/articles/{id}
Deleting an article
Delete an article.
DELETE https://bottalk.io/api/articles/{id}
Deletes an article from the project.
the article is ready and audiofile exists
the audification is in progress
tts provider or normalizer has returned an error, bottalk will try the audification again in the near future (article has been sent to the queue)
the article is waiting to be audified
the article is rejected by audio automation rules
the article contains an error which prevented audification
Voice and Language fields
example: {"voice":"de-DE-ConradNeural", "lang":"de-DE"}
Voice
Lang (list separated by comma, you can choose one of them)