Log in
const url = 'https://api.gampeon.com/v1/sessions';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "email": "hello@example.com", "password": "example"}Responses
Section titled “Responses”Logged in
object
Bearer token. Shown once, store it securely.
Unix time in milliseconds
Example generated
{ "token": "example", "expiresAt": 1}Error codes: invalid_field
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: invalid_credentials
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: email_unverified
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
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
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}