Get All Templates
GET
https://api.slidespeak.co/api/v1/presentation/templates
Returns a list of all available presentation templates, including their names and preview images. Use this endpoint to discover default templates that can be applied when generating new presentations. Helpful for building template selectors or providing users with template options in your application.
Headers
Section titled “Headers” Content-Type: string
application/json
X-API-Key: string
The API key to use for the request.
<YOUR_API_KEY>
Code Examples
Section titled “Code Examples”curl -X GET "https://api.slidespeak.co/api/v1/presentation/templates" -H "Content-Type: application/json" -H "x-api-key: YOUR_API_KEY"
fetch('https://api.slidespeak.co/api/v1/presentation/templates', { method: 'GET', headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_API_KEY' }}) .then(response => response.json()) .then(data => { console.log('Templates:', data); }) .catch(error => { console.error('Error:', error); });
import requests
url = "https://api.slidespeak.co/api/v1/presentation/templates"headers = { "Content-Type": "application/json", "x-api-key": "YOUR_API_KEY" }
response = requests.get(url, headers=headers)print(response.json())
<?phprequire 'vendor/autoload.php';
use GuzzleHttpClient;
$client = new Client();
$response = $client->get('https://api.slidespeak.co/api/v1/presentation/templates', [ 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => 'YOUR_API_KEY' ]]);
$body = $response->getBody();$data = json_decode($body, true);
print_r($data);
Response
Section titled “Response”[ { "name": "default", "images": { "cover": "https://app.slidespeak.co/images/themes/default-cover.jpg", "content": "https://app.slidespeak.co/images/themes/default-content.jpg" } }, { "name": "gradient", "images": { "cover": "https://app.slidespeak.co/images/themes/gradient-cover.jpg", "content": "https://app.slidespeak.co/images/themes/gradient-content.jpg" } }, ...]