Builder

Add a free photo from the search to the site's pictures

post/builder/sessions/{sessionId}/photos/import

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/photos/import
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Request body

idstring required
altstring

Response

Stored

uploadIdstring uuid required
srcstring required

The picture's address on the site, e.g. /assets/team-3f2a9c1d.webp

widthinteger required
heightinteger required
altstring nullable required
source'upload' | 'openverse' | 'ai' required
licenseobject nullable required
createdAtstring required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.