Skip to content

Accounts and sessions

View .mdllms.txt

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
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 /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

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

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

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

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

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

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

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

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

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

Fields marked * are always present in responses and required in requests.

Field Type Notes
token * string From the emailed link’s ?token=. max 200 chars
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
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
Field Type Notes
email * string max 254 chars
Field Type Notes
password * string max 128 chars
token * string From the emailed link’s ?token=. max 200 chars
Field Type Notes
email * string max 254 chars
password * string max 128 chars
Field Type Notes
session * SessionBody
user * UserBody
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
Field Type Notes
name * string max 200 chars
org_number * string Organisation (company registration) number. max 40 chars
vat_number string max 40 chars
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
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
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.