Skip to main content
POST
Python (SDK)

Authorizations

portal_session
string
cookie
required

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

application/json
limit
integer
default:100

Maximum number of keys to return per request. Balance between response size and number of pagination calls needed.

Required range: 1 <= x <= 100
cursor
string

Pagination cursor from a previous response to fetch the next page. Use when hasMore: true in the previous response.

Example:

"key_1234abcd"

Response

Successfully retrieved paginated keys. Use the pagination cursor for additional results when hasMore: true.

meta
object
required

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.

data
object[]
required

Array of the portal end user's API keys.

Maximum array length: 100
pagination
object
required

Pagination metadata for list endpoints. Provides information necessary to traverse through large result sets efficiently using cursor-based pagination.

Last modified on July 23, 2026