Get collection access keys
GET {{baseUrl}}/collection-access-keys
Gets the authenticated user's personal and team [collection access keys]
Note:
The
expiresAfter
property in the response represents the date and time at which the access key expires. Collection access keys are valid for 60 days. If unused, the access key expires after 60 days. If someone uses the access key, then its expiration date increases by another 60 days.If the collection key is unused, the
lastUsedAt
property in the response returns an empty string.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
collectionId | string | Filter the results by a collection's unique ID. | |
cursor | string | The pointer to the first record of the set of paginated results. To view the next response, use the nextCursor value for this parameter. |
RESPONSES
status: OK
{"data":[{"id":"Njg5OjU3MDQ1NjYtYmQxZDU3NzktMWVkNS00ZDhjLWI0ZmQtZWRhOGY2Mzg1NTY0","token":"PMAT-**********************43BR","status":"ACTIVE","teamId":123,"userId":12345678,"collectionId":"12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2","expiresAfter":"2024-06-11T13:21:11.000Z","lastUsedAt":"","createdAt":"2024-04-12T13:21:11.000Z","updatedAt":"2024-04-09T11:00:53.000Z"},{"id":"K7yJPzQ18BC7Snm09PXL12RMmnq57hQorFJW8JnCKhQ11JmNQiTlgXnQ1p93jGYN","token":"PMAT-**********************51FZ","status":"ACTIVE","teamId":123,"userId":56781234,"collectionId":"56781234-68e5e7ac-c134-45f4-9770-40e72f3fc474","expiresAfter":"2024-06-11T13:21:11.000Z","lastUsedAt":"2024-04-29T08:24:23.000Z","createdAt":"2024-04-22T10:11:00.000Z","updatedAt":"2024-04-22T10:11:00.000Z"}],"meta":{"nextCursor":"","prevCursor":""}}