SDK reference · Node SDK
prov.account.listTextConsentScreenshots
prov.account.listTextConsentScreenshots in Node SDK. Slice 6: your screenshots of how people agree to your texts (records only), oldest first.
Signature
prov.account.listTextConsentScreenshots(): Promise<{ object: "list"; data: TextConsentScreenshot[]; hasMore: boolean }>Parameters
No parameters.
Returns
Promise<{ object: "list"; data: TextConsentScreenshot[]; hasMore: boolean }> The screenshots.
HTTP operation
GET /v1/account/text_consent/screenshots: List your opt-in screenshots
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/text_consent/screenshots`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/text_consent/screenshots", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()