Skip to main content
FuseFuse
IntegrationsOpenaiActions

Cancel OpenAI response

Cancel an in-progress OpenAI Responses API response.

Agent markdown

responses.cancel · OpenAI · v1

Details

Risk
Write
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=false, destructive=false, idempotent=true, openWorld=true

Scopes

None

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
response_idstringYesminLength 1; maxLength 200

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
idstringYesminLength 1; maxLength 200
statusstringYesminLength 1; maxLength 64
output_textstringYesmaxLength 100000
refusedbooleanYes
refusalstringNomaxLength 2000
incomplete_reasonstringNomaxLength 200
modelstringNominLength 1; maxLength 200
usageobjectNoadditionalProperties false
usage.input_tokensintegerNo
usage.output_tokensintegerNo
usage.total_tokensintegerNo
usage.prompt_tokensintegerNo
errorobjectNoadditionalProperties false
error.codestringNomaxLength 200
error.messagestringNomaxLength 2000

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "response_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "response_id"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "status": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "output_text": {
      "type": "string",
      "maxLength": 100000
    },
    "refused": {
      "type": "boolean"
    },
    "refusal": {
      "type": "string",
      "maxLength": 2000
    },
    "incomplete_reason": {
      "type": "string",
      "maxLength": 200
    },
    "model": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "usage": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "input_tokens": {
          "type": "integer"
        },
        "output_tokens": {
          "type": "integer"
        },
        "total_tokens": {
          "type": "integer"
        },
        "prompt_tokens": {
          "type": "integer"
        }
      }
    },
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 200
        },
        "message": {
          "type": "string",
          "maxLength": 2000
        }
      }
    }
  },
  "required": [
    "id",
    "status",
    "output_text",
    "refused"
  ]
}