Skip to main content
POST
Spree SDK

Authorizations

x-spree-api-key
string
header
required

Publishable API key for store access

Headers

x-spree-api-key
string
required

Body

application/json

Built-in email/password authentication (default when provider is omitted).

email
string<email>
required
Example:

"customer@example.com"

password
string
required
Example:

"password123"

provider
enum<string>
default:email
Available options:
email

Response

login successful

token
string
required

JWT access token

refresh_token
string
required

Refresh token for obtaining new access tokens

user
object
required