---
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`

## Request

- Base URL: `https://api.securitytrails.com/v2`
- URL: `https://api.securitytrails.com/v2/projects/{project_id}/rules/static_assets`
- Auth: API key in header `apikey`

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

- `static_type` 'ipv4' | 'hostname' | 'wildcard'
- `membership_type` 'include' | 'exclude'
- `last_applied_before` string, date-time, nullable: Filter by last applied before this date (`YYYY-MM-DDTHH:MM:SS`)
- `last_applied_after` string, date-time, nullable: 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
- `asset` string, nullable: Filter by asset (exact string match)

## 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 nextpage of results
      - `limit` integer, nullable: 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/recordedfuture/apis/attack-surface-intelligence.md) - [All operations](https://skmtc.dev/recordedfuture/apis/attack-surface-intelligence/llms.txt) - [OpenAPI document](https://skmtc.dev/recordedfuture/apis/attack-surface-intelligence/revisions/7fd5c7304957?raw)
