Skip to content
GAMPEONCreate
New project

Log in

POST
/v1/sessions
curl --request POST \
--url https://api.gampeon.com/v1/sessions \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "password": "example" }'

Returns a bearer token for the Authorization header. Sessions last 30 days.

Rate limit: 5 failed attempts per email in 15 minutes, 30 attempts per IP in 15 minutes.

Media typeapplication/json
object
email
required
string format: email
password
required
string

Example generated

{
"email": "hello@example.com",
"password": "example"
}

Logged in

Media typeapplication/json
object
token
required

Bearer token. Shown once, store it securely.

string
expiresAt
required

Unix time in milliseconds

integer format: int64

Example generated

{
"token": "example",
"expiresAt": 1
}

Error codes: invalid_field

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: invalid_credentials

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: email_unverified

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Limit: 5 failed attempts per email in 15 minutes, 30 attempts per IP in 15 minutes. Error codes: rate_limited, too_many_attempts

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback