List Images
Send a GET request to this endpoint to retrieve a list of generated images.
ℹ️
You will need to authenticate to use this API. See authentication.
Request
GET https://api.ojo.so/v1/image
Query Parameters
Parameter | Type | Description |
---|---|---|
page | number | (Optional) Page number for pagination (default: 1) |
pageSize | number | (Optional) Number of items per page (default: 10) |
sort | string | (Optional) Sort order: 'asc' or 'desc' (default: 'desc') |
curl --request GET \
--url 'https://api.ojo.so/v1/image?page=1&pageSize=10&sort=desc' \
--header 'Authorization: Bearer <API Key>'
Response
Successfully retrieved the list of images.
{
"items": [
{
"id": "image-uuid-1",
"imageUrl": "https://example.com/path/to/image1.png",
"createdAt": "2023-08-29T12:34:56Z"
},
{
"id": "image-uuid-2",
"imageUrl": "https://example.com/path/to/image2.png",
"createdAt": "2023-08-28T10:11:12Z"
}
],
"totalItems": 48,
"totalPages": 5,
"currentPage": 1,
"pageSize": 10
}