Collections
POST /v1/collection
Description
Create a new collection.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Responses
200 - Collection created successfully
412 - Out of plan resources
422 - Invalid data provided
GET /v1/collection
Description
Get all collections.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
GET /v1/collection/{id}
Description
Get one collection.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
PUT /v1/collection
Description
You can archive a collection by passing "archived": true
in the payload.
Archived collections CANNOT be deleted - archive is functionally equivalent to delete.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
PUT /v1/collection/{id}/toggle-pause
Description
Pause or resume a collection.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
POST /v1/collection/{id}/search
Description
Search a collection.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Collection ID to use for search |
Body Parameters
Param | Type | Required | Description |
| string | yes | Collection ID to search |
| string | yes | Lucene query |
| int | yes | Which record number to start reading from |
| int | no | How many records to fetch per page |
Example Lucene Query
client.payload.hello: "world" AND batch.info.date_human: [2020-06-25T22:40:44.638Z TO 2021-06-25T22:40:44.639Z]
Example Response
POST /v1/collection/{id}/extended-search
Description
Initiate an extended search.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example response
GET /v1/collection/{id}/extended-search-results
Description
Get extended search results.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example response
Page is optional.
Omitting it will always get the first page of results.
Specifying it with the value of "next_page" will get the next page of 20 results.
If it is empty, there are no more pages of results
POST /v1/collection/{id}/initial
Description
Create initial event task
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
POST /v1/collection/{id}/zip
Description
Request a ZIP archive of search results.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
Last updated