Create Google Slides FlashDocs Template/Library
curl --request POST \
--url https://api.flashdocs.ai/v1/documents/google \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.flashdocs.ai/v1/documents/google"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.flashdocs.ai/v1/documents/google', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashdocs.ai/v1/documents/google",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.flashdocs.ai/v1/documents/google"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashdocs.ai/v1/documents/google")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashdocs.ai/v1/documents/google")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Document created successfully",
"success": true,
"document_id": "abc-defghi-1234-5"
}{
"message": "Google link is not valid. Make sure it matches the pattern: https://docs.google.com/presentation/d/{document_id}",
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"success": false,
"message": "Try again: <error details>"
}FlashDocs Document Configuration
Create Google Slides FlashDocs Template/Library
Upload a Google Slides link to create a template or library within your organization.
- Template: Ideal for creating reusable slide formats.
- Library: Suitable for comprehensive collections of slides.
Processing Time: Depending on the number of slides, processing may take a few minutes (e.g., 50 slides may take approximately 3 minutes). If upload speed is a concern, please contact us to discuss optimization options.
Text Box Handling:
reset_text_boxes=false: Automatically identifies and captures text placeholders enclosed in brackets ([,]).resize_text_boxes=false: Resizes text boxes to fit the text (only increases heights, does not shrink).
POST
/
v1
/
documents
/
google
Create Google Slides FlashDocs Template/Library
curl --request POST \
--url https://api.flashdocs.ai/v1/documents/google \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.flashdocs.ai/v1/documents/google"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.flashdocs.ai/v1/documents/google', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashdocs.ai/v1/documents/google",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.flashdocs.ai/v1/documents/google"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashdocs.ai/v1/documents/google")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashdocs.ai/v1/documents/google")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Document created successfully",
"success": true,
"document_id": "abc-defghi-1234-5"
}{
"message": "Google link is not valid. Make sure it matches the pattern: https://docs.google.com/presentation/d/{document_id}",
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"success": false,
"message": "Try again: <error details>"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
The URL link to the Google Slides document you wish to upload.
Specify the type of document to create. Possible values: "template", "library".
Available options:
template, library The name to assign to the uploaded presentation.
A brief description of the presentation.
Determines how text boxes are handled during upload.
- **true**: Converts all text boxes into placeholders.
- **false**: Only identifies and captures text enclosed in brackets (`[`, `]`) as placeholders.
Determines if bounding boxes of text boxes are resized to fit the text.
- **true**: Resizes all text boxes to fit the text.
- **false**: Keeps the original text box sizes.
Response
Document created successfully