Sentiment Analysis List Datasets

GET {{baseUrl}}/api/v1/datasets

Lists datasets with the metadata and corresponding samples. You can choose to list only your own datasets, as well as template datasets, or both.

Note that the results are paginated and so you might need to iteratively call this endpoint to obtain all your datasets.

Request Params

KeyDatatypeRequiredDescription
listModestringList mode indicating to query template datasets, only user datasets or both.
  • ALL: List all datasets.
  • ONLY_TEMPLATE: List the template datasets. Template datasets are used as examples.
  • ONLY_USER: List the user datasets. | | limit | number | | The limit defining the maximal number of datasets to return. | | cursor | string | | The cursor to view the next paginated collection of datasets as provided by the next_cursor value in the ListDatasetsResponse. |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Authorizationstring

RESPONSES

status: OK

{"datasets":[{"created_at":"2021-08-24T12:04:32Z","dataset_id":"dde4eeae-7652-4bc8-8be1-1cd6ac898dc7","description":"Description of my awesome sentiment dataset","last_trained_at":"2021-08-24T12:04:32Z","name":"My awesome sentiment dataset","samples":[{"phrase":"This is very good, thanks a lot!","sentiment":"POSITIVE"},{"phrase":"Are you sure?","sentiment":"NEUTRAL"}],"updated_at":"2021-08-24T12:04:32Z"}],"limit":20,"nextCursor":"VGhpcyBpcyBub3QgYSByZWFsIGN1cnNvciwgYnV0IHRoZXkgd291bGQgYmUgYmFzZTY0IGVuY29kZWQgdG9vCg=="}