Not all our APIs are synchronous, usually a potentially long running process will be handled by a job. To check whether job is finished or to get any other information, use this query.
Query:
Input: $jobId: string
Response:
Example Request via cURL
curl --location --request POST 'https://app.datasaur.ai/graphql' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{"operationName":"AutoLabelTokenBasedProjectMutation","variables":{"input":{"labelerEmail":"demo@datasaur.ai","options":{"numberOfFilesPerRequest":0,"serviceProvider":"CUSTOM"},"projectId":"HvdyIL2iwZn","targetAPI":{"endpoint":"https://custom-model.api.com/predict","secretKey":"secret"}}},"query":"mutation AutoLabelTokenBasedProjectMutation($input: AutoLabelTokenBasedProjectInput!) { result: autoLabelTokenBasedProject(input: $input) { id status progress }}"}'
Below is the more readable version of request body from cURL command above.
operationName: you can fill any alphanumeric string in as the operationName. GetJobQuery is fine as a default. Refer to organize operationName properly.
query: Copy it from cURL example.
Example Response
Here is the response when you execute the cURL command above.