Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

List Workspaces, Assessments, and Activities

Learn how to retrieve Workspaces , Assessments and Activities using Speechace Speaking Test API .

Before you start working with the Speechace Speaking Test API, you'll need to know which workspaces, assessments, and activities are available to you. The API lets you retrieve these details.

Understanding the resource hierarchy

Before retrieving results, it helps to understand how workspaces, assessments, and activities are organized in Speechace platform.

As shown below , a workspace contains assessments, and each assessment can contain zero or more activities.

Workspace (7898)
└── Assessment (13971)
    └── Activity (20471)

Each level has its own identifier, which you'll use when making subsequent API requests.


List Workspaces

Let's start by finding the workspaces available to your API key.

The List Workspaces endpoint returns the workspaces you can access, along with their identifiers and other details. You'll use these identifiers to retrieve assessments within a specific workspace.

The block below displays 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.

List Workspaces

get

Retrieve workspaces accessible to your API key.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful response in JSON containing accessible workspaces.

application/json
get/api/v1/workspaces
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"
    }
  ]
}

List Assessments

Now that you've identified your workspace, the next step is to find the assessments within it.

The List Assessments endpoint returns the assessments belonging to a specific workspace, along with their identifiers and other available details. You'll use these identifiers when retrieving assessment results or exploring the activities within an assessment.

As you can see below are the request details, the HTTP method, endpoint URL, and authentication requirements. You can switch between programming languages to find a suitable code example, and examine the sample responses to see what the API returns.

List Assessments

get

Retrieve assessments belonging to a specified workspace. Use the assessment ID, not the assessment name, in subsequent API requests because names may repeat. The activity_count field indicates the number of activities within an assessment.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspace_idstringRequired

Workspace identifier returned by List Workspaces.

Example: 7898
Responses
200

Successful response containing assessments within the specified workspace.

application/json
get/api/v1/workspaces/{workspace_id}/assessments
curl --request GET \
  --url 'https://speak.speechace.co/api/v1/workspaces/{workspace_id}/assessments' \
  --header 'Authorization: Bearer YOUR_RESULTS_API_KEY' \
  --header 'Accept: application/json'
{
  "data": [
    {
      "id": "13425",
      "name": "Food Assessment",
      "status": "active",
      "language": null,
      "activity_count": 1
    },
    {
      "id": "13428",
      "name": "Food Assessment",
      "status": "active",
      "language": null,
      "activity_count": 1
    },
    {
      "id": "13441",
      "name": "Education Assessment",
      "status": "active",
      "language": null,
      "activity_count": 0
    },
    {
      "id": "13971",
      "name": "HR Interview",
      "status": "active",
      "language": null,
      "activity_count": 2
    }
  ]
}

List Activities

Once you've identified the assessment you want to work with, you can retrieve the activities associated with it.

The List Activities endpoint returns the activities belonging to a specific assessment, along with their identifiers and other available details. You can use these activity IDs when retrieving activity-level results.

The below block shows the request details, the HTTP method, endpoint URL, and authentication requirements. It also includes code examples in multiple programming languages and sample responses to help you understand the returned data.

List Activities

get

Retrieve activities belonging to a specific assessment. Use each activity ID when requesting activity-level results.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspace_idstringRequired

Workspace identifier returned by List Workspaces.

Example: 7898
assessment_idstringRequired

Assessment identifier returned by List Assessments.

Example: 13971
Responses
200

Successful response containing activities within the specified assessment.

application/json
get/api/v1/workspaces/{workspace_id}/assessments/{assessment_id}/activities
curl --request GET \
  --url 'https://speak.speechace.co/api/v1/workspaces/{workspace_id}/assessments/{assessment_id}/activities' \
  --header 'Authorization: Bearer YOUR_RESULTS_API_KEY' \
  --header 'Accept: application/json'
{
  "data": [
    {
      "id": "204741",
      "name": "HR Interview",
      "status": "active"
    },
    {
      "id": "204743",
      "name": "PM Interview",
      "status": "active"
    }
  ]
}

You now have the workspace, assessment, and activity IDs needed to retrieve results.

The following section describes Get Assessment Results and how to retrieve assessment-level results, Once you have the required workspace, assessment, and activity IDs.

Last updated