Category API

Endpoints related to Categories.

Get all Categories

get

Get all the categories saved on the server.

Responses
200

Categories

application/json
get
/categories
200

Categories

πŸ”‘ Create a Category

put

Create a new Category.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Body
namestringRequired

Name of the Category.

searchstringOptional

Matching predicate, if creating a Dynamic Category.

pinnedbooleanOptional

Add this parameter if you want the created category to be pinned.

Responses
200

Success response

application/json
put
/categories
get

Retrieves the ID of the category currently linked to the bookmark feature. Returns an empty string if no category is linked.

Responses
200

Link

application/json
get
/categories/bookmark_link
200

Link

delete

Disables the bookmark feature by removing the link to any category. Returns the ID of the previously linked category.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Responses
200

Success response

application/json
delete
/categories/bookmark_link
200

Success response

put

Links the bookmark feature to the specified static category. This determines which category archives are added to when using the bookmark button.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Path parameters
idstring Β· min: 14 Β· max: 14Required
Responses
200

Success response

application/json
put
/categories/bookmark_link/{id}

Get a single Category

get

Get the details of the specified category ID.

Path parameters
idstring Β· min: 14 Β· max: 14Required
Responses
200

Category

application/json
get
/categories/{id}
200

Category

πŸ”‘ Update Category

put

Modify a Category.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Body
namestringOptional

New name of the Category

searchstringOptional

Predicate. Trying to add a predicate to a category that already contains Archives will give you an error.

pinnedbooleanOptional

Add this argument to pin the Category. If you don't, the category will be unpinned on update.

Responses
200

Success response

application/json
put
/categories/{id}

πŸ”‘ Delete Category

delete
Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Responses
200

Success response

application/json
delete
/categories/{id}

πŸ”‘ Add an Archive to a Category

put

Adds the specified Archive ID (see Archive API) to the given Category.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Path parameters
idstring Β· min: 14 Β· max: 14Required

Archive ID to add.

archivestring Β· min: 40 Β· max: 40Required
Responses
200

Result

application/json
put
/categories/{id}/{archive}

πŸ”‘ Remove an Archive from a Category

delete

Remove an Archive ID from a Category.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Path parameters
idstring Β· min: 14 Β· max: 14Required

Archive ID to remove.

archivestring Β· min: 40 Β· max: 40Required
Responses
200

Result

application/json
delete
/categories/{id}/{archive}

Last updated