Running Multiple Threads
Please read the Material Usage Rules on this site.
Description: This method can be used to start execution threads in bulk for the specified workspace.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| count | integer | int32 | (empty) | Number of threads to run. |
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
note
The number of threads to run should be specified as a path parameter in the URL.
Example request:
POST
CURL:
curl 'http://localhost:8160/v1/threads/create_bulk?count=5&workspaceId=-1' \
--request POST \
--header 'Api-Token: YOUR_SECRET_TOKEN'
C#:
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("http://localhost:8160/v1/threads/create_bulk?count=5&workspaceId=-1"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
Cube:
http://localhost:8160/v1/threads/create_bulk?count=5&workspaceId=-1

Additionally:
User-Agent: {-Profile.UserAgent-}
Api-Token: Token from UserArea2.

Response API:
| Response code | Result |
|---|---|
200 OK | OK |
401 Unauthorized | Unauthorized |
403 Forbidden | Forbidden |
500 Internal Server Error | Internal Server Error |
Success Response (200 OK):
[
{
"workspaceId": 1,
"threadToken": "thread-token-1",
"type": "string",
"createdAt": "2026-05-19T10:00:00Z"
}
]
Error Response (500):
{
"message": null
}