Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

authSignin

POST
/auth/signin
curl --request POST \
--url http://localhost:8300/auth/signin \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "email": "example", "password": "example" }'
Media typeapplication/json
object
email
required

Normalised like sign-up; a malformed one is just a failed sign-in (401)

string
password
required
string

Example generated

{
"email": "example",
"password": "example"
}

A new session

Media typeapplication/json
object
access_token
required

RS256 JWT (kid in the header; claims iss, sub, email, roles, jti, fid = session family, iat, exp); ACCESS_TTL, default 15 min

string
refresh_token
required

Opaque; REFRESH_TTL, default 30 days; single use, rotated by /auth/refresh

string
user
required
object
id
required
string format: uuid
email
required
string format: email
name
required
string
roles
required

Sorted; may be empty

Array<string>
Allowed values: user dev admin
disabled
required
boolean
created_at
required
string format: date-time

Example

{
"user": {
"roles": [
"user"
]
}
}

Unknown email or wrong password: “Wrong email or password.”. A disabled user with the right password: “This account is off. Ask your admin.”; with a wrong one the generic line, so it tells nothing of which emails exist. Every refusal counts against the sign-in limit.

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input: “invalid JSON body”, or the failed rule (“invalid email”, “name must be 1-200 characters”, “password must be at least 10 characters”, “password is too common”, “roles must not be empty”, …)

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Too many failed sign-ins or too many requests (Kong rate limit: 20/min, 200/h per IP, {message})

Media typeapplication/json
One of:
object
detail
required
string

Example generated

{
"detail": "example"
}