GET

/v1/models/{model_id}/requests

X-API-Key*
curl --request GET \
  --url https://mango.sievedata.com/v1/models/{model_id}/requests \
  --header 'X-API-Key: <x-api-key>'

This endpoint returns a JSON object that describes the requests sent to a model directly.

Request

model_idrequired
string

Sieve model ID

page
Default: "1"
number

The page of results to return

limit
Default: "100"
number

The number of results to return per page

Response

id
string

The id of the job.

model_id
string

The id of the model that the job belongs to.

time
dict

The times when the job was queued, started, and completed.

status
string

The status of the job. Can be “queued”, “started”, “finished”, or “error”.

user_inputs
dict

The inputs that the user provided to trigger the job.

{
  "data": [
    {
      "id": "2d999b84-9e6c-4c52-91b5-64b902e06aab",
      "organization_id": "d9e7825-0fab-455e-b0b9-9660c40fa0f4",
      "workflow_id": "",
      "model_id": "10bdd3d4-41b3-476f-93e5-d1758c805645",
      "time": {
        "queued": "2023-06-08T19:16:09.939000",
        "started": "2023-06-08T19:16:09.967000",
        "completed": "2023-06-08T19:17:14.173000"
      },
      "status": "finished",
      "error": "",
      "user_inputs": {
        "v": "sample input"
      }
    }
  ],
  "next_offset": 1
}