# prov.account.textConsentSettings

prov.account.textConsentSettings in Node SDK. How consent to your texts is held, your statement for everyone, the counts and the wording in force.

## Signature

```ts
prov.account.textConsentSettings(): Promise<TextConsentSettings>
```

## Returns

`Promise<TextConsentSettings>`

## HTTP operation

[`GET /v1/account/text_consent`](https://provenanceauth.com/docs/api/account.md#get-v1-account-text-consent): Retrieve consent to text settings

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`text_consents_unavailable`](https://provenanceauth.com/docs/platform/errors.md#text_consents_unavailable)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/text_consent`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/text_consent", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```
