SDK reference · Node SDK

prov.account.testTexts

prov.account.testTexts in Node SDK. Slice 3: the texts the test provider recorded in the sandbox, newest first; requestId narrows to one request.

Signature

prov.account.testTexts(params?: { requestId?: string; limit?: number; cursor?: string }): Promise<TestTextList>

Parameters

params{ requestId?: string; limit?: number; cursor?: string }

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

Promise<TestTextList> 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.