Skip to main content
GET
/
api
/
v3
/
admin
/
api_keys
/
current
Spree Admin SDK
import { createAdminClient } from '@spree/admin-sdk'

const client = createAdminClient({
  baseUrl: 'https://your-store.com',
  secretKey: 'sk_xxx',
})

// Describes the key you authenticated with, including its live scopes.
const key = await client.apiKeys.current()
{
  "id": "key_EfhxLZ9ck8",
  "name": "animi",
  "key_type": "secret",
  "token_prefix": "sk_bkpzKACS2",
  "scopes": [
    "write_all"
  ],
  "created_at": "2026-06-17T13:36:27.845Z",
  "updated_at": "2026-06-17T13:36:27.845Z",
  "revoked_at": null,
  "last_used_at": null,
  "plaintext_token": null,
  "created_by_email": null
}

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Headers

x-spree-api-key
string
required

Response

200 - application/json

current API key