Get The Template List
To get the Template Background List, you can get it through this curl command.
curl --location 'https://dev-api.katalis.ai/service/v1/image-background'
Here's a breakdown of the command:
-
curl: This is the command line tool used to make HTTP requests. -
--location: This flag tellscurlto follow any redirects. This is useful if the URL you are requesting returns a 3xx status code, indicating that the resource has moved to a different URL. -
'https://dev-api.katalis.ai/service/v1/image-background': This is the URL that the request is being sent to. It's the endpoint in the Katalis AI API that returns the list of image backgrounds.
Here's the response example:
{
"message": "Success",
"data": [
{
"category": "Flat",
"background": [
{
"id": 1,
"name": "white",
"thumbnail": "FFFFFF"
},
{
"id": 2,
"name": "black",
"thumbnail": "000000"
}
]
},
{
"category": "Home",
"background": [
{
"id": 3,
"name": "luxurious",
"thumbnail": "https://thumbnail.url.com/luxurious1"
},
{
"id": 4,
"name": "modern",
"thumbnail": "https://thumbnail.url.com/bedroom1"
}
]
}
]
}