Tree BG 1
Tree
Tree
TreeLeaves
TreeLeaves
Cat IdleGrassGrassRockRock

Workflows

Obtenir les Workflows

GET /v1/workflows

200

Réponse réussie

next_cursor
*string|null

Une liste de workflows

Playground

Testez les endpoints en direct

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"
    }
  ]
}

Obtenir les inscriptions de workflow

GET /v1/workflows/registrations

200

Réponse réussie

next_cursor
*string|null
workflow_registrations
*array<WorkflowRegistration>

Une liste d'enregistrements de workflows

workflow_versions
*array<WorkflowRegistration>

Une liste d'enregistrements de workflows

Playground

Testez les endpoints en direct

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"
    }
  ]
}

Exécuter un workflow

POST /v1/workflows/{workflow_identifier}/execute

200

Réponse réussie

WorkflowExecutionResponse

{object}

WorkflowExecutionSyncResponse

{object}

Playground

Testez les endpoints en direct

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"
}

Exécuter l'inscription de workflow

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

200

Réponse réussie

WorkflowExecutionResponse

{object}

WorkflowExecutionSyncResponse

{object}

Playground

Testez les endpoints en direct

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"
}

Obtenir un workflow

GET /v1/workflows/{workflow_identifier}

200

Réponse réussie

Playground

Testez les endpoints en direct

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"
  }
}

Mettre à jour un workflow

PUT /v1/workflows/{workflow_identifier}

200

Réponse réussie

workflow
*Workflow|null

Workflow de l'enregistrement du workflow

Playground

Testez les endpoints en direct

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
}

Obtenir l'inscription de workflow

GET /v1/workflows/registrations/{workflow_registration_id}

200

Réponse réussie

Playground

Testez les endpoints en direct

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"
  }
}

Archivage en masse des Workflows

PUT /v1/workflows/archive

200

Réponse réussie

archived
*array<Workflow|null>

Workflows qui ont été archivés avec succès ou étaient déjà archivés

Workflows qui n'ont pas pu être archivés et les messages d'erreur correspondants

Playground

Testez les endpoints en direct

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
  ]
}

Désarchiver des workflows en masse

PUT /v1/workflows/unarchive

200

Réponse réussie

Workflows qui n'ont pas pu être archivés et les messages d'erreur correspondants

unarchived
*array<Workflow|null>

Workflows qui ont été archivés avec succès ou étaient déjà archivés

Playground

Testez les endpoints en direct

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
  ]
}

Archiver un workflow

PUT /v1/workflows/{workflow_identifier}/archive

200

Réponse réussie

workflow
*Workflow|null

Workflow de l'enregistrement du workflow

Playground

Testez les endpoints en direct

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
}

Désarchiver un workflow

PUT /v1/workflows/{workflow_identifier}/unarchive

200

Réponse réussie

workflow
*Workflow|null

Workflow de l'enregistrement du workflow

Playground

Testez les endpoints en direct

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
}