---
title: "private/session_keys"
method: POST
path: "/private/session_keys"
tags: ["Session Keys"]
---

# private/session_keys

`POST /private/session_keys`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/session_keys`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns every session key registered to the given wallet, including expired and not-yet-activated keys, each with its public address, scopes, expiry, label, IP allowlist, and permitted subaccounts.

## Request body

- SessionKeysRequest
  - `wallet` string, required

## Response `200`

Success

- PrivateSessionKeysResponse
  - `public_session_keys` SessionKey[], required
    - `expiry_sec` integer, required
    - `ip_whitelist` string[], required
    - `label` string, required
    - `offchain_scopes` string[], required: Off-chain scopes (read-tier capabilities).
    - `protocol_scopes` string[], required: Protocol-level (on-chain authority) scopes.
    - `public_session_key` string, required
    - `registered_sec` integer, required
    - `subaccount_ids` integer[], required: Subaccounts this key may act on. An empty stored value means "all subaccounts" and is expanded to the wallet's current subaccount list.

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/session_keys/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
