GET
/
v2
/
agents
/
{agent_id}
/
kb
/
{doc_id}
curl --request GET \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/kb/{doc_id} \
  --header 'Authorization: Bearer <token>'
{
  "documentID": "<string>",
  "data": {
    "type": "<string>",
    "name": "<string>",
    "canEdit": true
  },
  "updatedAt": 123,
  "status": {
    "type": "<string>",
    "data": {}
  },
  "tags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to retrieve the document from

doc_id
string
required

The ID of the document to retrieve

Response

200
application/json
Document retrieved
documentID
string

The unique identifier for the document.

data
object

The data related to the document.

updatedAt
number

Timestamp indicating when the document was last updated.

status
object

Status information for the document.

tags
string[]

List of tags associated with the document.