List all documents from a project
List all documents from a project
Path Parameters
- project_id integer required
ID of the project to get
Query Parameters
- details string
Possible values: [
segments
,meta
,tags
]Which details should return. Values might be any combination of 'segments', 'meta' and 'tags'.
- segments: Show segments of a document
- meta: Show all the additional attributes that were originally given as the document was uploaded
- tags: Show tags of a document
- search string
Search by name
- annotation_id integer
Filter by annotation ID
- analysis_id integer
Filter by analysis ID
- group_id integer
Filter by group ID
- grouped boolean
If true, return only documents that belong to a group
- analysed boolean
If true, return only documents that belong to an analysis
- offset integer
An offset is simply the number of records you wish to skip before selecting records.
- limit integer
Limit of entries that should be returned.
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
documents object
A document with the segments and tags
text stringThe document text
segments object[]
list of segments
text stringThe segment text
span integer[]The interval at which the segment occurs in the original document
- has_more boolean
indicates if a new request with a different offset should be done to get more models.
- offset integer
An offset is simply the number of records you wish to skip before selecting records.
- limit integer
Limit of entries that should be returned.
- count integer
Number of objects returned
{
"documents": {
"text": "Document 1",
"segments": [
{
"text": "Segment 1",
"span": [
0,
9
]
}
]
},
"has_more": true,
"offset": 0,
"limit": 10,
"count": 10
}
User is not authenticated. This means token is either not present or invalid
User does not have the minimal required project role "VIEWER"
The project was not found
Something is wrong with the API.