# Endpoint for Image URLs
curl https://image.odaportal.com/api/v1/calculate-quality-score \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ODA_STUDIO_AUTHENTICATION_TOKEN" \
-X POST \
-d '{"url":URL_OF_YOUR_IMAGE, "listing_id":UNIQUE_LISTING_ID, "experiment_id":EXPERIMENT_ID}'
ODA_STUDIO_AUTHENTICATION_TOKEN → API TOKEN that Oda will provide.
UNIQUE_LISTING_ID → AIRBNB or some other unique listing id. We return a running portfolio score everytime you upload a new image with the same listing id.
EXPERIMENT_ID → User specified ID to aggregate scores along different image enhancement experiments. Original portfolio score continues to aggregate based on LISTING_ID if EXPERIMENT_ID is not specified.
URL_OF_YOUR_IMAGE → URL of the image on your hosted server (e.g. AWS S3 url).
# Endpoint for Listing Portfolio
curl https://image.odaportal.com/api/v1/portfolio-score \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ODA_STUDIO_AUTHENTICATION_TOKEN" \
-X POST \
-d '{"listing_id":UNIQUE_LISTING_ID, "experiment_id": EXPERIMENT ID}'
ODA_STUDIO_AUTHENTICATION_TOKEN → API TOKEN that Oda will provide.
LISTING_ID → AIRBNB or some other unique listing id. We return a running portfolio score everytime you upload a new image with the same listing id.
EXPERIMENT_ID → User specified ID to aggregate scores along different image enhancement experiments. Original portfolio score continues to aggregate based on LISTING_ID if EXPERIMENT_ID is not specified.