# GET /v1/capabilities/declarative - List persisted declarative resources.

Source: <https://everruns.com/docs/api/operations/list_declarative_capabilities/>

GET

/v1/capabilities/declarative

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/capabilities/declarative';
const options = {method: 'GET'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url https://app.everruns.com/api/v1/capabilities/declarative
```

* Production APIapp.everruns.com/api/v1/capabilities/declarative

## Parameters

### Query Parameters

**search**

string

Search by unique name, display name, or description

**include\_archived**

boolean

Include archived declarative capabilities

## Responses

### 200

Persisted declarative capability resources

Media typeapplication/json

Response wrapper for list endpoints. All list endpoints return responses wrapped in a `data` field.

object

**data**

required

Array of items returned by the list operation.

Array

Wrapper that adds API and UI links to a serialized resource.

Uses `self_url` (not `url`) for the API link to avoid collision with resources that already have a `url` field (e.g. McpServer). The `allowed_actions` array carries state-aware hypermedia links — empty (and omitted from the wire shape) until the underlying resource opts into the convention by overriding `ResourceUrlable::allowed_actions`.

object

**archived\_at**

Timestamp when this resource was archived, if any (RFC 3339).

string | null format: date-time

**capability\_id**

required

Runtime capability reference. Agents and harnesses may use this or the plain unique name.

string

**created\_at**

required

Timestamp when this resource was created (RFC 3339).

string format: date-time

**definition**

required

Declarative capability payload: system prompt, skills, starter files, MCP servers, and metadata.

object

**definition\_error**

Why the stored definition could not be parsed, when it could not be.

Present only for a corrupt row. The capability keeps its identity columns so a surface can name what is broken, but `definition` is the inert default and `definition.status` reports `retired`, so nothing reads it as a usable capability.

string | null

**deleted\_at**

Timestamp when this resource was soft-deleted, if any (RFC 3339).

string | null format: date-time

**description**

required

Short summary shown in pickers, search results, and API listings.

string

**display\_name**

Human-facing label shown in the UI. Defaults to `name` when omitted.

string | null

**id**

required

Public resource ID for this persisted declarative capability.

string

**name**

required

Stable unique name used in capability refs. Lowercase letters, numbers, and underscores.

string

**status**

required

Lifecycle state for the resource: active, disabled, archived, or deleted.

string

**updated\_at**

required

Timestamp when this resource was last updated (RFC 3339).

string format: date-time

**allowed\_actions**

State-aware hypermedia actions the caller can take on this resource next (e.g. `cancel`, `events`, `update`). Omitted from the wire shape when empty so resources that haven’t opted into the convention don’t grow their payloads.

Array\<object>

Agent-actionable link describing a follow-up the caller can take. Used in two contexts:

* **Error recovery** — `ErrorResponse.allowed_actions` carries `rel`s like `retry`, `retry-later`, `unarchive`, `get-existing` so the agent knows the right next call after a 4xx/429.
* **Entity hypermedia** — `WithUrls<T>.allowed_actions` carries state-aware `rel`s like `cancel`, `events`, `self`, `update` on the entity itself so the agent can follow links instead of reconstructing routes from prose.

The shape is intentionally identical across both contexts; the closed `rel` vocabulary distinguishes them.

object

**hint**

Short, agent-readable hint (e.g. “Shorten ‘name’ to <= 200 chars.”, “Cancel the active turn for this session.”).

string | null

**href**

Absolute (preferred) or relative URL the caller may invoke directly. **Always present on entity hypermedia actions** (`WithUrls<T>.allowed_actions`); **optional on error-recovery actions** (`ErrorResponse.allowed_actions`) where the matching `operation_id` is enough and the URI is implicit from the failed call.

string | null

**method**

HTTP method to use against `href`. Required for entity hypermedia actions; usually omitted on error-recovery actions where the same operation is retried with its original method.

string | null

**operation\_id**

OpenAPI `operationId` the caller should invoke. Lets an MCP client resolve the call without parsing `href`.

string | null

**rel**

required

Link relation describing the action. Examples: `self`, `cancel`, `pause`, `resume`, `events`, `retry`, `retry-later`, `unarchive`, `get-existing`, `delete`, `update`.

string

**schema\_ref**

OpenAPI `$ref` to the request-body schema, when the action takes one (e.g. `#/components/schemas/UpdateSessionRequest`). Lets a tool-calling agent fetch the input shape without scanning the whole spec.

string | null

**self\_url**

required

Full API endpoint URL for this resource.

string

**ui\_link**

required

Alias for `view_url`, used by command and MCP outputs.

string

**view\_url**

required

Full UI URL for viewing this resource.

string

##### Example

```json
{
  "data": [
    {
      "capability_id": "declarative:research_pack",
      "definition_error": "missing field `acts_as` at line 1 column 84",
      "description": "Adds research instructions, starter files, and MCP tools.",
      "display_name": "Research Pack",
      "id": "cap_01933b5a000070008000000000000001",
      "name": "research_pack",
      "status": "active",
      "allowed_actions": [
        {
          "method": "POST"
        }
      ]
    }
  ]
}
```