Authentication
Blue API (BETA) authentication is now available here. Check it out.
Authentication for Wave (OpenAPI) is separated at the moment. We will be unifying all logins for all our APIs going forward. An announcement will be made once it's done.
Before you can access Alphaus API services, you need to get an access token first. You will then use this token in your succeeding calls to the API using the Authorization: Bearer {token}
HTTP header. Alphaus API tokens are JSON Web Tokens (JWT).
Use the following endpoints to acquire product-specific access tokens. Tokens are not compatible between the two. Ripple access tokens can only be used for Ripple endpoints; Wave access tokens are only valid on Wave endpoints.
Request
To obtain an access token, send a POST message to the access token endpoint using the format described below.
The following table describes the formdata you need to supply as your POST body.
Name
Value
grant_type
Valid values: password
, client_credentials
client_id
The client id you received from Alphaus or from API.
client_secret
The client secret you received from Alphaus or from API.
username
You account username. Required if grant_type
is set to password
.
password
You account password. Required if grant_type
is set to password
.
scope
Valid values: openid
Response
Using bluectl
You can also use our bluectl CLI tool to generate access tokens. It is designed to work with the client_credentials
grant type, although it supports the password
grant type as well. To set the required environment variables for authentication, check out this document.
Last updated