Skip to main content

Links

Custom links are extra links shown in the client area of the Panel. These endpoints list, create, update and delete them.

GET /api/application/links

Admin permission: links.read

Returns a paginated list of custom links.

curl "https://panel.example.com/api/application/links?sort=name" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"

Query parameters​

ParameterTypeRequiredDescription
per_pageintegerNo1 to 100. Defaults to 20. See pagination.
pageintegerNoPage number.
filter[id]integerNoExact match on the link ID.
filter[name]stringNoPartial match on the name.
filter[url]stringNoPartial match on the URL.
filter[visible]stringNoPartial match on the visible flag (1 or 0).
sortstringNoid, visible or name, optionally prefixed with -. See filtering and sorting.

Response​

200 OK

{
"object": "list",
"data": [
{
"object": "custom_links",
"attributes": {
"id": 3,
"name": "Status page",
"url": "https://status.example.com",
"visible": true,
"created_at": "2026-11-26T10:15:00+00:00",
"updated_at": "2026-11-26T10:15:00+00:00"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 20,
"current_page": 1,
"total_pages": 1,
"links": []
}
}
}
AttributeTypeDescription
idintegerLink ID.
namestringLink text.
urlstringLink target.
visiblebooleanWhether the link is shown.
created_atstringISO 8601 date.
updated_atstringISO 8601 date.

Note that the resource name is custom_links (plural).

POST /api/application/links

Admin permission: links.create

Creates a custom link.

Request body​

JSON body.

FieldTypeRequiredDescription
namestringYesAt least 3 characters. No maximum is checked.
urlstringYesMust be a valid URL.
visiblebooleanYesShow the link. Accepts true, false, 1, 0, "1" and "0".

Logs the activity event admin:link:create with the link as the subject and name and url properties.

Response​

200 OK

{
"object": "custom_links",
"attributes": {
"id": 3,
"name": "Status page",
"url": "https://status.example.com",
"visible": true,
"created_at": "2026-11-26T10:15:00+00:00",
"updated_at": "2026-11-26T10:15:00+00:00"
}
}

PATCH /api/application/links/{id}

Admin permission: links.update

Replaces a link's name, URL and visibility. Although the method is PATCH, all three fields are required.

Logs the activity event admin:link:update with the link as the subject, and name and url properties in the form <old> => <new>.

Path parameters​

ParameterDescription
idThe numeric link ID. A non-numeric value returns 404.

Request body​

JSON body. The same fields and rules as Create a link.

Response​

200 OK, with the updated link in the same format as Create a link.

Errors​

StatusWhen
404No link has this ID. The body is validated first, so an invalid body returns 422 even for an unknown ID.

DELETE /api/application/links/{id}

Admin permission: links.delete

Deletes a custom link.

Path parameters​

ParameterDescription
idThe numeric link ID. A non-numeric value returns 404.

Logs the activity event admin:link:delete with name and url properties.

Response​

204 No Content

Errors​

StatusWhen
404No link has this ID.