Skip to main content
GET
/
api
/
v1
/
customers
/
{id}
/
resources
JavaScript
import Stigg from '@stigg/typescript';

const client = new Stigg({
  apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const customerListResourcesResponse of client.v1.customers.listResources('x')) {
  console.log(customerListResourcesResponse.id);
}
{
  "data": [
    {
      "id": "resource-abc123",
      "createdAt": "2026-02-18T11:05:34.970Z",
      "updatedAt": "2026-02-18T11:05:34.970Z"
    }
  ],
  "pagination": {
    "next": "c9b0a382-5b7d-4d32-9f62-8c4e1a7b3d9f",
    "prev": "a1d4e8f2-6c3b-4a9e-b5f7-2d8c9e0f1a3b"
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-API-KEY
string
required

Server API Key

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Query Parameters

after
string<uuid>

Return items that come after this cursor

before
string<uuid>

Return items that come before this cursor

limit
integer
default:20

Maximum number of items to return

Required range: 1 <= x <= 100

Response

OK

Response list object

data
CustomerResource · object[]
required
pagination
object
required

Pagination metadata including cursors for navigating through results