Skip to main content
POST
Spree Admin SDK

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Body

application/json
name
string
required
Example:

"Backend integration"

key_type
enum<string>
required
Available options:
publishable,
secret
scopes
string[]
Example:

Response

secret key created — plaintext token returned once