Light Logo
Predictions

Get a prediction

Retrieve a prediction by its id.

GET
/predictions/{prediction_id}
AuthorizationBearer <token>

In: header

Path Parameters

prediction_idPrediction Id

The ID of the prediction to get.

Formatuuid

Response Body

curl -X GET "https://api.wrift.ai/v1/predictions/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "model": {
    "owner": "string",
    "name": "string",
    "version_number": 0
  },
  "created_at": "2019-08-24T14:15:22Z",
  "status": "pending",
  "updated_at": "2019-08-24T14:15:22Z",
  "setup_time": "string",
  "execution_time": "string",
  "error": {
    "source": "internal",
    "message": "string",
    "detail": null
  },
  "input": null,
  "output": null,
  "logs": [
    "string"
  ],
  "setup_logs": [
    "string"
  ],
  "url": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}