Authentication

Obtain OAuth2 Token (Legacy — password grant)

Legacy authentication — being sunset. Obtain an access token using the OAuth2 password grant. Send your sandbox x-api-key plus username/password. The token is an HS256 JWT and a refresh_token is returned. New integrations should use the OAuth2 client_credentials flow described in the Authentication guide. Treat the returned access_token as an opaque Bearer token.

post/ws/oauth2/grant

Request

  • Base URL
    https://stage.ema-api.com/ema-dev/firm/apiportal/ema
  • URL
    https://stage.ema-api.com/ema-dev/firm/apiportal/ema/ws/oauth2/grant
  • Auth
    API key in header x-api-key

Request body application/x-www-form-urlencoded

grant_typestring required
usernamestring required

The username provided to you

passwordstring required

The password provided to you

Response

Access token response

access_tokenstring
token_typestring
expires_ininteger
refresh_tokenstring

Changes

No recorded changes to this operation across all 1 revision of this API.