Skip to content
API v2v2.0.0 · 11 endpoints
GitHubDiscord

Yeah, this is the boring security stuff. Just get your super secret token and move on.

Authentication
POST
https://galaxy.scalar.com/auth/token
Try it

Request Body

Body for credentials to authenticate a user

Media Type
Credentials

Credentials to authenticate a user

email
string <email>Required
password
stringRequired

Responses

201

Token Created

Media Type
Token

A token to authenticate a user

token?
string
400

Bad Request

Media Type
BadRequestError

RFC 7807 (https://datatracker.ietf.org/doc/html/rfc7807)

type?
string
title?
string
status?
integer <int64>
detail?
string
401

Unauthorized

Media Type
UnauthorizedError

Error response for unauthorized access (RFC 7807). Returned when authentication is required or has failed.

type?
string
title?
string
status?
integer <int64>
detail?
string
403

Forbidden

Media Type
ForbiddenError

Error response for forbidden access (RFC 7807). Returned when the user does not have permission to access the requested resource.

type?
string
title?
string
status?
integer <int64>
detail?
string
429

Too Many Requests

Media Type
TooManyRequestsError

Error response for rate limiting (RFC 7807). Returned when the client has exceeded the rate limit for requests.

type?
string
title?
string
status?
integer <int64>
detail?
string

Code Samples

curl -X POST 'https://galaxy.scalar.com/auth/token' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "marc@scalar.com",
  "password": "i-love-scalar"
}'

Example Responses

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}