Tree BG 1
Tree
Tree
TreeLeaves
TreeLeaves
Cat IdleGrassGrassRockRock

Workflows Endpoints

Get Workflows

GET /v1/workflows

200

Successful Response

next_cursor
*string|null

A list of workflows

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "next_cursor": null,
  "workflows": [
    {
      "archived": "false",
      "display_name": "My workflow",
      "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
      "name": "My resource"
    }
  ]
}

Get Workflow Registrations

GET /v1/workflows/registrations

200

Successful Response

next_cursor
*string|null
workflow_registrations
*array<WorkflowRegistration>

A list of workflow registrations

workflow_versions
*array<WorkflowRegistration>

A list of workflow registrations

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/registrations \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "next_cursor": null,
  "workflow_registrations": [
    {
      "definition": {
        "input_schema": [
          null
        ]
      },
      "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
      "workflow_id": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "workflow_versions": [
    {
      "definition": {
        "input_schema": [
          null
        ]
      },
      "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
      "workflow_id": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ]
}

Execute Workflow

POST /v1/workflows/{workflow_identifier}/execute

200

Successful Response

WorkflowExecutionResponse

{object}

WorkflowExecutionSyncResponse

{object}

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/{workflow_identifier}/execute \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

200

{
  "end_time": null,
  "execution_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "result": null,
  "root_execution_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "start_time": "2025-12-17T10:25:07.818693Z",
  "status": "RUNNING",
  "workflow_name": "support-workflow"
}

Execute Workflow Registration

POST /v1/workflows/registrations/{workflow_registration_id}/execute

200

Successful Response

WorkflowExecutionResponse

{object}

WorkflowExecutionSyncResponse

{object}

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/registrations/{workflow_registration_id}/execute \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

200

{
  "end_time": null,
  "execution_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "result": null,
  "root_execution_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "start_time": "2025-12-17T10:25:07.818693Z",
  "status": "RUNNING",
  "workflow_name": "support-workflow"
}

Get Workflow

GET /v1/workflows/{workflow_identifier}

200

Successful Response

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/{workflow_identifier} \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "workflow": {
    "active": "true",
    "customer_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "display_name": "My workflow",
    "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "name": "My resource",
    "type": "code",
    "workspace_id": "019b2bd7-96e7-7219-8c0b-45a73da50088"
  }
}

Update Workflow

PUT /v1/workflows/{workflow_identifier}

200

Successful Response

workflow
*Workflow|null

Workflow of the workflow registration

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/{workflow_identifier} \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

200

{
  "workflow": null
}

Get Workflow Registration

GET /v1/workflows/registrations/{workflow_registration_id}

200

Successful Response

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/registrations/{workflow_registration_id} \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "workflow_registration": {
    "active": "true",
    "definition": {
      "input_schema": [
        null
      ]
    },
    "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "workflow_id": "019b2bd7-96e7-7219-8c0b-45a73da50088"
  },
  "workflow_version": {
    "active": "true",
    "definition": {
      "input_schema": [
        null
      ]
    },
    "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "workflow_id": "019b2bd7-96e7-7219-8c0b-45a73da50088"
  }
}

Bulk Archive Workflows

PUT /v1/workflows/archive

200

Successful Response

archived
*array<Workflow|null>

Workflows that were successfully archived or were already archived

Workflows that could not be archived and the corresponding error messages

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/archive \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "workflow_ids": [
    "019b2bd7-96e7-7219-8c0b-45a73da50088"
  ]
}'

200

{
  "archived": [
    null
  ]
}

Bulk Unarchive Workflows

PUT /v1/workflows/unarchive

200

Successful Response

Workflows that could not be archived and the corresponding error messages

unarchived
*array<Workflow|null>

Workflows that were successfully archived or were already archived

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/unarchive \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "workflow_ids": [
    "019b2bd7-96e7-7219-8c0b-45a73da50088"
  ]
}'

200

{
  "unarchived": [
    null
  ]
}

Archive Workflow

PUT /v1/workflows/{workflow_identifier}/archive

200

Successful Response

workflow
*Workflow|null

Workflow of the workflow registration

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/{workflow_identifier}/archive \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

200

{
  "workflow": null
}

Unarchive Workflow

PUT /v1/workflows/{workflow_identifier}/unarchive

200

Successful Response

workflow
*Workflow|null

Workflow of the workflow registration

Playground

Test the endpoints live

curl https://api.mistral.ai/v1/workflows/{workflow_identifier}/unarchive \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

200

{
  "workflow": null
}