Skip to main content

Authentication

Transcription:Batch Real-Time Deployments:All

Your API key must be used with any interaction with the Speechmatics API to authenticate to the service. Any interaction without this key will receive a HTTP 401 - Unauthorized response.

It is recommended that you store and provide access to the API key on the principle of least privilege. If you believe that your key has been compromised, please contact Speechmatics Support.

Get your API key

Navigate to the manage access page of the Speechmatics portal to create an API key. You may need to register and sign in if you haven't already.

Enter a name for your API key and then store it somewhere safe when you have generated it.

Authenticating

Your API key needs to be included in the header of all requests to the Speechmatics Jobs API. For example:

curl -X GET "https://asr.api.speechmatics.com/v2/jobs/" \
  -H "Authorization: Bearer $API_KEY"`}

Supported endpoints

Speechmatics Batch SaaS supports the following endpoints for production use:

Customer typeRegionEnvironmentEndpoints
On-demandN/AN/Aasr.api.speechmatics.com
EnterpriseEUEU1eu.asr.api.speechmatics.com
eu1.asr.api.speechmatics.com
asr.api.speechmatics.com
EnterpriseEUEU2eu2.asr.api.speechmatics.com
EnterpriseUSUS1us.asr.api.speechmatics.com
us1.asr.api.speechmatics.com
EnterpriseUSUS2us2.asr.api.speechmatics.com
EnterpriseAUAU1au1.asr.api.speechmatics.com

Speechmatics Real-Time SaaS supports the following endpoints for production use:

Customer typeRegionEnvironmentEndpoints
On-demandEUEU2eu2.rt.speechmatics.com
EnterpriseEUEU1neu.rt.speechmatics.com
EnterpriseUSUS1wus.rt.speechmatics.com

Authorization Tokens are replicated between all environments in the same region. Therefore, you can use any environment in a region that you are entitled to access.

All production environments are active and highly available. Multiple environments can be used to balance requests or provide a failover in the event of disruption to one environment.

Note that jobs are created in the environment corresponding to the endpoint used. You must use the same endpoint for all requests relating to a specific job.

If you attempt to use an endpoint for a region you are not contracted to use, that request will be unsuccessful. If you want to use a different region, please contact sales@speechmatics.com.

Enterprise trials

The Batch SaaS Trial endpoint is trial.asr.api.speechmatics.com

If you are using the trial Speechmatics endpoint, please note your authorization token may be time limited. If you try and use the token after the trial period has expired, you will receive a HTTP 401 - Unauthorized response.