---
title: "POST /txt-records/search"
method: POST
path: "/txt-records/search"
tags: ["Text Records"]
---

# POST /txt-records/search

`POST /txt-records/search`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/txt-records/search`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/txt-records/search/post.ts> (a function with typed inputs; its response is checked against the schema)

Search txt records

## Query parameters

- `source_id` integer
- `offset` integer
- `limit` integer
- `sortby` string
- `sortorder` boolean

## Request body

- object[]: Applied filters, txt records do not support complex queries
  - `column` string
  - `type` string
  - `value` string

## Response `200`

OK

- object
  - `total` integer
  - `txt_records` object[]
    - `id` string
    - `hostname` string
    - `value` string

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
