Semantria
  1. ProcessingDocuments
Semantria
  • Blacklist
    • Remove items from blacklist
      DELETE
    • Retrieve blacklisted items
      GET
    • Add items to blacklist
      POST
    • Update items in blacklist
      PUT
  • Categories
    • Remove user categories
      DELETE
    • Retrieve user categories
      GET
    • Add user categories
      POST
    • Updates user categories
      PUT
  • ProcessingCollections
    • Queue collection for analysis
      POST
    • Retrieve collections analysis
      GET
    • Cancel collection analysis
      DELETE
    • Retrieve collection analysis or its status in queue
      GET
  • Configuration
    • Remove user configurations
      DELETE
    • Retrieve user configurations
      GET
    • Create user configurations
      POST
    • Update user configurations
      PUT
  • ProcessingDocuments
    • Queue document for analysis
      POST
    • Queue batch of documents for analysis
      POST
    • Retrieve documents analysis
      GET
    • Cancel document analysis
      DELETE
    • Retrieve document analysis or its status in queue
      GET
  • Entities
    • Remove user entities
      DELETE
    • Retrieve user entities
      GET
    • Add user entities
      POST
    • Update user entities
      PUT
  • Features
    • Retrieve supported features
  • Phrases
    • Remove sentiment-bearing phrases
    • Retrieve sentiment-bearing phrases
    • Add sentiment-bearing phrases
    • Updates sentiment-bearing phrases
  • Queries
    • Remove queries
    • Retrieve queries
    • Add or update queries
    • Update queries
  • Statistics
    • Retrieve usage statistics
  • Status
    • Retrieve API status
  • Subscription
    • Retrieve subscription details
  • Taxonomy
    • Remove taxonomy nodes
    • Retrieve taxonomy
    • Add taxonomy nodes
    • Update taxonomy nodes
  1. ProcessingDocuments

Queue batch of documents for analysis

POST
/document/batch.{content_type}
This method queues batch of documents for analysis. The rules are the same as for single document mode but here the documents ordered into the batch.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.semantria.com//document/batch.' \
--header 'Content-Type: application/json' \
--data-raw 'null'
Response Response Example
200 - Example 1
{
    "id": "string",
    "job_id": "string",
    "tag": "string",
    "text": "string"
}

Request

Path Params
content_type
string 
required
Query Params
config_id
string 
optional
Identifier of configuration used for analysis.
Body Params application/json
No schema defined
Examples

Responses

🟢200Client request accepted and queued. Server responds with the sentiment-bearing phrases list.
application/json
Body
id
string 
required
Up to 32 symbols unique identifier of document assigned and tracked by client.
job_id
string 
required
Specific marker of incoming job that can be used then for documents retrieving
tag
string 
required
Any text of up to 50 characters used like marker.
text
string 
required
Document text that needs to be analyzed by the service.
🟢202Client request accepted and queued for processing.
🟠401Authentication failed.
🟠402Unauthorized. Limit of system calls is reached or subscription is expired.
🟠403Request is forbidden for selected processing mode.
🟠406Documents limit per batch is achieved.
🟠413Characters limit for the document exceeded.
🔴500Server side issue. Server may respond with the details in response body.
Modified at 2022-09-10 18:38:13
Previous
Queue document for analysis
Next
Retrieve documents analysis
Built with