Skip to main content

Summary

All the available API routes are listed below.

Managing sources

MethodURLDescription
GET/api/v1/sourcesRetrieve metadata about all accessible sources
GET/api/v1/sources/<project>Retrieve metadata about all sources in a project
GET/api/v1/sources/<project>/<source_name>Retrieve metadata about a source by name
GET/api/v1/sources/id:<source_id>Retrieve metadata about a source by id
PUT/api/v1/sources/<project>/<source_name>Create a source
POST/api/v1/sources/<project>/<source_name>Update a source
DELETE/api/v1/sources/id:<source_id>Delete a source by id

Managing datasets

MethodURLDescription
GET/api/v1/datasetsRetrieve metadata about all accessible datasets
GET/api/v1/datasets/<project>Retrieve metadata about all datasets in a project
GET/api/v1/datasets/<project>/<dataset_name>Retrieve metadata about a dataset by name
PUT/api/v1/datasets/<project>/<dataset_name>Create a dataset
POST/api/v1/datasets/<project>/<dataset_name>Update a dataset
DELETE/api/v1/datasets/<project>/<dataset_name>Delete a dataset by name
POST/api/v1/datasets/<project>/<dataset_name>/exportExport a dataset by name

Uploading comments

MethodURLDescription
POST/api/v1/sources/<project>/<source_name>/syncCreate or update comments
POST/api/v1/sources/<project>/<source_name>/sync-raw-emailsCreate or update comments from raw emails

Managing comments

MethodURLDescription
GET/api/v1/sources/<project>/<source_name>/comments/<comment_id>Retrieve comment by ID
DELETE/api/v1/sources/<project>/<source_name>/comments?id=<comment_id0>[&id=<comment_id1>...]Delete comments by ID

Fetching predictions and model statistics

MethodURLDescription
GET/api/v1/datasets/<project>/<dataset_name>/labellers/<version>/validationGet model statistics
POST/api/v1/datasets/<project>/<dataset_name>/labellers/<version>/predictGet predictions
POST/api/v1/datasets/<project>/<dataset_name>/labellers/<version>/predict-commentsGet predictions by comment ID
POST/api/v1/datasets/<project>/<dataset_name>/labellers/<version>/predict-raw-emailsGet predictions for raw emails

Fetching predictions with Stream API

MethodURLDescription
GET/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>Get a stream by name
GET/api/v1/datasets/<project>/<dataset_name>/streamsGet all streams
PUT/api/v1/datasets/<project>/<dataset_name>/streamsCreate a stream
PUT/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>/exceptionsTag an exception
POST/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>Update a stream
POST/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>/fetchFetch comments from a stream
POST/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>/advanceAdvance a stream
POST/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>/resetReset a stream
DELETE/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>Delete a stream
DELETE/api/v1/datasets/<project>/<dataset_name>/streams/<stream_name>/exceptionsUntag an exception

Querying audit events with Audit Events API

MethodURLDescription
POST/api/v1/audit_events/queryQuery audit events.