Sign-up, sign-in (password or emailed link), email confirmation, password reset and the profile. Generated from the OpenAPI spec. Each endpoint says which key it needs; see Authentication.
| Method | Path | What it does |
|---|---|---|
| POST | /v1/email-verifications |
Confirm an email address with the emailed link |
| GET | /v1/me |
Get the signed-in user |
| PATCH | /v1/me |
Update the signed-in user’s profile |
| POST | /v1/me/verification-email |
Send the email confirmation link again |
| POST | /v1/password-resets |
Email a password reset link |
| POST | /v1/password-resets/confirm |
Set a new password with the emailed link |
| POST | /v1/sessions |
Sign in with email and password |
| DELETE | /v1/sessions/current |
Sign out |
| POST | /v1/sessions/email-link |
Email a sign-in link |
| POST | /v1/sessions/from-link |
Sign in with an emailed link |
| POST | /v1/users |
Create an account |
Confirm an email address with the emailed link
Section titled “Confirm an email address with the emailed link”POST /v1/email-verifications · operation confirmEmail
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): TokenInputBody
Responses: 200 UserBody · default a problem
Get the signed-in user
Section titled “Get the signed-in user”GET /v1/me · operation getMe
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Responses: 200 UserBody · default a problem
Update the signed-in user’s profile
Section titled “Update the signed-in user’s profile”PATCH /v1/me · operation updateMe
Only the fields sent change.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Body (application/json): UpdateMeInputBody
Responses: 200 UserBody · default a problem
Send the email confirmation link again
Section titled “Send the email confirmation link again”POST /v1/me/verification-email · operation resendVerificationEmail
Links to <storefront>/<language>/auth/verify-email?token=…. Does nothing if the address is already confirmed.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Responses: 202 Accepted · default a problem
Email a password reset link
Section titled “Email a password reset link”POST /v1/password-resets · operation requestPasswordReset
Sends a link to <storefront>/<language>/auth/reset-password?token=… if the address has an account. Always answers 202.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): EmailInputBody
Responses: 202 Accepted · default a problem
Set a new password with the emailed link
Section titled “Set a new password with the emailed link”POST /v1/password-resets/confirm · operation resetPassword
Signs the user out everywhere; sign them in again with the new password.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): ResetInputBody
Responses: 204 No Content · default a problem
Sign in with email and password
Section titled “Sign in with email and password”POST /v1/sessions · operation signIn
After 10 wrong passwords in 15 minutes the account is locked for the rest of that time (429 with Retry-After).
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): SignInInputBody
Responses: 201 SignedInOutputBody · default a problem
Sign out
Section titled “Sign out”DELETE /v1/sessions/current · operation signOut
Ends the session sent as X-User-Session.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Responses: 204 No Content · default a problem
Email a sign-in link
Section titled “Email a sign-in link”POST /v1/sessions/email-link · operation requestSignInLink
Sends a link to <storefront>/<language>/auth/sign-in?token=… if the address has an account. Always answers 202, so it doesn’t reveal who has one. At most 5 emails an hour per address.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): EmailInputBody
Responses: 202 Accepted · default a problem
Sign in with an emailed link
Section titled “Sign in with an emailed link”POST /v1/sessions/from-link · operation signInWithLink
The token from the link works once. Following the link also confirms the email address.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): TokenInputBody
Responses: 201 SignedInOutputBody · default a problem
Create an account
Section titled “Create an account”POST /v1/users · operation signUp
Creates the user and signs them in. Call from the shop’s server.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): SignUpInputBody
Responses: 201 SignedInOutputBody · default a problem
Schemas
Section titled “Schemas”Fields marked * are always present in responses and required in requests.
TokenInputBody
Section titled “TokenInputBody”| Field | Type | Notes |
|---|---|---|
token * |
string | From the emailed link’s ?token=. max 200 chars |
UserBody
Section titled “UserBody”| Field | Type | Notes |
|---|---|---|
account_type * |
string | Buys and sells as a private person or a company. Private. one of private, company |
bio * |
string | Public |
company |
CompanyBody | Company accounts only. Private |
created_at * |
string (date-time) | |
display_name * |
string | |
email * |
string (email) | |
email_verified * |
boolean | |
first_name * |
string | |
has_password * |
boolean | |
id * |
string | |
invoicing |
InvoicingBody | Company accounts the marketplace lets pay by invoice: checkout can offer payment_method invoice. Private |
last_name * |
string | |
locale * |
string | The user’s language; empty means the marketplace’s default |
phone * |
string | Private |
price_drop_emails |
boolean | Signed-in user only: emailed once a day when listings they saved get cheaper |
shipping_address |
ShippingAddressBody | Signed-in user only: their saved shipping address, for checkout to fill in. Private |
UpdateMeInputBody
Section titled “UpdateMeInputBody”| Field | Type | Notes |
|---|---|---|
account_type |
string | A private person or a company. one of private, company |
bio |
string | max 2000 chars |
company |
CompanyBody | The company’s details: a company account needs its name and organisation number |
display_name |
string | max 100 chars |
first_name |
string | max 100 chars |
last_name |
string | max 100 chars |
locale |
string | One of the marketplace’s languages, or empty for its default |
phone |
string | max 40 chars |
price_drop_emails |
boolean | A daily email when listings they saved get cheaper |
shipping_address |
ShippingAddressBody | Their saved shipping address, replaced as a whole; an empty object removes it |
EmailInputBody
Section titled “EmailInputBody”| Field | Type | Notes |
|---|---|---|
email * |
string | max 254 chars |
ResetInputBody
Section titled “ResetInputBody”| Field | Type | Notes |
|---|---|---|
password * |
string | max 128 chars |
token * |
string | From the emailed link’s ?token=. max 200 chars |
SignInInputBody
Section titled “SignInInputBody”| Field | Type | Notes |
|---|---|---|
email * |
string | max 254 chars |
password * |
string | max 128 chars |
SignedInOutputBody
Section titled “SignedInOutputBody”| Field | Type | Notes |
|---|---|---|
session * |
SessionBody | |
user * |
UserBody |
SignUpInputBody
Section titled “SignUpInputBody”| Field | Type | Notes |
|---|---|---|
bio |
string | max 2000 chars |
display_name |
string | max 100 chars |
email * |
string (email) | max 254 chars |
first_name |
string | max 100 chars |
last_name |
string | max 100 chars |
locale |
string | One of the marketplace’s languages |
password |
string | Optional: without one, the user signs in with emailed links. max 128 chars |
phone |
string | max 40 chars |
CompanyBody
Section titled “CompanyBody”| Field | Type | Notes |
|---|---|---|
name * |
string | max 200 chars |
org_number * |
string | Organisation (company registration) number. max 40 chars |
vat_number |
string | max 40 chars |
InvoicingBody
Section titled “InvoicingBody”| Field | Type | Notes |
|---|---|---|
address |
string | Billing address, on several lines. max 1000 chars |
email |
string | Where invoices go; the account’s email when empty |
enabled * |
boolean | |
terms_days * |
integer | Days they have to pay. ≥ 0; ≤ 365 |
ShippingAddressBody
Section titled “ShippingAddressBody”| Field | Type | Notes |
|---|---|---|
city |
string | max 200 chars |
country |
string | ISO 3166, e.g. SE. max 2 chars |
line1 |
string | max 200 chars |
line2 |
string | max 200 chars |
name |
string | max 200 chars |
phone |
string | max 40 chars |
postal_code |
string | max 200 chars |
SessionBody
Section titled “SessionBody”| Field | Type | Notes |
|---|---|---|
expires_at * |
string (date-time) | Extended while the session is used |
token * |
string | Send as the X-User-Session header. Shown only here. |