---
title: "List a site's platform tools"
url: https://docs.corefinity.com/api/reference/sites/list-site-functions
type: endpoint
last_updated: 2026-11-13
feature: functions
related:
  - https://docs.corefinity.com/guides/sites/create-and-manage/platform-tools.md
  - https://docs.corefinity.com/mcp/tools/corestack_function_catalogue_list.md
---
# List a site's platform tools

Answers the tools the site's platform offers, such as clearing a cache, with whether each can run now and the inputs it takes.

```http
GET /api/corestack/sites/{site}/functions
```

- Scope: `read`
- Rate limit: 60 a minute
- Try it in the console: on

## Path parameters

- `site` (integer, required): The id of a site row. A website's production site and each of its environments has its own id. Digits only.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/sites/1042/functions \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/sites/1042/functions');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/functions', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/corestack/sites/1042/functions",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The tools.

```json
{
  "functions": [
    {
      "availability": {
        "available": true,
        "reason": null
      },
      "confirm": false,
      "description": "Clears the WordPress object cache. Pages rebuild their cache on the next visit.",
      "effect": "none",
      "group": "cache",
      "group_label": "Cache",
      "inputs": [],
      "key": "flush_cache",
      "label": "Flush cache",
      "last": {
        "blocked_until_verified": false,
        "finished_at": "2026-11-19T09:30:01Z",
        "id": 5120,
        "kind": "flush_cache",
        "label": "Flush cache",
        "requested_by": {
          "id": 2012,
          "name": "Daniel Reyes"
        },
        "status": "succeeded",
        "status_label": "Done"
      },
      "limits": {
        "per_hour": null
      },
      "sync": false
    },
    {
      "availability": {
        "available": true,
        "reason": null
      },
      "confirm": false,
      "description": "Clears PHP's compiled-code cache with a graceful PHP reload. Requests in progress finish first.",
      "effect": "none",
      "group": "cache",
      "group_label": "Cache",
      "inputs": [],
      "key": "reset_opcache",
      "label": "Reset OPcache",
      "last": null,
      "limits": {
        "per_hour": null
      },
      "sync": false
    }
  ],
  "groups": [
    {
      "key": "cache",
      "label": "Cache"
    }
  ],
  "maintenance": {
    "by": null,
    "bypass_corefinity": 1,
    "bypass_ips": [],
    "command": null,
    "enabled": false,
    "page": "default",
    "retry_after_seconds": 300,
    "since": null
  },
  "platform": "wordpress",
  "running": null
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), or your account has no company that can use Managed Clusters, for example because the company was closed (`company_not_enabled`). For Managed Clusters routes that do not ask for two-factor authentication.

```json
{
  "code": "scope_required",
  "message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
  "reason": "scope_required",
  "scope": "destructive"
}
```

### 404 The id does not exist or is something you cannot see, or the feature is not on for your company (`feature_off`).

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 409 The site is deleted and waiting to be purged (`deleted`), or still being created (`provisioning`).

```json
{
  "code": "deleted",
  "message": "This site is deleted and waiting to be purged. Restore it first.",
  "reason": "deleted"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 409 | `deleted` | The site, environment or copy has been deleted, or is being deleted. Nothing can be changed on it. Restore a deleted site first if it can still be restored. |
| 409 | `provisioning` | The site is still being created. Try again in a few minutes. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Platform tools](https://docs.corefinity.com/guides/sites/create-and-manage/platform-tools.md)
- MCP tool: [`corestack_function_catalogue_list`](https://docs.corefinity.com/mcp/tools/corestack_function_catalogue_list.md)
