List portal keys
Retrieve a paginated list of API keys owned by the authenticated portal session’s end user.
This is the portal-scoped variant of apis.listKeys. It authenticates only
with a portal session cookie and always restricts results to the keys owned
by the session’s external identity, within the keyspaces configured on the
portal configuration. Both the identity and the keyspaces come from the
session, so the request body has no externalId or apiId field.
Authorizations
Browser session cookie for the Customer Portal. Set by portal.exchangeSession
and sent automatically by the browser on portal.* requests. Portal sessions
are scoped to a single end user (external identity) and can only access the
portal.* routes.
Body
Maximum number of keys to return per request. Balance between response size and number of pagination calls needed.
1 <= x <= 100Pagination cursor from a previous response to fetch the next page.
Use when hasMore: true in the previous response.
"key_1234abcd"
Response
Successfully retrieved paginated keys. Use the pagination cursor for additional results when hasMore: true.
Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The requestId is particularly important when troubleshooting issues with the Unkey support team.
Array of the portal end user's API keys.
100Pagination metadata for list endpoints. Provides information necessary to traverse through large result sets efficiently using cursor-based pagination.