PlanDocket

Categories

Business+

Manage participant categories.

Required scopes: categories
Access level: GET categories:read POST / PUT / PATCH / DELETE categories:write About access levels

Endpoints

GET /api/v1/categories

List all categories

GET /api/v1/categories/{id}

Retrieve a single category

POST /api/v1/categories

Create a new category

PUT/PATCH /api/v1/categories/{id}

Update a category

DELETE /api/v1/categories/{id}

Delete a category

Query Parameters

Parameter Description
hierarchical Return the complete category tree, unpaginated (1); without it the flat list is paginated (page, per_page)
page Page number (default: 1)
per_page Results per page (default: 25, max. 100)

Request Schema

Parameter Type Required Description
title string Yes Category name (required)
category_key string No Unique key: lowercase letters, digits, "_" and "-", max. 100 characters (auto-generated if omitted). When it is changed via PUT/PATCH, all references (forms, sections, fields, services, etc.) are switched to the new key; on delete the key is removed from these restrictions (a record with no category left then applies to all categories). A key that is already taken returns 422
parent_category_id integer No Parent category ID for nesting
content string No Category description or content
event_keys array No Array of event keys to associate
is_visible boolean No Whether the category is visible (default: true)
applicant_visibility string No Visibility for applicants (selectable, container, admin_only)
account_access_enabled boolean No Whether the category is available in the account portal (default: true)
sort_order integer No Display order (default: 0)

Response Schema

Field Type
id integer
category_key string|null
title string
content string|null
parent_category_id integer
event_keys array|null
is_visible boolean
applicant_visibility string
account_access_enabled boolean
sort_order integer
level integer|null
created_at string
updated_at string

Code Examples

curl -X GET "https://your-tenant.plandocket.com/api/v1/categories" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://your-tenant.plandocket.com';

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $baseUrl . '/api/v1/categories',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . $apiKey,
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://your-tenant.plandocket.com';

const response = await fetch(`${baseUrl}/api/v1/categories`, {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
  },
});

const data = await response.json();
console.log(data);
import requests

api_key = 'YOUR_API_KEY'
base_url = 'https://your-tenant.plandocket.com'

headers = {
    'Authorization': f'Bearer {api_key}',
}

response = requests.get(f'{base_url}/api/v1/categories', headers=headers)
data = response.json()
print(data)

Sample Response

200 OK
{
    "data": [
        {
            "id": 1,
            "category_key": "string",
            "title": "string",
            "content": "string",
            "parent_category_id": 1,
            "event_keys": [],
            "is_visible": true,
            "applicant_visibility": "string",
            "account_access_enabled": true,
            "sort_order": 1,
            "level": 1,
            "created_at": "2026-01-15T10:00:00+01:00",
            "updated_at": "2026-01-15T10:00:00+01:00"
        }
    ],
    "meta": {
        "current_page": 1,
        "per_page": 25,
        "total": 1,
        "total_pages": 1
    }
}