Secret Keys
Find all Secret Keys
Retrieve a paginated list of Secret Keys
get/secret-keys
Query parameters
sortDirection'ASC' | 'DESC' | 'asc' | 'desc'
Sort direction. Defaults to ASC.
sortBy'id' | 'createdAt' | 'updatedAt'
Field to sort by. Defaults to createdAt.
pagenumber
Page number for offset pagination. Defaults to 1.
pageSizenumber
Number of items per page for offset pagination. Defaults to 10.
limitnumber
Opts into cursor pagination and sets the page size. When provided, "page"/"pageSize" are ignored and the response returns a "nextCursor" instead of a total count.
cursorstring
Opaque cursor from a previous cursor-paginated response. Used together with "limit" to fetch the next page.
Response
OK
Example response
{
"pagination": {
"mode": "offset",
"pageSize": 10,
"hasPreviousPage": true,
"page": 2,
"itemCount": 11,
"pageCount": 2
},
"data": [
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"id": "skey_2R6lBd1IxNUPqtsQLcJU2PFtyAD",
"active": true,
"maskedValue": "sk_****...a1b2",
"note": "Production backend key",
"permissions": [
"payment:read",
"payment:create"
]
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.