Keys and Authorization
Learn how to generate an API key and authenticate requests to the Speechace Speaking Test API.
The Speechace Speaking Test API uses API keys to authenticate requests. To get started, you'll need to generate an API key from your Speechace account and include it in the Authorization header of each request.
This section walks you through creating your API key, authenticating your requests, and making your first API call.
Before you begin
You need a Speechace account, permission to create an API key, and an API client or development environment capable of sending HTTPS requests.
Base URL
Once you are ready , use the following base URL for Speaking Test API requests:
https://speak.speechace.co/api/v1
Generate an API key
Now, lets follow these steps to create an API key from your Speechace account.
You first need to sign in to your Speechace account.
Now, in your workspace you will see API Keys below Account . Select the API Keys as shown below.

Once the API Keys page appears , click on Create API Key as shown in the image below.

You will see a pop up that will ask you to create API key .You can enter a descriptive name for your API key, say for example Speaking Test Results Integration as shown below.

Now , you can create the key and copy the generated value to a secure location as shown below. Ensure that you keep the key value protected and somewhere safe.

Once you have copied the key value safely , click Done to return to the API Keys page.The generated API key will appear on the page as shown below.

You must remember your full API key may only be shown once, so make sure to save it somewhere secure.
Authentication
The Speechace Speaking Test API uses Bearer token authentication. Include your API key in the Authorization header of each request:
Authorization: Bearer YOUR_RESULTS_API_KEY
You need to replace YOUR_RESULTS_API_KEY with your actual API key. You can also include Accept: application/json to request a JSON response.
Make your first authenticated request
Let's try retrieving your available workspaces using the List Workspaces endpoint.
The block below outlines the request details, including the HTTP method, endpoint URL, and authentication requirements. You can also select your preferred programming language to view the code example and explore the expected response structure.
Retrieve workspaces accessible to your API key.
Successful response in JSON containing accessible workspaces.
The request could not be authenticated because the API key is missing or invalid.
curl --request GET \
--url 'https://speak.speechace.co/api/v1/workspaces' \
--header 'Authorization: Bearer YOUR_RESULTS_API_KEY' \
--header 'Accept: application/json'
{
"data": [
{
"id": "1234",
"name": "Sample Workspace",
"status": "active"
}
]
}Security note: Always make Speechace API requests from your backend or server-side application. Never call these APIs directly from frontend code, as doing so may expose your API key. Keep your API key confidential and never embed it in client-side code or publicly accessible repositories.
As shown in the above example you can use the same authentication method for other Speaking Test API endpoints.
Now, refer to the following section explaining how to List Workspaces, Assessments, and Activities and retrieve the identifiers needed for subsequent Speaking Test API requests.
Last updated