List Types
curl --request GET \
--url https://api.legitmark.com/api/v2/types \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/types"
req, _ := http.NewRequest("GET", 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))
}{
"message": "Types fetched successfully",
"category": "SUCCESS",
"data": [
{
"uuid": "95e42d6b-7c4f-11ef-a623-02595575faeb",
"name": "Crossbody",
"active": true,
"sides": [],
"media": "https://cdn.legitmark.com/types/95e42d6b-7c4f-11ef-a623-02595575faeb.png",
"feature": false,
"ordinal": 0,
"created_at": "2024-09-26T20:43:23.000Z",
"updated_at": "2026-01-15T03:48:34.000Z"
}
],
"rc_hit": true,
"metadata": {
"total_count": 45,
"page_number": 1,
"total_pages": 3,
"page_size": 20
}
}Taxonomy
List Types
Get all available types for item classification with enhanced filtering.
GET
/
api
/
v2
/
types
List Types
curl --request GET \
--url https://api.legitmark.com/api/v2/types \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/types"
req, _ := http.NewRequest("GET", 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))
}{
"message": "Types fetched successfully",
"category": "SUCCESS",
"data": [
{
"uuid": "95e42d6b-7c4f-11ef-a623-02595575faeb",
"name": "Crossbody",
"active": true,
"sides": [],
"media": "https://cdn.legitmark.com/types/95e42d6b-7c4f-11ef-a623-02595575faeb.png",
"feature": false,
"ordinal": 0,
"created_at": "2024-09-26T20:43:23.000Z",
"updated_at": "2026-01-15T03:48:34.000Z"
}
],
"rc_hit": true,
"metadata": {
"total_count": 45,
"page_number": 1,
"total_pages": 3,
"page_size": 20
}
}Authorizations
Bearer token authentication. Use your API key in the format: Bearer leo_xxxxxxxx
Query Parameters
Number of results per page
Required range:
1 <= x <= 100Page number
Required range:
x >= 1Search term for type names
Filter to only active types
Response
200 - application/json
Types retrieved successfully
Example:
"Types fetched successfully"
Available options:
SUCCESS Example:
"SUCCESS"
Indicates if the response was served from cache
Example:
false