Skip to main content
GET
/
snippets
/
categories
List all snippet categories
curl --request GET \
  --url https://api.getfernand.com/snippets/categories \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": 5,
    "name": "Customer Support",
    "sort": 1,
    "parent_id": 2
  }
]

Documentation Index

Fetch the complete documentation index at: https://developers.getfernand.com/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves all snippet categories, ordered by their sort position. Categories can be nested with parent-child relationships.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Response

200 - application/json

Categories retrieved successfully.

id
integer<int32>
required

Unique identifier for the snippet category

Example:

5

name
string
required

Name of the category

Maximum string length: 250
Example:

"Customer Support"

sort
integer<int32>
required

Sort order within the parent category (1-based)

Example:

1

parent_id
integer<int32> | null

ID of the parent category (null for root-level categories)

Example:

2