Skip to content
getgeolens.com

Login

POST
/auth/login
curl --request POST \
--url https://example.com/auth/login \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data client_id=example \
--data client_secret=example \
--data grant_type=example \
--data password=example \
--data scope= \
--data username=example

Authenticate with username and password, receive a JWT token.

Media type application/x-www-form-urlencoded
Body_login_auth_login_post
object
client_id
Any of:
string
client_secret
Any of:
string
grant_type
Any of:
string
/^password$/
password
required
Password
string format: password
scope
Scope
string
""
username
required
Username
string

Successful Response

Media type application/json
TokenResponse
object
access_token
required
Access Token

JWT access token for Authorization header

string
expires_in
required
Expires In

Seconds until the access token expires

integer
refresh_token
required
Refresh Token

Opaque token used to obtain a new access token

string
token_type
Token Type
string
default: bearer
Example
{
"token_type": "bearer"
}

Bad request — invalid query parameters or payload

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}

Unauthorized — missing or invalid credentials

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}

Forbidden — caller lacks access to this resource

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}

Not found

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}

Validation error

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}

Internal server error

ProblemDetail
object
detail
required
Detail
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"type": "about:blank"
}