image-agent
Image Agent
Create Session
Create a new image agent session.
Creates a new session without sending a chat message. If an ad_id is provided, context is automatically loaded from the database and the ad's existing creative image (if any) is added to the workspace with an initial assistant message.
Request:
- ad_id (optional): AdCampaignAd ID - automatically loads target_audience, product_info, brand_guidelines, intro_text, reference_images, and saphire_website_id from database
- context (optional): Manual context override (only used if ad_id not provided)
- saphire_website_id (optional): Saphire website ID (only used if ad_id not provided)
Response:
- Complete session detail including workspace state and initial messages
post/api/v1/image-agent/sessions
Request
- Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
- URL: https://api.trylapis.com/api/v1/image-agent/sessions
- Auth: HTTP bearer
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.