---
title: "Get Static Assets"
method: GET
path: "/projects/{project_id}/rules/static_assets"
tags: ["Rules"]
---

# Get Static Assets

`GET /projects/{project_id}/rules/static_assets`

Gets static assets for your project using the path parameter `project_id`. The response will include a list of static assets with their detail.
The returned data can be filtered by `asset`, `static_type`, `membership_type`, `last_applied_before` and `last_applied_after`, if not provided, all assets will be returned.

In case the number of parameters exceeds the limit, default `100` and maximum `1000`, scrolling will be used to retrieve the next page of results.
The `cursor` are returned in the `meta.pagination` field of the response, which can be used to retrieve the next page of results.
If the `cursor` is `None`, there are no more pages available to scroll.

## Path parameters

- `project_id` string, required — The ID of the project

## Query parameters

- `asset` string — Filter by asset (exact string match)
- `static_type` 'ipv4' | 'hostname' | 'wildcard'
- `membership_type` 'include' | 'exclude'
- `last_applied_before` string, date-time — Filter by last applied before this date (`YYYY-MM-DDTHH:MM:SS`)
- `last_applied_after` string, date-time — Filter by last applied after this date (`YYYY-MM-DDTHH:MM:SS`)
- `include_deleted` boolean — Include records that has been deleted from project. Deleted records will contain `deleted_at` value key
- `limit` integer — Maximum number of results to return
- `cursor` string, nullable — Base 64 string for pagination included in `meta.pagination.next_cursor` field in previous response. If provided, will return the next page of results

## Response `200`

Successful Response

- ApiListResponseStaticAsset
  - `data` StaticAsset[], required
    - `asset` string, required
    - `membership_type` 'include' | 'exclude', required
    - `static_type` 'ipv4' | 'hostname' | 'wildcard', required
    - `global_state` AssetState, required
      - `added` string, nullable — Description of added asset
      - `errors` string[]
    - `project_state` AssetState, required
      - `added` string, nullable — Description of added asset
      - `errors` string[]
    - `inserted_at` string, date-time, nullable — When the asset was added
    - `last_applied_at` string, date-time, nullable — When the asset was last applied
    - `delete_requested_at` string, date-time, nullable — When the asset was requested to be deleted from project
    - `deleted_at` string, date-time, nullable — When the asset was deleted from the project
  - `meta` ApiMeta, required
    - `params` object, nullable
    - `counts` ApiCount
      - `total` integer, nullable
      - `returned` integer, required
    - `pagination` PaginationResponse
      - `next_cursor` string, nullable — An opaque value which should be passed as the `cursor` to retrieve the next page of results. If None or not present there are no remaining pages. This value should not be interpreted by the client.
      - `limit` integer — The number of items returned
      - `total` integer, nullable
      - `sort` array[], nullable — The sort order of the results
        - unknown[]
          - unknown
    - `request_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/securitytrails/apis/securitytrails-api.md) · [All operations](https://skmtc.dev/securitytrails/apis/securitytrails-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/securitytrails/securitytrails-api/revisions/13cd180c20ab/schema)
