Adds a public HTTP or HTTPS URL and starts extraction and indexing. The returned document begins in processing status.
api.heroui.pro/v1/agents/{agentId}/knowledge/urlsSend the request to see the live response from the Agents API.
A workspace API key with the permission required by the operation. It may target any active Agent in its workspace.
In: header
The Agent targeted by this workspace API key request.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/agents/string/knowledge/urls" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'{ "character_count": 0, "created_at": "2019-08-24T14:15:22Z", "error_message": "string", "file_name": "string", "file_size_bytes": 0, "id": "string", "is_enabled": true, "last_checked_at": "2019-08-24T14:15:22Z", "last_synced_at": "2019-08-24T14:15:22Z", "name": "string", "next_refresh_at": "2019-08-24T14:15:22Z", "object": "knowledge_document", "refresh_error_message": "string", "refresh_interval_hours": 0, "refresh_status": "idle", "source_type": "file", "source_url": "http://example.com", "status": "processing", "updated_at": "2019-08-24T14:15:22Z"}1 <= length <= 12024Value in
An HTTP or HTTPS URL. A bare hostname is normalized to an HTTPS URL.
1 <= length