# Taakstatus ophalen

Canonieke URL: https://sosoapi.ai/nl/docs/mcp/job-status

`sosoapi_job_status`

Lees één achtergrondtaak op job_id: status, type en de foutmelding als deze is mislukt.

## Profielen en transporten

Profielen: core, full

Transporten: stdio, http

Kies core of full om te bepalen welke tools je client ziet; dit verandert geen machtigingen. Lokale bestandsupload vereist stdio en is niet beschikbaar via HTTP. Stel SOSOAPI_OUTPUT_SCHEMAS=1 in om uitvoerschema's bij detectie op te nemen. Tools geven met en zonder die instelling gestructureerde resultaten terug.

## Machtigingen en neveneffecten

Annotaties helpen clients een tool te beschrijven. Elke aanroep controleert nog steeds gebruikersauthenticatie, rol, resourcetoegang en verleende bevoegdheden.

```json
{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}
```

`/jobs-api/get` — agent:operate; synchronous_http_response

## Invoervelden

```json
{
  "type": "object",
  "properties": {
    "job_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "job_id"
  ],
  "additionalProperties": false
}
```

## Gestructureerde uitvoer

Dit schema beschrijft structuredContent in een geslaagd toolresultaat. Het MCP-antwoord bevat ook content en kan isError instellen wanneer een aanroep mislukt. Lees bij publiceren het definitieve berichtresultaat; beschouw een geaccepteerd verzoek of tekstantwoord niet als bevestiging. De gekoppelde API-bewerking beschrijft machtigingen en regels voor opnieuw proberen.

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string"
    },
    "job_type": {
      "type": "string"
    },
    "result_data": {
      "$ref": "#/definitions/__schema0"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "status",
    "job_type",
    "result_data",
    "error_message",
    "created_at",
    "updated_at"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}
```

## Voorbeeld van een toolaanroep

Deze voorbeelden gebruiken fictieve waarden die tegen de schema's zijn gecontroleerd. Vervang IDs door toegestane IDs, media door gereedstaande bestanden en datums door je bevestigde publicatietijd. Controleer accountgeschiktheid vóór een schrijfhandeling. Deze pagina verstuurt geen API-verzoeken.

```json
{
  "name": "sosoapi_job_status",
  "arguments": {
    "job_id": "11111111-1111-4111-8111-111111111111"
  }
}
```

structuredContent

```json
{
  "id": "11111111-1111-4111-8111-111111111111",
  "status": "example",
  "job_type": "example",
  "result_data": null,
  "error_message": null,
  "created_at": "example",
  "updated_at": "example"
}
```

## Onderliggende API-bewerkingen

- [/jobs-api/get](https://sosoapi.ai/nl/docs/api/jobs-api-get)
