url field removed from prediction responses
Mar 18, 2025
·1 minute read
The url field has been removed from prediction objects. It previously appeared in the response whenever you created or fetched a prediction, and was commonly used as a polling target to check on a prediction's status.
It was redundant. The id field has always been present, and polling by ID via GET /predictions/{id} works the same way. On top of that, POST /predictions now includes a Location header in the response pointing directly to the prediction so there are two cleaner paths to the same place.
1# The Location header gives you the URL directly2 curl -i -X POST https://api.wrift.ai/v1/predictions \3 -H "Authorization: Bearer $WRIFTAI_ACCESS_TOKEN" \4 -H "Content-Type: application/json" \5 -d '{"model": "owner/model_name", "input": {"prompt": "..."}}'67 # Location: https://api.wrift.ai/v1/predictions/a1b2c3d4-...89 # Or construct it from the id yourself10 curl https://api.wrift.ai/v1/predictions/a1b2c3d4-... \11 -H "Authorization: Bearer $WRIFTAI_ACCESS_TOKEN"12
If you were relying on the url field, update your integration to use id or read the Location header instead.