Skip to content

GET /api/v3/drive-templates/fonts/public

Summary

GET /drive-templates/fonts/public

Description

Returns a list of available public fonts that can be used when building a template

Tags: templates

Parameters

Header Parameters

Name Type Required Description Example
Authorization string ✓ Yes Bearer {AuthToken}
Content-Type string ✓ Yes application/json
Accept string ✓ Yes application/json
AppIdV3 string ✓ Yes LCUID-LAP-********-****-****-****-************

Responses

Response: 200

Description: Sample Response

Content Type: application/json

Schema

Type: object

Properties:

  • success (boolean): Indicates if the request was successful
  • fonts (object) Type: object

Properties:

  • current_page (integer)
  • data (array)

    • Array items: object Type: object

    Properties:

    • name (string)
    • status (integer)
    • public (boolean)
    • font_type (string)
    • unique_hash (string)
    • options (object) Type: object

      Properties:

      • _init (array)
      • public_url (string)
    • lcuid (string)

  • from (integer)

  • last_page (integer)
  • links (array)

    • Array items: object Type: object

    Properties:

    • url (string)
    • label (string)
    • active (boolean)
  • per_page (integer)

  • to (integer)
  • total (integer)
Example Response
{
    "success": true,
    "fonts": {
        "current_page": 1,
        "data": [
            {
                "name": "Crp5LV3DNK Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6977854a6857a_f860bb2fc92c007e989c.ttf"
                },
                "lcuid": "LCUID-LFT-47ef9240-1875-4414-97ae-e7285cec48f2"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_693b29cdeb2b8_65dcef54b0d9bcc8c031.ttf"
                },
                "lcuid": "LCUID-LFT-fdaa6b1c-ffc5-4fd6-849f-0502a1738c07"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6972885a50942_bb0c8d7c7c78c0868081.ttf"
                },
                "lcuid": "LCUID-LFT-d24f76bc-b5b5-4661-87f1-2006b755ca48"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_69728880ce9f9_a34cb7862640cece2a09.ttf"
                },
                "lcuid": "LCUID-LFT-a45cb229-0c82-45a5-a692-78837abf18a7"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_697288ab9c85e_e87cfd59d9f335ac66b8.ttf"
                },
                "lcuid": "LCUID-LFT-3f0b857e-7dd2-412e-93d0-7cacbd91cddf"
            },
            {
                "name": "VOaKi2Vx5k Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6977858e66769_8f221a43f91cf4a2fff3.ttf"
                },
                "lcuid": "LCUID-LFT-562e8efe-888f-4f9a-8642-e43c31b80891"
            },
            {
                "name": "xinBac0YOW Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_698224954ef33_a9a9975f65e40892b802.ttf"
                },
                "lcuid": "LCUID-LFT-d7058c93-6afe-4263-9e90-b35173a9fe2c"
            }
        ],
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://localhost:8080/api/v3/drive-templates/fonts/public?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "per_page": 100,
        "to": 7,
        "total": 7
    }
}

Example Implementations

Bash (cURL)

curl --request GET \
    --get "https://api.lucit.app/api/v3/drive-templates/fonts/public" \
    --header "Authorization: Bearer {AuthToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "AppIdV3: LCUID-LAP-********-****-****-****-************"

JavaScript (Fetch API)

const url = new URL(
    "https://api.lucit.app/api/v3/drive-templates/fonts/public"
);

const headers = {
    "Authorization": "Bearer {AuthToken}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "AppIdV3": "LCUID-LAP-********-****-****-****-************",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

PHP (Guzzle)

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.lucit.app/api/v3/drive-templates/fonts/public',
    [
        'headers' => [
            'Authorization' => 'Bearer {AuthToken}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'AppIdV3' => 'LCUID-LAP-********-****-****-****-************',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Python (Requests)

import requests
import json

url = 'https://api.lucit.app/api/v3/drive-templates/fonts/public'
headers = {
  'Authorization': 'Bearer {AuthToken}',
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'AppIdV3': 'LCUID-LAP-********-****-****-****-************'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example Responses

200 Response

{
    "success": true,
    "fonts": {
        "current_page": 1,
        "data": [
            {
                "name": "Crp5LV3DNK Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6977854a6857a_f860bb2fc92c007e989c.ttf"
                },
                "lcuid": "LCUID-LFT-47ef9240-1875-4414-97ae-e7285cec48f2"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_693b29cdeb2b8_65dcef54b0d9bcc8c031.ttf"
                },
                "lcuid": "LCUID-LFT-fdaa6b1c-ffc5-4fd6-849f-0502a1738c07"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6972885a50942_bb0c8d7c7c78c0868081.ttf"
                },
                "lcuid": "LCUID-LFT-d24f76bc-b5b5-4661-87f1-2006b755ca48"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_69728880ce9f9_a34cb7862640cece2a09.ttf"
                },
                "lcuid": "LCUID-LFT-a45cb229-0c82-45a5-a692-78837abf18a7"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_697288ab9c85e_e87cfd59d9f335ac66b8.ttf"
                },
                "lcuid": "LCUID-LFT-3f0b857e-7dd2-412e-93d0-7cacbd91cddf"
            },
            {
                "name": "VOaKi2Vx5k Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_6977858e66769_8f221a43f91cf4a2fff3.ttf"
                },
                "lcuid": "LCUID-LFT-562e8efe-888f-4f9a-8642-e43c31b80891"
            },
            {
                "name": "xinBac0YOW Font",
                "status": 1,
                "public": true,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/13/fnt_698224954ef33_a9a9975f65e40892b802.ttf"
                },
                "lcuid": "LCUID-LFT-d7058c93-6afe-4263-9e90-b35173a9fe2c"
            }
        ],
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://localhost:8080/api/v3/drive-templates/fonts/public?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "per_page": 100,
        "to": 7,
        "total": 7
    }
}

← Back to drive-templates index | Back to main index