For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get cabinet

Get one cabinet information

cURL

Use the following cURL command to get a cabinet. You can copy and paste the following template and replace the access_token, projectId, and role.

curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer <access token>' \
--header 'Content-Type: application/json' \
--data-raw '
{
    "query":"query GetCabinet($projectId: ID!, $role: Role!) {\n  result: getCabinet(projectId: $projectId, role: $role) {\n    id\n    documents {\n        id\n    }\n    role\n    status\n    lastOpenedDocumentId\n    statistic {\n          id\n      numberOfTokens\n      numberOfLines\n    }\n  }\n}\n",
    "variables":{"projectId":"GCJUPUhoUTY","role":"REVIEWER"}
}
'
  • query: Use the value in the sample above.

  • variables

    • input

      • projectId: the ID of the project.

      • role: REVIEWER or LABELER.

projectId can be found in the URL. For example, if the URL is:

https://app.datasaur.ai/teams/1/projects/MTM3ZjU0MTI/d7026696-c7e6-44bb-be5b

The projectId is MTM3ZjU0MTI.

Response

Here is the response you can expect after issuing the cURL command.

Last updated