Docs
Open dashboard

Detach agent from document

DELETE/knowledge-base/{id}/agents/{agent_id}

Remove the link between this knowledge document and the specified agent. The document's content will be removed from the agent's provider-side knowledge base. Not paywalled — removing knowledge must always be possible.

Requires Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.

Path parameters

  • idstringrequired
    UUID of the resource.
  • agent_idstringuuidrequired
    UUID of the agent.

Response 200 OK

Detach result.

  • document_idstringuuidrequired
  • agent_idstringuuidrequired
  • detachedbooleanrequired
  • sync_errorstringnullableoptional

Errors

  • 401Unauthorized
    Missing, malformed, or invalid API key.
  • 403Forbidden
    Workspace unavailable, suspended, or paywalled.
  • 404Not Found
    Resource not found in this workspace.
  • 429Too Many Requests
    Workspace request limit exceeded; shared across all its API keys.