Skip to content
API v2v2.0.0 · 11 endpoints
GitHubDiscord

Get authenticated user

Find yourself they say. That's what you can do here.

Authentication
GET
https://galaxy.scalar.com/me
Try it
Authorization (basicAuth)

Authorization

  • basicAuth (basic)

    Basic HTTP authentication

  • oAuth2 (oauth2)

    OAuth 2.0 authentication

    Scopes: read:account

  • bearerAuth (bearer)

    JWT Bearer token authentication

  • apiKeyHeader (header: X-API-Key)

    API key request header

  • apiKeyQuery (query: api_key)

    API key query parameter

Responses

200

Authenticated user information retrieved successfully

Media Type
User

A user

id?
integer <int64>
name?
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

Code Samples

curl -X GET 'https://galaxy.scalar.com/me' \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Key: <X-API-Key>'

Example Responses

{
  "id": 1,
  "name": "Marc"
}