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

The response is of type object.