SDK reference · Python SDK

prov.account.test_texts

prov.account.test_texts in Python SDK. The recorded test texts, newest first; request_id narrows the list to one request.

Signature

prov.account.test_texts(request_id: Optional[str] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> Any

Parameters

request_idOptional[str]
limitOptional[int]
cursorOptional[str]

Request fields

request_idstringquery
Only the texts of this request (a capture request, an approval, a cart approval or an approver invite).
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back to get the next page.

Returns

Any The recorded texts.

HTTP operation

GET /v1/account/test_texts: List your test texts

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/capture_requests`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "case_id": "CLM-TEST-TEXT",
    "session_type": "id",
    "contact": {
      "phone": "+12025550101"
    }
  }),
})).json();
const ttRequest = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/test_texts?request_id=${ttRequest}`, {
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.