Scribe API: Text Example

A very simple example of utilising the Autoscriber API is passing text as opposed to audio.

Here are the steps involved:

You must first make a POST request. The API will respond with a 201 status code and the location that you can GET .

Note that to call the API, you need to pass your API key in a header with name api-key .

See the Javascript code below:

const axios = require('axios');

axios.post('https://io.autoscriber.com/v1/scribe', 
  {
    {
      "communication": {"method":"get"},
      "in": [{"type":"transcript", "language":"en", "transcript":[
     {"text": "I have a headache.", "speaker": "patient"}, {"text": "Since when?", "speaker": "doctor"}, {"text": "Since a couple of weeks, its very busy at work", "speaker": "patient"}
            ]
      "out": [{"type":"standard_en"}]
    }
  }, 
  {
    headers = {
      "api-key": 'YOUR_API_KEY',
      "Content-type": 'application/json'
    }
  }
);

See the Response 201 below:

    {
        "id": "<RANDOM ID>",
        "location": "https://io.autoscriber.com/v1/scribe/<RANDOM ID>"
    }

And the Response from the Get location:

    {
        <NOTE HERE>
    }
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us