Skip to content

GET /api/v3/fonts/my

Summary

GET /fonts/my

Description

Get a list of fonts owned by the authenticated user

Tags: creatives

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-********-****-****-****-************

Request Body

Content Type: application/json

Schema

Type: object

Properties:

  • query (string)
  • page (integer): Must be at least 1.
  • per_page (integer): Must be at least 1. Must not be greater than 100.

Responses

Response: 200

Content Type: application/json

Schema

Type: object

Properties:

  • success (boolean)
  • 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)

  • first_page_url (string)

  • from (integer)
  • last_page (integer)
  • last_page_url (string)
  • links (array)

    • Array items: object Type: object

    Properties:

    • url (string)
    • label (string)
    • active (boolean)
  • next_page_url (string)

  • path (string)
  • per_page (integer)
  • prev_page_url (string)
  • to (integer)
  • total (integer)
Example Response
{
    "success": true,
    "fonts": {
        "current_page": 1,
        "data": [
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cd92837_e6261abd21e20a4d7b3b.ttf"
                },
                "lcuid": "LCUID-LFT-7abe645e-45e4-4fd7-97d6-618ed6eb089d"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cd9f77e_05f20ef34f16d9654167.ttf"
                },
                "lcuid": "LCUID-LFT-3587418c-1f77-44a2-98a9-51d0e1aa8298"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cda7e8f_76808ae928b59880599f.ttf"
                },
                "lcuid": "LCUID-LFT-6f688304-4188-4761-babf-cd9d6fd05d1b"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cdb1b15_e3ba01fd91c4b326079d.ttf"
                },
                "lcuid": "LCUID-LFT-bc687a76-b3d3-4e9e-85db-6057e81a433e"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cdb9282_c6fe60036384315b6040.ttf"
                },
                "lcuid": "LCUID-LFT-d464798c-1331-4d92-bf08-2211ba00d3a2"
            }
        ],
        "first_page_url": "http://localhost:8080/api/v3/fonts/my?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://localhost:8080/api/v3/fonts/my?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://localhost:8080/api/v3/fonts/my?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://localhost:8080/api/v3/fonts/my",
        "per_page": 25,
        "prev_page_url": null,
        "to": 5,
        "total": 5
    }
}

Example Implementations

Bash (cURL)

curl --request GET \
    --get "https://api.lucit.app/api/v3/fonts/my" \
    --header "Authorization: Bearer {AuthToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "AppIdV3: LCUID-LAP-********-****-****-****-************" \
    --data "{
    \"query\": \"aliquid\",
    \"page\": 72,
    \"per_page\": 3
}"

JavaScript (Fetch API)

const url = new URL(
    "https://api.lucit.app/api/v3/fonts/my"
);

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

let body = {
    "query": "aliquid",
    "page": 72,
    "per_page": 3
};

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

PHP (Guzzle)

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

Python (Requests)

import requests
import json

url = 'https://api.lucit.app/api/v3/fonts/my'
payload = {
    "query": "aliquid",
    "page": 72,
    "per_page": 3
}
headers = {
  'Authorization': 'Bearer {AuthToken}',
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'AppIdV3': 'LCUID-LAP-********-****-****-****-************'
}

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

Example Responses

200 Response

{
    "success": true,
    "fonts": {
        "current_page": 1,
        "data": [
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cd92837_e6261abd21e20a4d7b3b.ttf"
                },
                "lcuid": "LCUID-LFT-7abe645e-45e4-4fd7-97d6-618ed6eb089d"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cd9f77e_05f20ef34f16d9654167.ttf"
                },
                "lcuid": "LCUID-LFT-3587418c-1f77-44a2-98a9-51d0e1aa8298"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cda7e8f_76808ae928b59880599f.ttf"
                },
                "lcuid": "LCUID-LFT-6f688304-4188-4761-babf-cd9d6fd05d1b"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cdb1b15_e3ba01fd91c4b326079d.ttf"
                },
                "lcuid": "LCUID-LFT-bc687a76-b3d3-4e9e-85db-6057e81a433e"
            },
            {
                "name": "DINNextLTPro-MediumCond",
                "status": 1,
                "public": false,
                "font_type": "ttf",
                "unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
                "options": {
                    "_init": [],
                    "public_url": "http://localhost:8080/storage/12474/fnt_698236cdb9282_c6fe60036384315b6040.ttf"
                },
                "lcuid": "LCUID-LFT-d464798c-1331-4d92-bf08-2211ba00d3a2"
            }
        ],
        "first_page_url": "http://localhost:8080/api/v3/fonts/my?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://localhost:8080/api/v3/fonts/my?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://localhost:8080/api/v3/fonts/my?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://localhost:8080/api/v3/fonts/my",
        "per_page": 25,
        "prev_page_url": null,
        "to": 5,
        "total": 5
    }
}

← Back to fonts index | Back to main index