- Getting started
- CREDIT ENDPOINTS
- GENERATE ENDPOINTS
- GETText generation rules and limits
- GETAvailable text generation tones
- GETText generation styles
- GETTarget audiences for text generation
- GETAvailable text types for generation
- GETText generation history
- GETStatus of generated texts
- GETGenerated text for multiple records
- GETActive generation requests
- GETDetails of a specific generation request
- POSTText generation
- POSTCancel a bulk generation request
- POSTUpdate generated text fields
- IMAGE ENDPOINTS
- KEYWORDS ENDPOINTS
- GETKeyword optimization data
- POSTOptimize keywords for text
- DELETEKeyword optimization
- PUTKeyword optimization
- GETKeyword optimization list
- PUTKeyword optimization data
- DELETERanking keywords
- PUTKeyword optimization pipelines
- GETKeyword state
- POSTKeyword pipeline
- DELETEKeyword pipeline
- POSTRestore keyword pipeline
- POSTAdd triggers to keyword pipeline
- POSTAdd triggers to a specific keyword pipeline
- POSTLock a specific keyword pipeline
- POSTUnlock a specific keyword pipeline
- GETPipeline snapshots
- PUTUpdate or create a snapshot
- POSTAdd manual keywords
- GETManual keywords
- REVIEW ENDPOINTS
- SUGGESTION ENDPOINTS
Upload an image
post
/text/image
This endpoint retrieves information about an uploaded image, including its public URL, metadata, and alt text if available.
Requirements
Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token
Parameter Name | Type | Description |
---|---|---|
storeId | string, required | A string representing the storefront. This helps differentiate between images in different stores. |
imageId | string, required | A unique string identifier for the image. This can be any string and will be used to reference the image in future API calls. |
url | string, optional | The public URL of the image. If the image is already hosted online and publicly accessible, this can be used instead of uploading the image directly. |
imageData | string, optional | The base64-encoded image data. This is required if the image is not publicly accessible via a URL. Supported MIME types include:
Sample format: data:image/jpeg;base64,/9j....Akz//Z |
ipAddress | string, required | The IP address of the client, often defaulted to ::1 for localhost. |
overwrite | boolean, optional | If set to true, this will overwrite an existing image with the same imageId. |
Response
200
400
404
500
//Returns the details of the uploaded image, including the public URL and metadata.
//If the request contains invalid parameters or if the image format is unsupported.
//If the image specified by imageId cannot be found or is invalid.
//The server encountered an error when processing the request.