API ReferenceCustomers
List customers
Returns a paginated list of customers for the authenticated merchant. Customers are created automatically when payments complete, or manually via the API.
Authorization
apiKey AuthorizationBearer <token>
API key authentication for programmatic access. Include your key in the
Authorization header:
Authorization: Bearer bag_live_sk_a1b2c3d4e5f6...Keys are prefixed with bag_live_sk_ (production) or bag_test_sk_
(sandbox). Generate keys from the Bag Dashboard.
In: header
Query Parameters
starting_after?string
Cursor for pagination. Pass the id of the last customer from the previous page.
Format
uuidlimit?integer
Maximum number of customers to return (1-100, default 25).
Default
25Range
1 <= value <= 100Response Body
application/json
application/json
curl -X GET "https://getbags.app/api/customers"{
"status": "success",
"data": [
{
"id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
"email": "alice@example.com",
"name": "Alice Johnson",
"walletAddress": "0xCuStOmEr1234567890abCdEf1234567890aBcDeF",
"country": "US",
"totalSpent": 89.97,
"transactionCount": 3,
"createdAt": "2026-02-15T10:00:00.000Z",
"updatedAt": "2026-03-28T14:22:00.000Z"
}
],
"hasMore": false
}{
"status": "error",
"message": "Invalid or revoked API key",
"code": "UNAUTHORIZED",
"hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}