Skip to main content
POST
/
jobs
/
{jobId}
/
executions
Create job execution
curl --request POST \
  --url https://api.blaxel.ai/v0/jobs/{jobId}/executions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "env": "{\"MY_VAR\": \"custom_value\", \"BATCH_SIZE\": \"100\"}",
  "executionId": "<string>",
  "id": "<string>",
  "jobId": "data-processing-job",
  "memory": 2048,
  "tasks": [
    {}
  ],
  "workspaceId": "<string>"
}
'
{
  "executionId": "exec-abc123",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "jobId": "data-processing-job",
  "tasks": [
    {}
  ],
  "workspaceId": "my-workspace"
}

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Path Parameters

jobId
string
required

Name of the job

Body

application/json

Request to create a job execution

env
object

Environment variable overrides (optional, will merge with job's environment variables)

Example:

"{\"MY_VAR\": \"custom_value\", \"BATCH_SIZE\": \"100\"}"

executionId
string

Execution ID (optional, will be generated if not provided)

id
string

Unique message ID

jobId
string

Job ID

Example:

"data-processing-job"

memory
integer

Memory override in megabytes (optional, must be lower than or equal to job's configured memory)

Example:

2048

tasks
object[]

Array of task parameters for parallel execution

workspaceId
string

Workspace ID

Response

successful operation

Response returned when a job execution is successfully created. Contains identifiers and the tasks that will be executed.

executionId
string

Unique identifier for the created execution. Use this ID to track execution status, retrieve logs, or cancel the execution.

Example:

"exec-abc123"

id
string

Unique identifier for this request, used for idempotency and tracking. Auto-generated if not provided in the request.

Example:

"550e8400-e29b-41d4-a716-446655440000"

jobId
string

Name of the job that this execution belongs to

Example:

"data-processing-job"

tasks
object[]

Array of task configurations that will be executed in parallel according to the job's concurrency settings. Each task can have custom parameters.

workspaceId
string

Name of the workspace where the job execution was created

Example:

"my-workspace"