WriftAI Logo

url field removed from prediction responses

Mar 18, 2025

1 minute read

Retired

Share

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 directly
2 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": "..."}}'
6
7 # Location: https://api.wrift.ai/v1/predictions/a1b2c3d4-...
8
9 # Or construct it from the id yourself
10 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.


Scale Your Projects.
Build With Confidence.

Scale your projects effortlessly with WriftAI. Seamlessly integrate and optimize performance as you expand and innovate.

© 2026 Sych Inc.