POST
/
oauth
/
token
curl --request POST \
  --url https://api.nomos.energy/oauth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "grant_type": "authorization_code",
  "code": "<string>",
  "refresh_token": "<string>",
  "scope": "<string>"
}'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6WyJhZG1pbiJdLCJwYJ0bmVyIjoi...",
  "token_type": "Bearer",
  "expires_in": 123,
  "refresh_token": "21cc84a3ad98736f4e5eddc88a1f4b58a29ae96206027c9b59d874cb2a7f7e02"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The token request
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token,
client_credentials
code
string
refresh_token
string
scope
string

Response

200
application/json
Retrieve the quote details
access_token
string
required

The access token to accces the API endpoints

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6WyJhZG1pbiJdLCJwYJ0bmVyIjoi..."

token_type
enum<string>
required
Available options:
Bearer
expires_in
number
required
refresh_token
string
required

The refresh token to create a new access_token

Example:

"21cc84a3ad98736f4e5eddc88a1f4b58a29ae96206027c9b59d874cb2a7f7e02"