---
updatedAt: 2026-05-27T08:00:07.000Z
agentTools:
  projectIndex: https://docs.d-id.com/llms.txt
---

# Delete a video stream

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Realtime Endpoints",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://api.d-id.com/"
    }
  ],
  "paths": {
    "/agents/{agentId}/streams/{streamId}": {
      "delete": {
        "operationId": "DeleteStream",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "400": {
            "description": "SessionError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "SessionError",
                      "description": "missing or invalid session_id"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "AuthorizationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "AuthorizationError",
                      "description": "user unauthenticated"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "NotFound",
                      "description": "stream_id doesn't exits or not owened by the user"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Delete a video stream",
        "tags": [
          "Agents Streams"
        ],
        "security": [
          {
            "basic": []
          },
          {
            "bearer": []
          },
          {
            "client-key": []
          }
        ],
        "parameters": [
          {
            "description": "Agent Id",
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "the stream identifier",
            "in": "path",
            "name": "streamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StickyStreamRequest"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonError": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "details": {},
          "internal": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "description"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Status": {
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "StickyStreamRequest": {
        "properties": {
          "session_id": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```