Documents
- POSTIngest Document
- POSTIngest Document From Url
- POSTIngest Document From Embedding
- POSTGet Document Answer
- POSTList Documents
- POSTSearch document pages (deprecated)
- POSTSearch Document Pages
- POSTSearch Document Paragraphs
- POSTSearch Document Sentences
- GETGet Document By External Id
- GETGet Document By Id
- DELDelete Document By Id
- GETGet Document By Task Id
- POSTPreview Delete By Metadata
- POSTDelete Documents By Metadata
Content
Extractions
Tasks
Documents
Get Document By Task Id
Retrieve a document by its task identifier.
GET
/
api
/
v1
/
documents
/
task
/
{task_identifier}
Copy
curl --request GET \
--url https://api.fieldwise.ai/api/v1/documents/task/{task_identifier} \
--header 'X-API-Key: <api-key>'
Copy
{
"success": true,
"data": {
"id": 123,
"external_id": "<string>",
"file_path": "<string>",
"document_metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"pages": [
{
"content": "This is the content of page 1...",
"page_number": 1
}
]
},
"error": {
"error_code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"version": "1.0"
}
}
Authorizations
Headers
Path Parameters
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request GET \
--url https://api.fieldwise.ai/api/v1/documents/task/{task_identifier} \
--header 'X-API-Key: <api-key>'
Copy
{
"success": true,
"data": {
"id": 123,
"external_id": "<string>",
"file_path": "<string>",
"document_metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"pages": [
{
"content": "This is the content of page 1...",
"page_number": 1
}
]
},
"error": {
"error_code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"version": "1.0"
}
}
Assistant
Responses are generated using AI and may contain mistakes.