Get a token

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

Body·Credentials

Body for credentials to authenticate a user

Credentials to authenticate a user

  • email
    Type: stringFormat: email
    required
  • password
    Type: string
    write-only
    required
Responses
Request Example for post/auth/token
using Scalar.GalaxyCsharp;
using Scalar.GalaxyCsharp.Models.Components;

var sdk = new GalaxyCsharp();

Credentials req = new Credentials() {
    Email = "marc@scalar.com",
    Password = "i-love-scalar",
};

var res = await sdk.Authentication.GetTokenJsonAsync(req);

// handle response
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}