GET
/
v1
/
namespace
/
{namespaceId}
/
documents
/
{documentId}
curl --request GET \
  --url https://api.agentset.ai/v1/namespace/{namespaceId}/documents/{documentId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "ingestJobId": "<string>",
    "externalId": null,
    "name": null,
    "tenantId": null,
    "status": "BACKLOG",
    "error": null,
    "source": {
      "type": "TEXT",
      "text": "<string>"
    },
    "properties": null,
    "totalChunks": 123,
    "totalTokens": 123,
    "totalCharacters": 123,
    "totalPages": 123,
    "createdAt": "<string>",
    "queuedAt": null,
    "preProcessingAt": null,
    "processingAt": null,
    "completedAt": null,
    "failedAt": null
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Headers

x-tenant-id
string

The tenant id to use for the request. If not provided, the default tenant will be used.

Path Parameters

namespaceId
string
required

The id of the namespace to retrieve.

documentId
string
required

The id of the document to retrieve.

Response

200
application/json
The retrieved ingest job
success
boolean
required
data
object
required