Required scope: read_settings (for API-key authentication).
read_settings
JavaScript
import { createAdminClient } from '@spree/admin-sdk' const client = createAdminClient({ baseUrl: 'https://your-store.com', secretKey: 'sk_xxx', }) const key = await client.apiKeys.get('key_xxx')
{ "id": "key_UkLWZg9DAJ", "name": "Storefront key", "key_type": "publishable", "token_prefix": null, "scopes": [], "created_at": "2026-05-17T22:57:23.047Z", "updated_at": "2026-05-17T22:57:23.047Z", "revoked_at": null, "last_used_at": null, "plaintext_token": "pk_ZsR9RTxoWgMQbCRWVbza9nAi", "created_by_email": null }
Documentation IndexFetch the complete documentation index at: https://spreecommerce.org/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Secret API key for admin access
JWT token for admin user authentication
API key found
Was this page helpful?
Contact support