X Enterprises
fastify-x-signwell

xsignwell.templates.list

List all SignWell templates with optional page-based pagination.

xsignwell.templates.list

List all SignWell templates with optional page-based pagination.

Signature

fastify.xsignwell.templates.list(
  params?: { page?: number; limit?: number }
): Promise<Object>

Params

NameTypeRequiredDescription
params.pagenumberNoPage number.
params.limitnumberNoResults per page.

Returns

A paginated list of template summaries from the SignWell API.

Throws

  • Re-throws SignWell API errors with statusCode and signwellError properties.

Examples

List templates with pagination

const result = await fastify.xsignwell.templates.list({ limit: 20 });

for (const tmpl of result.templates) {
  console.log(tmpl.id, tmpl.name);
}

List first page with default page size

const result = await fastify.xsignwell.templates.list();

See also


AI Context

package: "@xenterprises/fastify-xsignwell"
method: fastify.xsignwell.templates.list(params?)
use-when: List all SignWell templates with optional page-based pagination to browse available templates
params: page (optional), limit (optional)
returns: Paginated list of template summaries
Copyright © 2026